3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public static function bar($x,$y){ return $x*y; } } $s = microtime(true); $met = 'bar'; for($x = 0; $x < 100000; $x++ ){ call_user_func(array('foo', $met), 10,20); } echo round(microtime(true) - $s,5)."\n"; $s = microtime(true); $met = 'bar'; for($x = 0; $x < 100000; $x++ ){ foo::{$bar}(10,20); } echo round(microtime(true) - $s,5)."\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)
7.3.10.0250.01416.04
7.3.00.0220.00316.32
7.2.130.0190.01116.72
7.2.120.0120.00716.41
7.2.110.0120.01416.59
7.2.100.0210.00616.86
7.2.90.0130.00816.60
7.2.80.0060.01616.58
7.2.70.0070.01316.29
7.2.60.0070.00716.73
7.2.50.0110.00716.38
7.2.40.0140.00616.45
7.2.30.0130.01016.32
7.2.20.0090.01216.48
7.2.10.0210.00016.41
7.2.00.0080.00817.87
7.1.250.0220.01015.71
7.1.70.0030.00916.98
7.1.60.0000.01419.82
7.1.50.0190.00617.02
7.0.200.0000.01116.80

preferences:
33.1 ms | 400 KiB | 5 Q