3v4l.org

run code in 300+ PHP versions simultaneously
<?php $b = function($a) use($b) { if ($a < 10) { $b($a+1); echo $a; } } $b(0);

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)
7.0.10.0000.09020.22
7.0.00.0070.04720.08
5.6.160.0070.08320.62
5.6.150.0000.05718.15
5.6.140.0070.08018.18
5.6.130.0100.04318.18
5.6.120.0030.04020.99
5.6.110.0170.07321.00
5.6.100.0300.05720.98
5.6.90.0070.08021.13
5.6.80.0070.08320.41
5.5.300.0070.08017.98
5.5.290.0100.06017.99
5.5.280.0170.06320.80
5.5.270.0070.06720.64
5.5.260.0300.07020.96
5.5.250.0030.08720.55
5.5.240.0130.06720.25

preferences:
133.82 ms | 1394 KiB | 7 Q