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(); } } 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.0180.00416.50
8.3.50.0180.00016.42
8.3.40.0080.00618.89
8.3.30.0140.00018.59
8.3.20.0040.00420.16
8.3.10.0060.00321.53
8.3.00.0050.00319.69
8.2.180.0100.00716.47
8.2.170.0110.00422.96
8.2.160.0110.00318.89
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00419.39
8.2.120.0080.00026.35
8.2.110.0090.00020.16
8.2.100.0120.00017.78
8.2.90.0040.00419.17
8.2.80.0040.00417.97
8.2.70.0080.00317.63
8.2.60.0060.00317.93
8.2.50.0060.00318.10
8.2.40.0000.00720.42
8.2.30.0040.00419.20
8.2.20.0060.00317.82
8.2.10.0000.00717.82
8.2.00.0000.00717.93
8.1.280.0040.01525.92
8.1.270.0000.00822.00
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.68
8.1.230.0040.00819.06
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0080.00017.10
8.1.190.0080.00017.22
8.1.180.0000.00718.10
8.1.170.0040.00418.45
8.1.160.0040.00418.87
8.1.150.0040.00718.81
8.1.140.0020.00519.33
8.1.130.0030.00318.68
8.1.120.0000.00717.34
8.1.110.0040.00417.21
8.1.100.0070.00017.25
8.1.90.0000.00817.25
8.1.80.0030.00517.31
8.1.70.0000.00717.24
8.1.60.0000.00817.56
8.1.50.0000.00917.50
8.1.40.0090.00017.52
8.1.30.0030.00517.54
8.1.20.0000.00817.56
8.1.10.0050.00217.39
8.1.00.0050.00217.30
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.55
8.0.270.0000.00717.16
8.0.260.0040.00416.81
8.0.250.0000.00716.93
8.0.240.0080.00016.90
8.0.230.0030.00316.91
8.0.220.0000.00616.88
8.0.210.0040.00416.85
8.0.200.0000.00616.79
8.0.190.0000.01016.91
8.0.180.0050.00316.81
8.0.170.0040.00416.78
8.0.160.0040.00416.82
8.0.150.0040.00416.81
8.0.140.0070.00016.79
8.0.130.0030.00313.30
8.0.120.0040.00416.77
8.0.110.0040.00416.92
8.0.100.0000.00816.66
8.0.90.0040.00416.67
8.0.80.0000.02016.75
8.0.70.0000.00716.89
8.0.60.0000.00716.64
8.0.50.0050.00216.84
8.0.30.0070.00916.91
8.0.20.0100.00817.40
8.0.10.0000.00816.89
8.0.00.0140.01016.89
7.4.330.0000.00715.55
7.4.320.0030.00316.50
7.4.300.0060.00016.47
7.4.290.0070.00016.61
7.4.280.0050.00316.56
7.4.270.0040.00416.63
7.4.260.0030.00316.55
7.4.250.0000.00716.57
7.4.240.0000.00716.61
7.4.230.0000.00716.63
7.4.220.0090.00916.47
7.4.210.0060.00916.52
7.4.200.0070.00016.52
7.4.160.0090.00716.39
7.4.150.0260.01817.40
7.4.140.0110.01017.86
7.4.130.0180.00716.43
7.4.120.0130.00616.49
7.4.110.0150.00316.45
7.4.100.0050.01516.41
7.4.90.0060.01016.45
7.4.80.0050.01019.39
7.4.70.0040.01316.59
7.4.60.0090.00616.49
7.4.50.0030.00916.37
7.4.40.0070.01116.52
7.4.30.0040.01216.41
7.4.00.0070.00714.94
7.3.330.0000.00513.02
7.3.320.0050.00013.00
7.3.310.0000.00716.13
7.3.300.0070.00016.24
7.3.290.0090.00516.22
7.3.280.0090.00616.23
7.3.270.0140.00317.40
7.3.260.0100.00716.35
7.3.250.0100.00816.26
7.3.240.0060.01016.24
7.3.230.0060.01016.51
7.3.210.0150.00016.18
7.3.200.0030.01416.27
7.3.190.0070.00716.20
7.3.180.0030.01316.25
7.3.170.0120.00316.25
7.3.160.0100.00616.44
7.3.120.0030.01414.66
7.3.110.0030.01514.60
7.3.100.0100.00614.59
7.3.90.0080.00314.97
7.3.80.0030.00614.63
7.3.70.0060.00614.60
7.3.60.0090.00314.63
7.3.50.0100.00014.59
7.3.40.0100.00314.57
7.3.30.0000.01314.46
7.3.20.0060.00816.59
7.3.10.0050.01016.43
7.3.00.0070.01016.38
7.2.330.0130.00416.48
7.2.320.0100.00716.36
7.2.310.0130.00316.51
7.2.300.0070.01216.45
7.2.290.0080.01116.38
7.2.250.0070.00914.93
7.2.240.0060.01215.07
7.2.230.0060.00914.91
7.2.220.0060.00614.70
7.2.210.0070.01114.71
7.2.200.0070.00714.69
7.2.190.0070.01014.78
7.2.180.0090.00614.85
7.2.170.0060.01014.84
7.2.130.0090.01416.64
7.2.120.0140.01016.64
7.2.110.0130.00916.39
7.2.100.0130.00316.67
7.2.90.0170.00816.51
7.2.80.0070.01016.42
7.2.70.0080.01616.68
7.2.60.0060.01116.64
7.2.50.0030.01216.55
7.2.40.0140.00016.31
7.2.30.0070.01116.53
7.2.20.0090.00616.68
7.2.10.0130.00016.57
7.2.00.0070.01017.83
7.1.330.0040.01115.69
7.1.320.0060.00615.62
7.1.310.0030.01315.43
7.1.300.0030.01015.46
7.1.290.0030.00715.48
7.1.280.0060.00915.69
7.1.270.0090.00615.49
7.1.260.0070.00715.70
7.1.250.0070.00715.49
7.1.200.0080.00815.60
7.1.100.0000.01218.09
7.1.70.0070.01016.82
7.1.60.0190.00934.96
7.1.50.0130.01334.86
7.1.40.0130.01334.21
7.1.30.0150.01134.24
7.1.20.0220.00634.60
7.1.10.0070.00716.34
7.1.00.0100.00316.42
7.0.200.0000.01416.57
7.0.190.0100.00316.74
7.0.180.0120.00016.09
7.0.170.0130.00016.39
7.0.160.0090.00316.34
7.0.150.0000.01216.34
7.0.140.0000.01316.29
7.0.130.0070.00716.52
7.0.120.0030.01116.35
7.0.110.0070.00716.48
7.0.100.0140.00016.45
7.0.90.0040.00816.38
7.0.80.0060.00616.08
7.0.70.0030.01016.29
7.0.60.0000.01315.95
7.0.50.0070.00716.18
7.0.40.0060.00616.43
7.0.30.0050.00816.16
7.0.20.0050.00816.39
7.0.10.0080.00516.22
7.0.00.0030.01016.36

preferences:
53.93 ms | 400 KiB | 5 Q