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.0090.01216.88
8.3.50.0080.01022.85
8.3.40.0060.00918.82
8.3.30.0070.00719.00
8.3.20.0070.00020.06
8.3.10.0030.00523.61
8.3.00.0040.00419.51
8.2.180.0140.00716.63
8.2.170.0070.00722.96
8.2.160.0100.00320.47
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0060.00326.16
8.2.120.0030.00521.03
8.2.110.0090.00019.30
8.2.100.0060.00617.83
8.2.90.0050.00319.08
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0030.00617.93
8.2.50.0000.00818.07
8.2.40.0000.00919.88
8.2.30.0030.00517.96
8.2.20.0040.00417.68
8.2.10.0020.00517.91
8.2.00.0070.00017.72
8.1.280.0180.00025.92
8.1.270.0080.00023.97
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00320.99
8.1.230.0120.00017.45
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0060.00317.10
8.1.180.0040.00418.10
8.1.170.0030.00618.52
8.1.160.0040.00421.94
8.1.150.0040.00418.73
8.1.140.0000.00717.43
8.1.130.0000.00717.80
8.1.120.0030.00317.37
8.1.110.0000.00717.37
8.1.100.0030.00517.27
8.1.90.0050.00317.46
8.1.80.0070.00017.23
8.1.70.0030.00317.34
8.1.60.0030.00617.58
8.1.50.0000.00917.36
8.1.40.0000.00817.38
8.1.30.0030.00617.47
8.1.20.0050.00317.54
8.1.10.0040.00417.47
8.1.00.0070.00017.39
8.0.300.0070.00418.77
8.0.290.0040.00416.63
8.0.280.0070.00018.48
8.0.270.0000.00717.30
8.0.260.0000.00617.17
8.0.250.0030.00516.97
8.0.240.0050.00217.01
8.0.230.0030.00316.84
8.0.220.0000.00716.84
8.0.210.0050.00316.91
8.0.200.0060.00016.89
8.0.190.0000.00816.93
8.0.180.0040.00416.88
8.0.170.0000.00816.95
8.0.160.0040.00416.87
8.0.150.0000.00816.80
8.0.140.0060.00316.79
8.0.130.0030.00613.38
8.0.120.0030.00616.77
8.0.110.0000.00816.84
8.0.100.0070.00016.71
8.0.90.0000.00716.67
8.0.80.0150.00616.81
8.0.70.0040.00416.94
8.0.60.0000.00716.76
8.0.50.0000.00716.93
8.0.30.0150.00717.16
8.0.20.0140.01217.40
8.0.10.0040.00416.79
8.0.00.0100.01016.76
7.4.330.0050.00015.00
7.4.320.0000.00716.30
7.4.300.0030.00316.57
7.4.290.0070.00016.61
7.4.280.0070.00016.41
7.4.270.0050.00316.46
7.4.260.0030.00616.38
7.4.250.0000.00816.45
7.4.240.0020.00516.47
7.4.230.0030.00516.38
7.4.220.0030.01316.66
7.4.210.0070.01316.60
7.4.200.0030.00316.33
7.4.160.0160.00316.71
7.4.150.0100.00817.40
7.4.140.0090.01117.86
7.4.130.0090.01016.50
7.4.120.0160.00416.48
7.4.110.0070.01016.69
7.4.100.0100.00616.35
7.4.90.0110.00716.54
7.4.80.0090.00919.39
7.4.70.0130.00716.64
7.4.60.0060.00916.36
7.4.50.0060.00316.57
7.4.40.0090.00916.57
7.4.30.0040.01116.33
7.4.00.0120.00314.84
7.3.330.0050.00013.28
7.3.320.0080.00013.07
7.3.310.0030.00316.32
7.3.300.0030.00316.16
7.3.290.0110.00316.38
7.3.280.0120.00516.25
7.3.270.0120.00417.40
7.3.260.0160.00616.59
7.3.250.0100.00916.36
7.3.240.0080.01216.19
7.3.230.0040.01216.43
7.3.210.0030.01416.41
7.3.200.0090.00619.39
7.3.190.0070.01016.27
7.3.180.0060.01016.26
7.3.170.0030.01416.34
7.3.160.0080.00816.48
7.2.330.0140.00316.46
7.2.320.0040.01216.71
7.2.310.0040.01216.69
7.2.300.0120.00616.60
7.2.290.0060.01616.53
7.2.80.0070.00716.46
7.2.60.0120.00316.89
7.1.200.0040.01115.63
7.1.70.0030.00616.93
7.1.60.0120.01219.40
7.1.50.0060.00616.53
7.1.00.0030.07722.28
7.0.200.0000.00716.55
7.0.140.0030.07322.00
7.0.60.0070.04319.93
7.0.50.0000.05717.73
7.0.40.0100.08720.11
7.0.30.0300.05320.25
7.0.20.0370.07320.10
7.0.10.0170.08020.24
7.0.00.0170.05020.29
5.6.280.0000.07721.11
5.6.210.0170.07720.76
5.6.200.0100.04018.20
5.6.190.0100.06720.64
5.6.180.0570.06320.62
5.6.170.0200.04320.45
5.6.160.0030.08720.57
5.6.150.0100.05318.18
5.6.140.0070.04318.11
5.6.130.0030.05318.13
5.6.120.0130.05720.89
5.6.110.0100.07721.01
5.6.100.0070.07321.00
5.6.90.0070.04021.14
5.6.80.0030.06320.54
5.5.350.0130.04720.53
5.5.340.0130.06718.07
5.5.330.0100.04320.46
5.5.320.0330.07720.28
5.5.310.0400.06320.35
5.5.300.0070.03317.97
5.5.290.0070.08017.96
5.5.280.0100.03720.76
5.5.270.0070.08720.89
5.5.260.0030.04320.87
5.5.250.0000.04720.80
5.5.240.0070.07720.19
5.4.450.0570.03719.47
5.4.440.0470.04719.49
5.4.430.0200.04019.52
5.4.420.0470.05019.16
5.4.410.0230.03719.42
5.4.400.0270.03319.23
5.4.390.0200.04319.15
5.4.380.0330.06018.79
5.4.370.0270.06718.61
5.4.360.0470.06318.74
5.4.350.0270.05718.70
5.4.340.0200.06018.70
5.4.320.0060.03912.50
5.4.310.0070.03812.50
5.4.300.0080.03512.51
5.4.290.0080.03712.50
5.4.280.0060.03512.39
5.4.270.0080.03512.39
5.4.260.0080.04012.40
5.4.250.0080.03512.40
5.4.240.0090.03512.40
5.4.230.0070.04112.39
5.4.220.0060.03712.39
5.4.210.0040.03812.39
5.4.200.0040.03912.39
5.4.190.0080.03812.38
5.4.180.0080.03412.39
5.4.170.0060.04212.40
5.4.160.0040.04712.39
5.4.150.0080.03512.39
5.4.140.0030.04512.07
5.4.130.0070.03512.06
5.4.120.0070.03512.02
5.4.110.0040.03912.02
5.4.100.0040.03712.02
5.4.90.0070.03712.02
5.4.80.0040.03812.01
5.4.70.0080.03212.01
5.4.60.0040.03712.02
5.4.50.0060.03612.02
5.4.40.0040.03712.00
5.4.30.0050.03712.00
5.4.20.0070.03312.00
5.4.10.0020.03812.00
5.4.00.0050.03711.48
5.3.290.0080.03712.80
5.3.280.0070.04012.71
5.3.270.0060.03712.72
5.3.260.0040.04012.72
5.3.250.0070.03612.71
5.3.240.0050.03812.72
5.3.230.0080.03712.71
5.3.220.0030.04012.68
5.3.210.0040.04012.68
5.3.200.0080.03412.68
5.3.190.0070.03612.68
5.3.180.0070.03712.67
5.3.170.0070.03812.67
5.3.160.0100.03512.67
5.3.150.0070.03912.68
5.3.140.0040.03912.66
5.3.130.0080.03912.66
5.3.120.0070.04012.66
5.3.110.0070.03912.66
5.3.100.0090.03612.12
5.3.90.0020.04012.11
5.3.80.0070.03812.09
5.3.70.0030.03912.09
5.3.60.0030.03912.07
5.3.50.0070.04112.03
5.3.40.0080.04312.03
5.3.30.0050.03511.98
5.3.20.0050.03811.76
5.3.10.0060.03411.73
5.3.00.0090.03311.72
5.2.170.0050.0319.22
5.2.160.0070.0329.23
5.2.150.0110.0389.23
5.2.140.0100.0289.22
5.2.130.0050.0299.18
5.2.120.0050.0419.18
5.2.110.0070.0399.18
5.2.100.0020.0319.18
5.2.90.0070.0399.18
5.2.80.0060.0319.17
5.2.70.0110.0319.17
5.2.60.0040.0339.13
5.2.50.0050.0319.10
5.2.40.0060.0299.07
5.2.30.0090.0269.05
5.2.20.0040.0339.04
5.2.10.0060.0328.95
5.2.00.0070.0288.80
5.1.60.0050.0238.09
5.1.50.0050.0278.09
5.1.40.0060.0278.06
5.1.30.0080.0268.41
5.1.20.0040.0308.44
5.1.10.0060.0288.17
5.1.00.0020.0278.16
5.0.50.0050.0246.64
5.0.40.0050.0246.50
5.0.30.0050.0386.32
5.0.20.0020.0236.28
5.0.10.0030.0206.25
5.0.00.0040.0306.25
4.4.90.0030.0204.77
4.4.80.0020.0194.75
4.4.70.0020.0194.75
4.4.60.0020.0174.76
4.4.50.0020.0154.77
4.4.40.0020.0254.71
4.4.30.0030.0194.76
4.4.20.0050.0134.84
4.4.10.0040.0214.85
4.4.00.0040.0234.76
4.3.110.0040.0144.67
4.3.100.0030.0154.66
4.3.90.0030.0144.63
4.3.80.0030.0244.58
4.3.70.0030.0194.63
4.3.60.0030.0224.63
4.3.50.0030.0144.62
4.3.40.0030.0234.54
4.3.30.0010.0173.30
4.3.20.0030.0153.28
4.3.10.0000.0173.23
4.3.00.0070.01315.64

preferences:
47.53 ms | 401 KiB | 5 Q