3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { public function foo() { echo "C::foo\n"; D::foo(); } } class D extends C { public function foo() { echo "D::foo\n"; } } $obj = new C(); $obj->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.0100.00716.50
8.3.50.0110.00822.77
8.3.40.0120.00318.77
8.3.30.0100.00319.05
8.3.20.0080.00020.36
8.3.10.0000.00823.61
8.3.00.0050.00319.51
8.2.180.0040.01116.75
8.2.170.0040.01122.96
8.2.160.0070.00720.38
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0100.00326.16
8.2.120.0000.00720.81
8.2.110.0090.00019.30
8.2.100.0090.00317.97
8.2.90.0040.00419.23
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0050.00517.93
8.2.50.0040.00418.07
8.2.40.0050.00318.28
8.2.30.0000.00717.86
8.2.20.0040.00417.57
8.2.10.0040.00417.96
8.2.00.0000.00717.77
8.1.280.0120.00625.92
8.1.270.0100.00323.96
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0030.00622.24
8.1.230.0070.00419.00
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0000.00917.11
8.1.180.0040.00418.10
8.1.170.0080.00018.50
8.1.160.0000.00721.99
8.1.150.0070.00018.82
8.1.140.0040.00417.44
8.1.130.0070.00017.73
8.1.120.0000.00717.23
8.1.110.0080.00017.27
8.1.100.0040.00417.37
8.1.90.0030.00517.43
8.1.80.0040.00417.40
8.1.70.0030.00317.36
8.1.60.0000.00817.55
8.1.50.0000.00817.50
8.1.40.0030.00617.37
8.1.30.0050.00517.59
8.1.20.0050.00217.65
8.1.10.0000.00817.52
8.1.00.0000.00817.52
8.0.300.0000.00821.89
8.0.290.0000.00716.75
8.0.280.0000.00718.44
8.0.270.0000.00717.26
8.0.260.0070.00017.25
8.0.250.0000.00716.93
8.0.240.0030.00316.97
8.0.230.0070.00016.93
8.0.220.0030.00316.83
8.0.210.0040.00416.74
8.0.200.0070.00016.82
8.0.190.0000.00816.84
8.0.180.0070.00016.98
8.0.170.0000.00716.98
8.0.160.0000.00716.86
8.0.150.0050.00216.72
8.0.140.0030.00616.80
8.0.130.0000.00613.23
8.0.120.0030.00616.70
8.0.110.0070.00016.95
8.0.100.0070.00016.86
8.0.90.0000.00716.95
8.0.80.0080.00816.77
8.0.70.0000.00716.83
8.0.60.0040.00416.92
8.0.50.0040.00416.77
8.0.30.0110.00916.97
8.0.20.0100.01017.40
8.0.10.0050.00316.86
8.0.00.0120.00616.79
7.4.330.0020.00215.04
7.4.320.0000.00716.58
7.4.300.0070.00016.60
7.4.290.0030.00316.46
7.4.280.0050.00316.47
7.4.270.0030.00316.64
7.4.260.0000.00716.60
7.4.250.0060.00316.46
7.4.240.0060.00216.61
7.4.230.0040.00416.57
7.4.220.0060.01816.53
7.4.210.0090.00916.54
7.4.200.0000.00716.61
7.4.160.0080.00816.39
7.4.150.0150.00817.40
7.4.140.0090.00717.86
7.4.130.0060.01116.50
7.4.120.0130.00516.56
7.4.110.0130.00916.51
7.4.100.0130.00316.60
7.4.90.0150.00316.39
7.4.80.0000.01619.39
7.4.70.0070.01416.50
7.4.60.0120.00416.45
7.4.50.0090.00016.21
7.4.40.0090.01616.31
7.4.30.0080.00816.56
7.4.00.0140.00314.96
7.3.330.0050.00013.30
7.3.320.0040.00413.38
7.3.310.0030.00316.34
7.3.300.0070.00016.20
7.3.290.0060.01216.31
7.3.280.0140.00416.28
7.3.270.0030.01317.40
7.3.260.0130.00716.29
7.3.250.0120.00716.44
7.3.240.0090.00916.29
7.3.230.0100.00616.39
7.3.210.0140.00316.30
7.3.200.0030.01319.39
7.3.190.0000.01716.38
7.3.180.0120.00916.29
7.3.170.0030.01316.53
7.3.160.0120.00916.36
7.2.330.0060.01316.48
7.2.320.0100.01016.67
7.2.310.0060.01016.57
7.2.300.0110.00616.63
7.2.290.0170.00016.67
7.2.60.0160.00416.55
7.1.200.0220.00315.04
7.1.100.0070.01018.06
7.1.70.0000.01016.93
7.1.60.0140.01119.40
7.1.50.0100.01316.96
7.1.00.0070.07322.55
7.0.200.0000.00816.55
7.0.140.0130.06322.01
7.0.60.0030.05719.90
7.0.50.0100.08717.73
7.0.40.0030.08020.26
7.0.30.0430.06020.34
7.0.20.0300.04320.19
7.0.10.0030.08720.19
7.0.00.0100.06720.05
5.6.280.0000.07321.13
5.6.210.0070.08720.77
5.6.200.0000.09018.18
5.6.190.0200.07320.68
5.6.180.2600.04020.46
5.6.170.0270.04020.43
5.6.160.0030.05720.62
5.6.150.0100.06318.18
5.6.140.0030.04718.12
5.6.130.0070.04018.15
5.6.120.0130.07721.14
5.6.110.0130.07320.90
5.6.100.0030.08320.97
5.6.90.0030.04321.08
5.6.80.0070.08320.38
5.6.70.3470.03020.43
5.5.350.0370.07020.45
5.5.340.0030.08717.95
5.5.330.0170.06020.21
5.5.320.0230.05020.34
5.5.310.0130.06320.35
5.5.300.0100.07717.98
5.5.290.0030.05018.02
5.5.280.0130.03020.97
5.5.270.0100.08020.77
5.5.260.0030.08320.84
5.5.250.0170.07320.77
5.5.240.0230.06020.22
5.4.450.0830.04719.39
5.4.440.1630.06019.70
5.4.430.0170.05319.35
5.4.420.0170.05719.46
5.4.410.0200.06019.18
5.4.400.1000.06019.26
5.4.390.0600.06719.37
5.4.380.0330.05318.80
5.4.370.0370.05018.62
5.4.360.1000.04318.80
5.4.350.0270.05718.70
5.4.340.0500.04018.54
5.4.320.0090.03812.51
5.4.310.0080.03612.50
5.4.300.0050.03912.50
5.4.290.0090.03812.50
5.4.280.0050.03812.39
5.4.270.0080.04612.40
5.4.260.0130.03612.39
5.4.250.0040.04012.39
5.4.240.0080.03512.40
5.4.230.0060.04512.39
5.4.220.0090.03612.39
5.4.210.0030.03912.39
5.4.200.0080.03512.39
5.4.190.0030.03912.38
5.4.180.0070.03512.38
5.4.170.0060.03712.40
5.4.160.0070.03512.39
5.4.150.0060.03612.39
5.4.140.0070.03512.08
5.4.130.0100.03212.06
5.4.120.0060.03612.02
5.4.110.0100.03212.02
5.4.100.0060.04012.02
5.4.90.0030.04012.02
5.4.80.0090.03412.02
5.4.70.0060.03612.01
5.4.60.0050.03612.01
5.4.50.0070.03812.01
5.4.40.0050.03612.00
5.4.30.0050.04212.00
5.4.20.0070.03612.00
5.4.10.0060.04412.00
5.4.00.0060.04911.49
5.3.290.0090.03812.80
5.3.280.0120.04012.71
5.3.270.0060.04112.73
5.3.260.0140.04812.72
5.3.250.0100.05212.72
5.3.240.0090.05212.72
5.3.230.0070.03612.71
5.3.220.0040.03912.68
5.3.210.0070.03812.68
5.3.200.0080.03412.68
5.3.190.0100.04312.68
5.3.180.0080.03512.67
5.3.170.0070.03512.67
5.3.160.0070.03612.68
5.3.150.0060.03712.68
5.3.140.0020.04012.66
5.3.130.0030.04112.66
5.3.120.0060.04112.66
5.3.110.0090.03712.65
5.3.100.0080.04212.12
5.3.90.0050.03912.10
5.3.80.0060.03712.10
5.3.70.0040.03812.10
5.3.60.0050.03812.07
5.3.50.0100.03212.03
5.3.40.0050.03812.03
5.3.30.0080.03311.98
5.3.20.0020.03911.76
5.3.10.0050.03511.73
5.3.00.0060.03711.72
5.2.170.0050.0329.22
5.2.160.0070.0289.22
5.2.150.0030.0339.22
5.2.140.0040.0329.22
5.2.130.0010.0339.18
5.2.120.0030.0319.18
5.2.110.0030.0329.18
5.2.100.0050.0319.18
5.2.90.0050.0409.18
5.2.80.0060.0329.17
5.2.70.0040.0389.17
5.2.60.0040.0309.13
5.2.50.0080.0269.10
5.2.40.0050.0299.07
5.2.30.0060.0319.05
5.2.20.0020.0329.04
5.2.10.0050.0288.95
5.2.00.0070.0268.80
5.1.60.0030.0328.09
5.1.50.0050.0288.09
5.1.40.0060.0268.06
5.1.30.0050.0268.42
5.1.20.0040.0278.44
5.1.10.0050.0288.17
5.1.00.0050.0278.16
5.0.50.0050.0216.64
5.0.40.0040.0196.50
5.0.30.0060.0366.32
5.0.20.0040.0196.28
5.0.10.0060.0176.25
5.0.00.0040.0306.25
4.4.90.0040.0174.78
4.4.80.0040.0204.75
4.4.70.0030.0194.75
4.4.60.0040.0154.75
4.4.50.0020.0184.77
4.4.40.0040.0294.71
4.4.30.0020.0164.76
4.4.20.0050.0134.85
4.4.10.0040.0184.85
4.4.00.0060.0224.76
4.3.110.0030.0164.67
4.3.100.0040.0194.66
4.3.90.0050.0124.64
4.3.80.0030.0244.58
4.3.70.0050.0124.63
4.3.60.0050.0194.63
4.3.50.0050.0204.63
4.3.40.0030.0274.54
4.3.30.0020.0163.30
4.3.20.0010.0173.28
4.3.10.0030.0143.23
4.3.00.0130.0237.26

preferences:
38.22 ms | 401 KiB | 5 Q