3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Aself { protected static function g0() { }; public static function get() { return self::g0(); } } class Astatic { protected static function g0() { }; public static function get() { return static::g0(); } } $t = microtime(true); for ($i = 0; $i < 10000; $i++) { Aself::get(); } echo microtime(true) - $t; echo "\n"; $t = microtime(true); for ($i = 0; $i < 10000; $i++) { Astatic::get(); } echo microtime(true) - $t; echo "\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.200.0100.04212.38
5.4.190.0100.04212.38
5.4.180.0090.04112.38
5.4.170.0120.04112.38
5.4.160.0100.04112.37
5.4.150.0120.03812.37
5.4.140.0120.03812.06
5.4.130.0130.03912.04
5.4.120.0090.04112.01
5.4.110.0110.04212.00
5.4.100.0140.03612.01
5.4.90.0100.04012.01
5.4.80.0050.04512.01
5.4.70.0180.04712.00
5.4.60.0120.03712.00
5.4.50.0090.04112.00
5.4.40.0130.03511.99
5.4.30.0110.03911.99
5.4.20.0150.04811.98
5.4.10.0120.03611.99
5.4.00.0110.03811.48
5.3.270.0130.04212.72
5.3.260.0110.04212.72
5.3.250.0110.03912.72
5.3.240.0130.04012.72
5.3.230.0120.04112.71
5.3.220.0090.04312.68
5.3.210.0120.04012.68
5.3.200.0090.04212.68
5.3.190.0130.03812.68
5.3.180.0120.03912.67
5.3.170.0110.04112.67
5.3.160.0110.04112.68
5.3.150.0180.05112.67
5.3.140.0110.04112.66
5.3.130.0120.04212.66
5.3.120.0100.04912.66
5.3.110.0130.04812.66
5.3.100.0120.04712.12
5.3.90.0100.04512.08
5.3.80.0090.04312.08
5.3.70.0130.04112.07
5.3.60.0150.03812.06
5.3.50.0260.05812.00
5.3.40.0110.04112.00
5.3.30.0150.05011.96
5.3.20.0120.03811.74
5.3.10.0110.03811.70
5.3.00.0080.04211.69

preferences:
133.88 ms | 1394 KiB | 7 Q