3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C1 { public function f() { return 'foo'; } public static function __callStatic($method, $args) { return call_user_func_array([(new static), $method], $args); } } echo C1::f(); <?php class C2 { protected function f() { return 'foo'; } public static function __callStatic($method, $args) { return call_user_func_array([(new static), $method], $args); } } echo C2::f();

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.240.0030.05718.63
5.4.230.0130.04318.94
5.4.220.0100.05318.89
5.4.210.0070.07018.81
5.4.200.0170.04318.95
5.4.190.0070.08718.93
5.4.180.0100.05018.63
5.4.170.0100.05318.72
5.4.160.0100.05018.94
5.4.150.0170.06019.06
5.4.140.0070.07316.55
5.4.130.0230.05716.55
5.4.120.0070.05716.54
5.4.110.0070.05016.42
5.4.100.0000.05316.69
5.4.90.0130.06316.59
5.4.80.0070.04716.51
5.4.70.0030.05716.48
5.4.60.0000.05716.61
5.4.50.0100.04316.45
5.4.40.0000.05316.50
5.4.30.0030.05316.52
5.4.20.0070.05016.48
5.4.10.0070.07716.42
5.4.00.0070.04715.96
5.3.280.0030.06314.60
5.3.270.0030.05314.60
5.3.260.0100.05014.62
5.3.250.0030.05314.77
5.3.240.0030.05314.69
5.3.230.0170.06014.43
5.3.220.0030.05014.75
5.3.210.0100.04714.70
5.3.200.0030.05314.55
5.3.190.0070.07314.57
5.3.180.0200.03714.57
5.3.170.0030.07714.65
5.3.160.0100.05714.73
5.3.150.0030.05714.78
5.3.140.0030.05314.62
5.3.130.0130.04714.52
5.3.120.0070.05314.63
5.3.110.0100.05014.45
5.3.100.0070.05314.07
5.3.90.0030.05314.16
5.3.80.0100.04714.18
5.3.70.0130.04314.09
5.3.60.0130.06314.07
5.3.50.0100.04314.15
5.3.40.0100.05313.94
5.3.30.0030.05314.00
5.3.20.0070.05013.88
5.3.10.0070.04713.82
5.3.00.0130.04313.72

preferences:
132.51 ms | 1394 KiB | 7 Q