3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public function bar($x,$y){ return $x*y; }; } $s = microtime(true); $foo = new foo(); for($x = 0; $x < 10000; $x++ ){ call_user_func(array($foo, 'bar'), 10,20); } echo round(microtime(true) - $s,5)."\n"; $s = microtime(true); $foo = new foo(); $met = 'bar'; for($x = 0; $x < 10000; $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)
5.4.170.0100.04318.91
5.4.160.0070.03319.13
5.4.150.0000.04019.13
5.4.140.0030.03716.57
5.4.130.0030.03316.41
5.4.120.0070.04016.35
5.4.110.0000.03716.39
5.4.100.0000.03716.41
5.4.90.0070.03316.43
5.4.80.0130.02316.39
5.4.70.0070.03016.37
5.4.60.0070.03716.35
5.4.50.0030.03716.39
5.4.40.0030.03316.43
5.4.30.0070.03016.25
5.4.20.0030.03316.36
5.4.10.0030.03316.25
5.4.00.0000.03715.95
5.3.270.0070.05014.49
5.3.260.0070.04014.64
5.3.250.0070.03314.76
5.3.240.0030.03714.66
5.3.230.0000.04014.74
5.3.220.0070.03314.72
5.3.210.0070.03314.71
5.3.200.0030.04314.72
5.3.190.0030.04314.62
5.3.180.0000.04014.45
5.3.170.0130.03714.59
5.3.160.0000.04014.48
5.3.150.0100.03714.58
5.3.140.0030.03714.57
5.3.130.0030.04014.55
5.3.120.0030.03714.43
5.3.110.0030.03714.58
5.3.100.0070.03314.09
5.3.90.0130.03314.03
5.3.80.0030.03314.02
5.3.70.0100.02714.07
5.3.60.0070.03314.17
5.3.50.0000.03713.98
5.3.40.0030.03313.86
5.3.30.0030.04013.88
5.3.20.0000.04013.62
5.3.10.0000.03713.75
5.3.00.0000.03713.60

preferences:
142.36 ms | 1394 KiB | 7 Q