3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); class Bla { public $foo = function ($var){ echo "the closure test $var\n"; }; } $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.08320.07
7.0.10.0100.07320.33
7.0.00.0070.05720.20
5.6.170.0270.06720.65
5.6.160.0170.07320.54
5.6.150.0100.03318.19
5.6.140.0100.07718.14
5.6.130.0000.05018.19
5.6.120.0000.07720.96
5.6.110.0000.09021.14
5.6.100.0100.07721.04
5.6.90.0000.08321.07
5.6.80.0170.06320.39
5.5.310.0230.05320.23
5.5.300.0030.08317.98
5.5.290.0100.06317.98
5.5.280.0100.04720.98
5.5.270.0130.08720.66
5.5.260.0070.09020.84
5.5.250.0100.07720.66
5.5.240.3930.03320.27

preferences:
135.31 ms | 1394 KiB | 7 Q