3v4l.org

run code in 500+ PHP versions simultaneously
<?php // Print the value of $x every 10 statements register_tick_function ('printf', "The value of \$x is %d\n", &$x); declare (ticks=10) { for ($x = 1; $x <= 10; ++$x) { echo $x, "\n"; } } ?>
Output for git.master_jit, git.master
Parse error: syntax error, unexpected token "&", expecting ")" in /in/E4LEq on line 3
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
35.17 ms | 493 KiB | 3 Q