3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = 1; for ($i=0; $i < 3; $i++) { $x = $x / 10^$i; print($x, json_encode($x)); }
Output for 5.3.0 - 5.3.14, 5.4.0 - 5.4.4
Parse error: syntax error, unexpected ',' in bjdPl on line 7
Process exited with code 255.

preferences:
158.22 ms | 1395 KiB | 27 Q