3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function foo() { return static::bar(); } } class B extends A { public static function bar() { echo 'bar'; } } var_dump(A::foo());

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.0130.00718.30
8.3.50.0220.00721.92
8.3.40.0070.00718.93
8.3.30.0070.00720.18
8.3.20.0040.00420.39
8.3.10.0060.00321.97
8.3.00.0050.00322.39
8.2.180.0100.01016.63
8.2.170.0110.00422.96
8.2.160.0090.00622.06
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00820.72
8.2.110.0000.00822.09
8.2.100.0070.00717.91
8.2.90.0030.00619.09
8.2.80.0070.00019.46
8.2.70.0080.00017.63
8.2.60.0040.00417.68
8.2.50.0000.00818.07
8.2.40.0070.00018.03
8.2.30.0000.00717.91
8.2.20.0000.00717.70
8.2.10.0080.00017.57
8.2.00.0050.00617.67
8.1.280.0140.00325.92
8.1.270.0080.00023.99
8.1.260.0060.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00323.75
8.1.230.0070.00419.14
8.1.220.0080.00017.74
8.1.210.0080.00018.77
8.1.200.0100.00017.35
8.1.190.0030.00517.50
8.1.180.0050.00319.01
8.1.170.0080.00018.41
8.1.160.0000.00722.18
8.1.150.0070.00018.50
8.1.140.0000.00717.32
8.1.130.0070.00017.78
8.1.120.0030.00317.20
8.1.110.0000.00817.28
8.1.100.0040.00417.24
8.1.90.0000.00717.30
8.1.80.0030.00317.34
8.1.70.0080.00017.30
8.1.60.0060.00317.39
8.1.50.0050.00217.38
8.1.40.0080.00017.52
8.1.30.0030.00617.45
8.1.20.0040.00417.46
8.1.10.0050.00317.41
8.1.00.0050.00217.43
8.0.300.0040.00418.77
8.0.290.0000.00717.05
8.0.280.0030.00318.43
8.0.270.0040.00417.10
8.0.260.0040.00416.72
8.0.250.0030.00316.83
8.0.240.0080.00016.94
8.0.230.0000.00716.94
8.0.220.0040.00416.89
8.0.210.0000.00716.85
8.0.200.0070.00016.79
8.0.190.0080.00016.96
8.0.180.0030.00316.96
8.0.170.0030.00316.91
8.0.160.0080.00016.85
8.0.150.0030.00516.80
8.0.140.0040.00416.75
8.0.130.0060.00013.35
8.0.120.0030.00616.84
8.0.110.0030.00616.77
8.0.100.0040.00416.91
8.0.90.0040.00416.91
8.0.80.0080.00916.83
8.0.70.0000.00716.89
8.0.60.0080.00016.75
8.0.50.0000.00816.95
8.0.30.0110.00717.14
8.0.20.0100.01017.40
8.0.10.0040.00416.91
8.0.00.0130.00916.81
7.4.330.0030.00315.00
7.4.320.0030.00316.43
7.4.300.0030.00316.50
7.4.290.0000.00716.51
7.4.280.0030.00616.48
7.4.270.0000.00716.56
7.4.260.0030.00316.43
7.4.250.0050.00216.55
7.4.240.0030.00516.56
7.4.230.0030.00316.33
7.4.220.0120.01016.50
7.4.210.0110.00716.54
7.4.200.0000.00716.51
7.4.190.0070.00016.40
7.4.160.0110.00516.39
7.4.150.0060.01117.40
7.4.140.0130.00817.86
7.4.130.0110.00616.54
7.4.120.0090.00816.46
7.4.110.0060.01116.57
7.4.100.0040.01316.38
7.4.90.0140.00816.50
7.4.80.0150.00719.39
7.4.70.0130.00316.28
7.4.60.0090.01516.43
7.4.50.0040.00416.52
7.4.40.0140.00322.77
7.4.30.0120.00416.56
7.4.00.0170.00015.10
7.3.330.0020.00213.18
7.3.320.0060.00013.37
7.3.310.0000.00816.25
7.3.300.0000.00716.38
7.3.290.0070.00716.43
7.3.280.0090.00616.34
7.3.270.0030.01317.40
7.3.260.0240.01016.48
7.3.250.0070.01016.29
7.3.240.0100.00716.28
7.3.230.0120.00416.71
7.3.210.0110.00616.32
7.3.200.0060.01219.39
7.3.190.0180.00316.44
7.3.180.0060.00916.46
7.3.170.0100.00616.50
7.3.160.0130.00816.30
7.3.120.0060.00914.82
7.3.10.0080.00816.47
7.3.00.0080.01116.66
7.2.330.0090.00916.69
7.2.320.0170.00016.28
7.2.310.0060.01016.59
7.2.300.0110.01116.51
7.2.290.0040.01916.46
7.2.130.0060.01216.50
7.2.120.0070.01016.75
7.2.110.0080.01116.61
7.2.100.0100.00716.48
7.2.90.0100.00716.75
7.2.80.0060.00616.80
7.2.70.0040.00416.77
7.2.60.0020.01116.83
7.2.50.0070.00416.34
7.2.40.0100.00316.64
7.2.30.0000.00916.48
7.2.20.0030.00916.39
7.2.10.0000.01416.45
7.2.00.0050.00918.12
7.1.250.0040.01115.55
7.1.200.0070.00715.71
7.1.100.0060.00917.94
7.1.70.0080.00317.14
7.1.60.0060.01019.43
7.1.50.0100.01316.54
7.1.00.0030.06322.51
7.0.200.0070.00316.47
7.0.140.0070.06722.08
7.0.60.0030.07720.02
7.0.50.0170.05717.96
7.0.40.0130.03320.05
7.0.30.0270.03720.30
7.0.20.0170.08320.08
7.0.10.0100.05720.07
7.0.00.0000.06020.14
5.6.280.0070.07021.13
5.6.210.0100.03320.48
5.6.200.0130.07318.22
5.6.190.0100.07020.77
5.6.180.0300.08020.61
5.6.170.0430.05320.54
5.6.160.0170.06720.39
5.6.150.0000.04018.28
5.6.140.0070.08318.22
5.6.130.0000.04318.18
5.6.120.0070.03721.02
5.6.110.0100.08021.12
5.6.100.0130.07721.01
5.6.90.0230.06721.04
5.6.80.0030.04320.45
5.6.70.4030.03320.42
5.5.350.0130.07320.33
5.5.340.0100.04718.01
5.5.330.0100.08020.42
5.5.320.0030.04320.27
5.5.310.0200.03720.32
5.5.300.0030.04317.95
5.5.290.0130.05318.08
5.5.280.0000.07320.89
5.5.270.0130.07720.65
5.5.260.0100.08020.98
5.5.250.0100.04020.62
5.5.240.0170.04020.13
5.4.450.0630.07319.29
5.4.440.0970.06719.46
5.4.430.1070.05319.47
5.4.420.0500.06319.46
5.4.410.1000.05319.35
5.4.400.0300.05718.77
5.4.390.0270.05718.75
5.4.380.0170.06018.47
5.4.370.0070.06018.62
5.4.360.0170.05018.48
5.4.350.0070.03612.02
5.4.340.0100.03512.02
5.4.320.0070.05212.50
5.4.310.0120.08912.50
5.4.300.0040.03812.51
5.4.290.0110.05012.50
5.4.280.0150.07512.40
5.4.270.0070.04312.40
5.4.260.0090.07012.40
5.4.250.0150.07612.40
5.4.240.0100.04718.98
5.4.230.0070.05019.00
5.4.220.0030.05318.78
5.4.210.0070.05018.76
5.4.200.0130.04719.09
5.4.190.0000.05718.78
5.4.180.0030.05318.75
5.4.170.0100.04719.01
5.4.160.0030.05018.82
5.4.150.0070.05019.00
5.4.140.0070.05016.45
5.4.130.0070.05316.61
5.4.120.0000.06316.44
5.4.110.0070.04716.47
5.4.100.0100.04316.56
5.4.90.0070.04716.55
5.4.80.0130.04316.50
5.4.70.0030.04716.45
5.4.60.0070.04716.38
5.4.50.0070.04716.63
5.4.40.0000.05016.44
5.4.30.0070.04316.46
5.4.20.0100.04316.64
5.4.10.0030.05316.32
5.4.00.0000.05015.83
5.3.290.0100.05812.80
5.3.280.0100.04314.67
5.3.270.0070.05314.68
5.3.260.0130.04314.67
5.3.250.0100.06014.69
5.3.240.0030.07014.70
5.3.230.0000.05314.68
5.3.220.0030.05314.66
5.3.210.0000.05314.47
5.3.200.0070.04714.79
5.3.190.0000.05314.70
5.3.180.0030.04714.64
5.3.170.0100.04314.73
5.3.160.0070.06014.41
5.3.150.0070.04714.72
5.3.140.0000.05014.39
5.3.130.0000.05314.54
5.3.120.0070.05014.63
5.3.110.0070.05014.73
5.3.100.0030.05013.96
5.3.90.0030.04714.02
5.3.80.0030.05014.10
5.3.70.0130.04014.08
5.3.60.0070.04714.02
5.3.50.0030.04713.97
5.3.40.0000.05314.13
5.3.30.0070.04314.00
5.3.20.0100.04013.71
5.3.10.0030.06013.82
5.3.00.0030.05713.81
5.2.170.0070.03711.04
5.2.160.0030.04011.11
5.2.150.0070.04711.23
5.2.140.0030.04310.96
5.2.130.0000.04011.05
5.2.120.0000.04311.14
5.2.110.0000.04011.18
5.2.100.0030.04011.23
5.2.90.0070.03311.07
5.2.80.0070.03711.07
5.2.70.0030.04011.11
5.2.60.0000.04711.12
5.2.50.0000.04011.09
5.2.40.0000.04011.07
5.2.30.0100.03311.07
5.2.20.0070.04310.95
5.2.10.0030.04010.93
5.2.00.0000.04010.79
5.1.60.0030.03310.06
5.1.50.0030.03310.04
5.1.40.0030.03310.07
5.1.30.0030.03310.30
5.1.20.0030.03310.33
5.1.10.0100.02710.13
5.1.00.0100.0279.90
5.0.50.0030.0278.64
5.0.40.0000.0278.50
5.0.30.0000.0438.28
5.0.20.0030.0278.25
5.0.10.0030.0378.23
5.0.00.0030.0438.11
4.4.90.0000.0205.83
4.4.80.0070.0175.85
4.4.70.0030.0175.84
4.4.60.0000.0205.91
4.4.50.0030.0205.81
4.4.40.0030.0305.81
4.4.30.0000.0275.80
4.4.20.0000.0235.95
4.4.10.0000.0206.02
4.4.00.0030.0335.84
4.3.110.0100.0275.84
4.3.100.0100.0135.84
4.3.90.0070.0175.84
4.3.80.0000.0335.84
4.3.70.0070.0135.84
4.3.60.0000.0205.84
4.3.50.0000.0205.84
4.3.40.0000.0335.84
4.3.30.0070.0175.84
4.3.20.0000.0275.84
4.3.10.0030.0175.84
4.3.00.0100.0136.74

preferences:
32.76 ms | 401 KiB | 5 Q