3v4l.org

run code in 300+ PHP versions simultaneously
<?php printf("%0.50f\n", 1.37601); printf("%0.50f\n", 1.37601 + 0.00250); echo "\n"; printf("%0.20f\n", 0.2); printf("%0.20f\n", 0.3); var_dump(0.3 == 0.1+0.1+0.1)
Output for 5.4.0 - 5.4.25
Parse error: syntax error, unexpected end of file in /in/tqXg3 on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end in /in/tqXg3 on line 11
Process exited with code 255.

preferences:
177.03 ms | 1395 KiB | 62 Q