3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function foo() { echo __METHOD__, "\n"; } } class B extends A { public static function foo() { parent::foo(); echo __METHOD__, "\n"; } } class C extends B { public static function foo() { parent::foo(); echo __METHOD__, "\n"; } } C::foo(); echo "\n"; B::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.0070.01418.23
8.3.50.0100.00921.98
8.3.40.0110.00418.79
8.3.30.0120.00318.92
8.3.20.0070.00020.24
8.3.10.0040.00421.81
8.3.00.0060.00318.88
8.2.180.0080.00816.50
8.2.170.0090.00622.96
8.2.160.0040.00922.11
8.2.150.0050.00324.18
8.2.140.0070.00024.66
8.2.130.0000.00726.16
8.2.120.0000.00819.54
8.2.110.0040.00422.09
8.2.100.0090.00317.59
8.2.90.0090.00019.17
8.2.80.0000.00817.97
8.2.70.0050.00317.50
8.2.60.0020.00517.93
8.2.50.0040.00418.07
8.2.40.0040.00418.03
8.2.30.0000.00717.93
8.2.20.0040.00417.57
8.2.10.0040.00417.82
8.2.00.0000.00817.56
8.1.280.0170.00325.92
8.1.270.0030.00618.83
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0030.00623.88
8.1.230.0100.00019.15
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.13
8.1.190.0040.00416.88
8.1.180.0050.00318.10
8.1.170.0040.00418.45
8.1.160.0000.00721.99
8.1.150.0080.00018.68
8.1.140.0030.00519.04
8.1.130.0030.00317.82
8.1.120.0030.00317.37
8.1.110.0070.00017.30
8.1.100.0000.00717.25
8.1.90.0020.00517.39
8.1.80.0000.00717.34
8.1.70.0040.00417.20
8.1.60.0030.00817.50
8.1.50.0030.00517.46
8.1.40.0060.00317.50
8.1.30.0060.00317.59
8.1.20.0000.00717.47
8.1.10.0040.00417.43
8.1.00.0000.00817.35
8.0.300.0030.00318.77
8.0.290.0000.00816.75
8.0.280.0030.00318.33
8.0.270.0030.00317.26
8.0.260.0030.00317.29
8.0.250.0030.00316.90
8.0.240.0030.00316.89
8.0.230.0030.00316.82
8.0.220.0000.00816.86
8.0.210.0000.00716.84
8.0.200.0040.00416.87
8.0.190.0030.00616.78
8.0.180.0040.00316.85
8.0.170.0040.00416.88
8.0.160.0030.00516.73
8.0.150.0050.00216.83
8.0.140.0000.00816.69
8.0.130.0050.00013.25
8.0.120.0040.00416.70
8.0.110.0000.00716.83
8.0.100.0040.00416.92
8.0.90.0050.00216.63
8.0.80.0090.00616.72
8.0.70.0030.00516.83
8.0.60.0070.00016.66
8.0.50.0000.00716.83
8.0.30.0110.01217.15
8.0.20.0070.01317.40
8.0.10.0040.00416.77
8.0.00.0130.00516.79
7.4.330.0050.00015.03
7.4.320.0000.00616.55
7.4.300.0030.00316.55
7.4.290.0030.00316.62
7.4.280.0040.00416.63
7.4.270.0030.00316.53
7.4.260.0040.00416.63
7.4.250.0040.00416.55
7.4.240.0020.00616.49
7.4.230.0050.00216.39
7.4.220.0140.00316.41
7.4.210.0070.00916.50
7.4.200.0080.00016.43
7.4.160.0080.00816.42
7.4.150.0120.00617.40
7.4.140.0060.01217.86
7.4.130.0100.00916.46
7.4.120.0110.00516.57
7.4.110.0060.01216.26
7.4.100.0150.00416.59
7.4.90.0080.01116.41
7.4.80.0130.01019.39
7.4.70.0090.00916.64
7.4.60.0140.00316.75
7.4.50.0050.00316.33
7.4.40.0140.00316.48
7.4.30.0160.00616.37
7.4.00.0040.01214.86
7.3.330.0000.00613.19
7.3.320.0050.00013.23
7.3.310.0000.00616.18
7.3.300.0000.00716.22
7.3.290.0060.00816.20
7.3.280.0100.00816.21
7.3.270.0100.01617.40
7.3.260.0170.00716.45
7.3.250.0060.01116.43
7.3.240.0160.00616.22
7.3.230.0150.00316.39
7.3.210.0150.00316.23
7.3.200.0000.01719.39
7.3.190.0100.00616.38
7.3.180.0120.00316.41
7.3.170.0120.00916.49
7.3.160.0130.00416.14
7.2.330.0140.00316.48
7.2.320.0140.00616.43
7.2.310.0070.01016.51
7.2.300.0070.01416.63
7.2.290.0110.00816.68
7.2.00.0030.00618.96
7.1.100.0100.00318.09
7.1.70.0000.01016.96
7.1.60.0030.02019.46
7.1.50.0100.01016.61
7.1.00.0100.07022.25
7.0.200.0000.00716.80
7.0.140.0000.03721.97
7.0.60.0100.08019.85
7.0.50.0130.07717.84
7.0.40.0170.07720.32
7.0.30.0330.07720.10
7.0.20.0170.07320.06
7.0.10.0030.08720.24
7.0.00.0030.06020.21
5.6.280.0070.07020.79
5.6.210.0100.06720.68
5.6.200.0100.07318.28
5.6.190.0030.04720.33
5.6.180.0230.05720.60
5.6.170.0300.04020.48
5.6.160.0100.03320.47
5.6.150.0100.08018.27
5.6.140.0130.03018.26
5.6.130.0070.06718.19
5.6.120.0100.08721.06
5.6.110.0100.05721.12
5.6.100.0130.07321.00
5.6.90.0200.07321.13
5.6.80.0070.05320.39
5.5.350.0100.07720.34
5.5.340.0130.07717.97
5.5.330.0030.07720.26
5.5.320.0270.07020.28
5.5.310.0170.08320.25
5.5.300.0070.08018.09
5.5.290.0070.07318.02
5.5.280.0170.03320.88
5.5.270.0130.05320.64
5.5.260.0100.07020.77
5.5.250.0070.08020.79
5.5.240.4230.03320.17
5.4.450.0400.06319.55
5.4.440.0600.04019.58
5.4.430.0230.04019.52
5.4.420.0130.05019.32
5.4.410.0100.07019.41
5.4.400.0130.04719.16
5.4.390.0230.05018.68
5.4.380.0300.05318.72
5.4.370.0170.05718.64
5.4.360.0170.05718.72
5.4.350.0200.06718.73
5.4.340.0230.06018.75
5.4.320.0230.05718.71
5.4.310.0230.05718.72
5.4.300.0230.06018.54
5.4.290.0330.04718.78
5.4.280.0200.05718.51
5.4.270.0170.07018.78
5.4.260.0170.05718.57
5.4.250.0300.04718.74
5.4.240.0230.04718.70
5.4.230.0270.04718.66
5.4.220.0300.05318.54
5.4.210.0070.07318.73
5.4.200.0230.05016.78
5.4.190.0170.06018.65
5.4.180.0300.04318.66
5.4.170.0100.06718.46
5.4.160.0170.05718.50
5.4.150.0130.06018.70
5.4.140.0200.05016.47
5.4.130.0300.04016.37
5.4.120.0170.06316.30
5.4.110.0230.04316.23
5.4.100.0070.06316.27
5.4.90.0100.06016.35
5.4.80.0270.04316.36
5.4.70.0270.05016.24
5.4.60.0400.03016.43
5.4.50.0130.05716.21
5.4.40.0230.04716.25
5.4.30.0230.05016.23
5.4.20.0300.04316.21
5.4.10.0300.04016.26
5.4.00.0170.05015.74
5.3.290.0370.06314.72
5.3.280.0300.04714.76
5.3.270.0200.06014.66
5.3.260.0270.05014.71
5.3.250.0200.07014.79
5.3.240.0230.07014.63
5.3.230.0370.06314.76
5.3.220.0270.05014.62
5.3.210.0230.05014.63
5.3.200.0170.05314.70
5.3.190.0170.06314.57
5.3.180.0170.05314.67
5.3.170.0170.05314.60
5.3.160.0200.05014.79
5.3.150.0270.04714.63
5.3.140.0130.06014.76
5.3.130.0270.04714.74
5.3.120.0270.04714.56
5.3.110.0230.06014.58
5.3.100.0270.07014.26
5.3.90.0230.07014.25
5.3.80.0170.07714.13
5.3.70.0200.06714.15
5.3.60.0400.05014.03
5.3.50.0130.07714.12
5.3.40.0200.05713.95
5.3.30.0330.04013.94
5.3.20.0300.04013.92
5.3.10.0200.05013.70
5.3.00.0130.06013.65
5.2.170.0070.04711.36
5.2.160.0170.04311.17
5.2.150.0130.04311.15
5.2.140.0170.04011.27
5.2.130.0200.04711.09
5.2.120.0130.05711.13
5.2.110.0230.05011.31
5.2.100.0170.04011.14
5.2.90.0170.04011.16
5.2.80.0170.04311.32
5.2.70.0130.04711.17
5.2.60.0170.04711.09
5.2.50.0200.03311.13
5.2.40.0130.04011.11
5.2.30.0130.04310.98
5.2.20.0200.03710.98
5.2.10.0130.04310.95
5.2.00.0300.02710.75
5.1.60.0100.03710.04
5.1.50.0170.03310.05
5.1.40.0100.04010.16
5.1.30.0130.05010.39
5.1.20.0200.04310.45
5.1.10.0200.04710.18
5.1.00.0200.04710.26
5.0.50.0100.0278.64
5.0.40.0070.0308.46
5.0.30.0030.0508.21
5.0.20.0100.0308.24
5.0.10.0070.0308.20
5.0.00.0100.0408.21
4.4.90.0100.0235.97
4.4.80.0100.0275.89
4.4.70.0130.0175.96
4.4.60.0100.0205.96
4.4.50.0100.0205.91
4.4.40.0070.0335.91
4.4.30.0070.0236.00
4.4.20.0030.0235.95
4.4.10.0070.0236.00
4.4.00.0070.0335.99
4.3.110.0100.0205.90
4.3.100.0170.0135.80
4.3.90.0030.0235.82
4.3.80.0070.0335.91
4.3.70.0030.0235.82
4.3.60.0070.0235.80
4.3.50.0030.0275.82
4.3.40.0100.0335.90
4.3.30.0100.0234.61
4.3.20.0130.0134.54
4.3.10.0000.0274.52
4.3.00.0130.0178.66

preferences:
41.93 ms | 401 KiB | 5 Q