3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { private static $var = 12; public static function test(){ return self::$var; } } class B extends A { public function test(){ return parent::test(); } } var_dump(B::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.320.0230.03718.98
5.4.310.0230.03019.25
5.4.300.0270.04019.16
5.4.290.0130.04019.13
5.4.280.0170.04319.19
5.4.270.0130.04019.06
5.4.260.0170.05019.06
5.4.250.0300.03319.14
5.4.240.0200.03319.25
5.4.230.0170.04718.86
5.4.220.0270.03019.07
5.4.210.0170.03719.30
5.4.200.0200.04019.22
5.4.190.0230.03318.98
5.4.180.0170.03719.21
5.4.170.0130.04019.08
5.4.160.0100.04718.82
5.4.150.0200.03718.82
5.4.140.0170.03716.50
5.4.130.0130.04016.54
5.4.120.0200.03716.50
5.4.110.0200.03016.42
5.4.100.0230.03716.25
5.4.90.0200.03016.51
5.4.80.0270.03016.63
5.4.70.0170.04716.49
5.4.60.0170.03316.52
5.4.50.0170.04016.55
5.4.40.0170.04016.23
5.4.30.0200.03716.52
5.4.20.0100.04316.53
5.4.10.0200.03316.24
5.4.00.0170.03716.11
5.3.290.0200.03314.68
5.3.280.0230.03714.50
5.3.270.0100.04314.66
5.3.260.0170.07314.58
5.3.250.0200.04314.61
5.3.240.0170.03314.66
5.3.230.0230.03014.52
5.3.220.0200.03314.48
5.3.210.0100.04014.57
5.3.200.0170.03714.65
5.3.190.0230.03014.49
5.3.180.0230.04314.65
5.3.170.0230.04014.68
5.3.160.0200.07014.57
5.3.150.0230.03314.71
5.3.140.0200.04714.53
5.3.130.0230.05714.54
5.3.120.0270.06714.55
5.3.110.0330.07014.45
5.3.100.0200.06714.05
5.3.90.0230.05713.92
5.3.80.0270.06314.10
5.3.70.0230.07013.93
5.3.60.0200.04014.09
5.3.50.0170.03713.86
5.3.40.0200.03313.96
5.3.30.0170.03713.91
5.3.20.0270.07013.60
5.3.10.0130.05313.57
5.3.00.0130.04013.66
5.2.170.0130.03312.29
5.2.160.0230.03712.29
5.2.150.0170.02712.29
5.2.140.0130.06312.29
5.2.130.0230.05012.29
5.2.120.0170.06012.29
5.2.110.0200.06012.29
5.2.100.0200.03012.29
5.2.90.0200.03012.29
5.2.80.0170.03012.29
5.2.70.0100.03312.29
5.2.60.0200.05012.29
5.2.50.0170.02712.29
5.2.40.0130.03312.29
5.2.30.0070.03012.29
5.2.20.0100.03012.29
5.2.10.0130.02712.29
5.2.00.0070.03312.29
5.1.60.0100.02312.29
5.1.50.0170.04712.29
5.1.40.0070.03012.29
5.1.30.0130.02312.29
5.1.20.0130.02312.29
5.1.10.0100.02712.29
5.1.00.0130.02712.29
5.0.50.0070.02012.29
5.0.40.0100.02012.29
5.0.30.0030.04012.29
5.0.20.0070.02012.29
5.0.10.0100.02712.29
5.0.00.0070.03712.29
4.4.90.0030.01712.29
4.4.80.0070.03312.29
4.4.70.0070.01312.29
4.4.60.0070.02712.29
4.4.50.0030.01312.29
4.4.40.0100.02012.29
4.4.30.0170.02012.29
4.4.20.0100.02712.29
4.4.10.0070.03312.29
4.4.00.0070.04312.29
4.3.110.0070.02712.29
4.3.100.0100.02712.29
4.3.90.0130.02012.29
4.3.80.0030.02712.29
4.3.70.0100.01712.29
4.3.60.0100.03012.29
4.3.50.0070.01712.29
4.3.40.0100.03712.29
4.3.30.0030.03712.29
4.3.20.0000.02312.29
4.3.10.0030.02012.29
4.3.00.0030.02012.29

preferences:
143.47 ms | 1394 KiB | 7 Q