3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function foo() { static::who(); } public static function who() { echo __CLASS__."\n"; } } class B extends A { public static function test() { B::foo(); parent::foo(); self::foo(); } public static function who() { echo __CLASS__."\n"; } } class C extends B { public static function who() { echo __CLASS__."\n"; } } C::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)
8.3.60.0040.01116.50
8.3.50.0070.01416.63
8.3.40.0100.01018.75
8.3.30.0150.00018.46
8.3.20.0040.00420.29
8.3.10.0070.00321.86
8.3.00.0090.00019.34
8.2.180.0030.01416.38
8.2.170.0110.00722.96
8.2.160.0070.00718.76
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0000.00819.36
8.2.120.0080.00026.35
8.2.110.0030.00620.56
8.2.100.0090.00317.66
8.2.90.0030.00619.09
8.2.80.0040.00417.97
8.2.70.0100.00017.50
8.2.60.0080.00017.80
8.2.50.0060.00318.10
8.2.40.0040.00420.45
8.2.30.0000.00719.01
8.2.20.0040.00417.95
8.2.10.0000.00717.91
8.2.00.0040.00417.86
8.1.280.0120.00625.92
8.1.270.0050.00222.20
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0070.00322.67
8.1.230.0070.00419.05
8.1.220.0060.00317.74
8.1.210.0060.00318.77
8.1.200.0040.00417.10
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0040.00418.59
8.1.160.0040.00418.82
8.1.150.0070.00418.77
8.1.140.0070.00019.46
8.1.130.0030.00318.77
8.1.120.0000.00817.26
8.1.110.0040.00417.20
8.1.100.0050.00217.24
8.1.90.0000.00717.35
8.1.80.0040.00417.24
8.1.70.0040.00417.40
8.1.60.0030.00517.41
8.1.50.0050.00217.47
8.1.40.0000.00817.36
8.1.30.0040.00417.52
8.1.20.0070.00017.51
8.1.10.0040.00417.52
8.1.00.0040.00417.52
8.0.300.0000.00818.77
8.0.290.0070.00016.58
8.0.280.0070.00018.46
8.0.270.0030.00317.27
8.0.260.0000.00616.79
8.0.250.0000.00816.96
8.0.240.0060.00316.79
8.0.230.0070.00016.82
8.0.220.0030.00316.86
8.0.210.0040.00416.77
8.0.200.0000.00616.87
8.0.190.0000.01016.79
8.0.180.0000.00816.89
8.0.170.0030.00316.89
8.0.160.0000.00816.73
8.0.150.0040.00416.71
8.0.140.0040.00416.84
8.0.130.0060.00013.30
8.0.120.0040.00416.71
8.0.110.0030.00316.84
8.0.100.0070.00016.71
8.0.90.0020.00516.89
8.0.80.0060.00916.81
8.0.70.0070.00016.65
8.0.60.0000.00716.65
8.0.50.0000.00816.86
8.0.30.0100.00617.11
8.0.20.0130.00517.40
8.0.10.0030.00516.88
8.0.00.0090.01916.50
7.4.330.0070.00015.55
7.4.320.0030.00316.55
7.4.300.0000.00616.46
7.4.290.0030.00316.49
7.4.280.0000.00816.61
7.4.270.0040.00416.57
7.4.260.0030.00716.42
7.4.250.0050.00216.36
7.4.240.0000.00716.56
7.4.230.0070.00016.46
7.4.220.0140.00316.41
7.4.210.0040.01116.48
7.4.200.0000.00716.57
7.4.160.0110.00916.46
7.4.150.0130.00717.40
7.4.140.0120.01017.86
7.4.130.0180.01116.50
7.4.120.0130.00916.49
7.4.110.0120.00316.50
7.4.100.0090.01016.57
7.4.90.0090.00616.62
7.4.80.0100.00719.39
7.4.70.0160.00616.41
7.4.60.0060.01016.54
7.4.50.0030.01216.39
7.4.40.0030.01416.48
7.4.30.0160.00016.50
7.4.00.0150.00015.02
7.3.330.0000.00513.23
7.3.320.0000.00513.10
7.3.310.0080.00016.11
7.3.300.0040.00416.18
7.3.290.0070.00716.21
7.3.280.0090.00716.24
7.3.270.0230.00417.40
7.3.260.0120.00816.27
7.3.250.0110.00716.28
7.3.240.0120.00816.30
7.3.230.0130.00716.19
7.3.210.0130.00316.25
7.3.200.0130.00716.19
7.3.190.0060.00916.57
7.3.180.0080.00816.36
7.3.170.0090.00916.28
7.3.160.0030.01416.29
7.2.330.0100.00716.51
7.2.320.0090.00916.48
7.2.310.0080.00816.75
7.2.300.0030.01516.60
7.2.290.0140.00516.37
7.2.60.0140.00016.65
7.2.00.0060.01319.51
7.1.200.0100.00715.63
7.1.100.0080.00318.07
7.1.70.0090.00916.89
7.1.60.0220.00634.77
7.1.50.0160.01034.63
7.1.40.0150.01534.33
7.1.30.0190.01034.31
7.1.20.0160.01334.40
7.1.10.0060.00616.32
7.1.00.0100.00416.56
7.0.200.0060.00616.57
7.0.190.0030.01016.64
7.0.180.0070.00716.22
7.0.170.0030.01016.22
7.0.160.0140.00016.20
7.0.150.0030.01116.09
7.0.140.0070.00716.23
7.0.130.0100.00316.37
7.0.120.0030.01016.51
7.0.110.0060.00916.16
7.0.100.0080.01016.36
7.0.90.0080.00616.16
7.0.80.0070.01116.32
7.0.70.0120.00316.29
7.0.60.0000.01615.84
7.0.50.0110.00816.18
7.0.40.0100.00316.17
7.0.30.0030.01016.51
7.0.20.0150.00416.41
7.0.10.0050.01016.21
7.0.00.0050.01116.36

preferences:
50.13 ms | 401 KiB | 5 Q