3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function foo() { $f = function() { echo get_called_class()."\n"; echo static::$bar."\n"; }; $f(); echo get_called_class()."\n"; echo static::$bar."\n"; } } class B extends A { static public $bar = 'ss'; } B::foo(); echo get_called_class():"\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.250.0000.06018.73
5.4.240.0170.06019.05
5.4.230.0030.06018.97
5.4.220.0030.07718.88
5.4.210.0000.06018.94
5.4.200.0130.06318.88
5.4.190.0070.05318.88
5.4.180.0070.05018.94
5.4.170.0000.05718.68
5.4.160.0070.05318.71
5.4.150.0300.04318.87
5.4.140.0100.05316.52
5.4.130.0100.04716.54
5.4.120.0070.04716.41
5.4.110.0070.05316.63
5.4.100.0230.05016.51
5.4.90.0070.06716.59
5.4.80.0000.05716.65
5.4.70.0130.05316.46
5.4.60.0030.05716.48
5.4.50.0170.06016.48
5.4.40.0200.03716.45
5.4.30.0070.06716.34
5.4.20.0300.05316.46
5.4.10.0100.07316.44
5.4.00.0070.06315.96
5.3.280.0130.05314.68
5.3.270.0100.05314.75
5.3.260.0100.05314.76
5.3.250.0030.05314.60
5.3.240.0000.05714.79
5.3.230.0070.05714.67
5.3.220.0130.04314.66
5.3.210.0030.05714.57
5.3.200.0070.05314.65
5.3.190.0170.04014.79
5.3.180.0030.05714.56
5.3.170.0100.05314.59
5.3.160.0100.07314.65
5.3.150.0100.07014.66
5.3.140.0070.05714.73
5.3.130.0100.07314.69
5.3.120.0100.07314.65
5.3.110.0100.07314.64
5.3.100.0130.04714.18
5.3.90.0130.04314.11
5.3.80.0100.05714.11
5.3.70.0170.05714.11
5.3.60.0070.06013.84
5.3.50.0130.04713.93
5.3.40.0070.05013.95
5.3.30.0100.05314.00
5.3.20.0070.06713.54
5.3.10.0170.04713.73
5.3.00.0130.08013.72

preferences:
137.92 ms | 1394 KiB | 7 Q