3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); $f=function($var){ echo "the closure test $var\n"; }; class Bla { public $foo = $f; } $bla = new Bla(); ($bla->foo)("someval");

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.20.0330.08020.09
7.0.10.0070.07720.12
7.0.00.0130.07320.25
5.6.170.0200.04020.55
5.6.160.0130.07720.52
5.6.150.0030.03718.17
5.6.140.0030.08718.23
5.6.130.0130.07318.18
5.6.120.0030.09021.02
5.6.110.0130.08021.02
5.6.100.0030.08720.96
5.6.90.0000.08721.02
5.6.80.0030.06020.39
5.5.310.0370.06720.29
5.5.300.0130.03718.01
5.5.290.0070.07317.94
5.5.280.0100.08020.87
5.5.270.0070.04020.88
5.5.260.0100.07720.73
5.5.250.0070.08020.69
5.5.240.4330.03320.23

preferences:
139.05 ms | 1394 KiB | 7 Q