PHP Implementation of the test
same output as java.
run the index file to test the script