3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { // PHP overloading public function __call($name, $arguments) { call_user_func_array(array($this, "_{$name}"), $arguments); } public static function __callStatic($name, $arguments) { call_user_func_array(get_class() . "::_static_{$name}", $arguments); } // The real function private function _test() { print "in _test();\n"; } private static function _test() { print "in _static_test();\n"; } } $a = new A; $a->test(); A::test();

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.180.0030.06018.84
5.4.170.0030.04719.07
5.4.160.0070.05319.07
5.4.150.0030.05018.83
5.4.140.0000.03716.36
5.4.130.0030.07016.31
5.4.120.0070.06316.41
5.4.110.0070.06716.46
5.4.100.0030.07316.56
5.4.90.0030.06016.35
5.4.80.0000.07716.55
5.4.70.0070.04316.33
5.4.60.0000.06716.53
5.4.50.0000.07716.52
5.4.40.0070.06016.39
5.4.30.0070.05716.18
5.4.20.0030.03716.48
5.4.10.0070.04016.37
5.4.00.0030.03715.83
5.3.270.0070.04314.73
5.3.260.0030.06014.52
5.3.250.0000.05314.54
5.3.240.0030.03314.52
5.3.230.0070.07314.62
5.3.220.0070.06314.57
5.3.210.0000.07014.73
5.3.200.0030.04314.55
5.3.190.0030.07714.58
5.3.180.0070.06014.49
5.3.170.0000.09014.49
5.3.160.0030.05014.58
5.3.150.0000.04314.62
5.3.140.0000.04714.47
5.3.130.0030.06014.48
5.3.120.0030.04014.46
5.3.110.0030.04314.53
5.3.100.0030.04714.01
5.3.90.0030.07014.07
5.3.80.0030.05714.24
5.3.70.0030.06014.07
5.3.60.0000.05314.08
5.3.50.0030.07013.88
5.3.40.0030.04013.87
5.3.30.0030.04313.83
5.3.20.0000.03713.71
5.3.10.0070.06713.58
5.3.00.0030.06313.57

preferences:
135.97 ms | 1394 KiB | 7 Q