3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* class Foo { public static function barStatic() { } public function bar() { } } $foo = new Foo(); var_dump(is_callable(array($foo, 'bar'))); var_dump(is_callable(array($foo, 'barStatic'))); var_dump(is_callable(array('Foo', 'bar'))); var_dump(is_callable(array('Foo', 'barStatic'))); var_dump(is_callable('Foo::bar')); var_dump(is_callable('Foo::barStatic')); */ var_dump(is_callable('ReflectionMethod::setAccessible')); var_dump(is_callable(array('ReflectionMethod', 'setAccessible'));

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.300.0040.05412.50
5.4.290.0060.05512.49
5.4.280.0210.10312.39
5.4.270.0100.03412.39
5.4.260.0080.03912.39
5.4.250.0080.03812.39
5.4.240.0050.03812.39
5.4.230.0080.03812.38
5.4.220.0160.04512.38
5.4.210.0100.03512.38
5.4.200.0080.03912.38
5.4.190.0070.04012.38
5.4.180.0050.04312.38
5.4.170.0080.03712.38
5.4.160.0060.04712.38
5.4.150.0090.03412.38
5.4.140.0110.04312.07
5.4.130.0080.03812.05
5.4.120.0070.04112.01
5.4.110.0080.03712.01
5.4.100.0150.06712.02
5.4.90.0130.04212.01
5.4.80.0070.04412.01
5.4.70.0090.06012.01
5.4.60.0150.08112.01
5.4.50.0110.07312.00
5.4.40.0110.08612.00
5.4.30.0140.07312.00
5.4.20.0120.05311.99
5.4.10.0080.03811.99
5.4.00.0080.04911.48
5.3.280.0070.04912.71
5.3.270.0050.04212.72
5.3.260.0060.04212.72
5.3.250.0080.04112.72
5.3.240.0100.03712.72
5.3.230.0110.03412.71
5.3.220.0060.03712.68
5.3.210.0060.03912.68
5.3.200.0040.03912.68
5.3.190.0080.03712.68
5.3.180.0080.03512.68
5.3.170.0070.03612.67
5.3.160.0060.04512.68
5.3.150.0120.03912.67
5.3.140.0100.05112.66
5.3.130.0080.05712.66
5.3.120.0110.05412.65
5.3.110.0110.03612.65
5.3.100.0090.03912.12
5.3.90.0060.04612.09
5.3.80.0040.04212.07
5.3.70.0040.03912.07
5.3.60.0050.04312.07
5.3.50.0070.04012.00
5.3.40.0120.04112.00
5.3.30.0090.03311.95
5.3.20.0080.04111.73
5.3.10.0060.04211.71
5.3.00.0070.04011.68

preferences:
140.05 ms | 1394 KiB | 7 Q