Create index.php

To read input data : trim(fgets($stdin));
To write the output data : fwrite($stdout,YourResult);