3v4l.org

run code in 300+ 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"; } } ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
5.3.290.0100.02925.66

preferences:
139.17 ms | 993 KiB | 7 Q