3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public static function bar($x,$y){ return $x*$y; } public static met1(){ $met = $bar; //return static:: } } $s = microtime(true); for($x = 0; $x < 10000; $x++ ){ $a = is_callable(array('foo', 'bar')); } echo round(microtime(true) - $s,5)."\n"; $s = microtime(true); for($x = 0; $x < 10000; $x++ ){ $a = method_exists('foo', 'bar'); } 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.0240.06412.38
5.4.160.0140.04512.38
5.4.150.0140.04512.38
5.4.140.0170.04012.06
5.4.130.0150.04312.04
5.4.120.0140.04212.01
5.4.110.0120.04512.01
5.4.100.0130.04612.01
5.4.90.0200.05312.00
5.4.80.0160.04212.01
5.4.70.0200.05212.00
5.4.60.0140.04212.00
5.4.50.0160.03912.00
5.4.40.0150.04211.99
5.4.30.0190.05611.99
5.4.20.0150.04411.99
5.4.10.0150.04211.99
5.4.00.0130.04211.48
5.3.270.0160.04512.73
5.3.260.0210.07212.72
5.3.250.0150.04512.72
5.3.240.0170.04312.72
5.3.230.0150.04612.71
5.3.220.0160.04312.68
5.3.210.0190.04312.68
5.3.200.0170.04412.68
5.3.190.0150.04612.68
5.3.180.0140.04812.67
5.3.170.0210.05612.67
5.3.160.0230.04212.67
5.3.150.0160.04712.67
5.3.140.0160.04512.66
5.3.130.0150.04612.66
5.3.120.0160.04612.66
5.3.110.0160.04312.65
5.3.100.0230.05212.12
5.3.90.0140.04312.10
5.3.80.0130.04612.09
5.3.70.0180.04312.08
5.3.60.0180.05112.06
5.3.50.0140.04612.01
5.3.40.0240.06712.02
5.3.30.0170.04811.98
5.3.20.0160.04311.76
5.3.10.0190.03811.72
5.3.00.0260.06011.71

preferences:
146.19 ms | 1398 KiB | 7 Q