3v4l.org

run code in 300+ PHP versions simultaneously
<?php $func = function($a) { return $a + 2; }; $func = function($a) use($func) { return $func() * 2; } var_dump( $func(2) );

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.6.150.0000.04318.21
5.6.140.0070.04018.18
5.6.130.0030.04018.15
5.6.120.0100.08321.02
5.6.110.0100.08020.89
5.6.100.0170.07321.02
5.6.90.0270.05321.00
5.6.80.0030.08720.51
5.5.300.0070.08017.93
5.5.290.0070.07318.08
5.5.280.0100.08020.85
5.5.270.0070.03720.64
5.5.260.0170.07320.85
5.5.250.0100.08020.59
5.5.240.2630.03720.07

preferences:
160.64 ms | 1394 KiB | 7 Q