3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface flerp { public function bar(); } abstract class derp implements flerp { public function foo() { echo 'foo'; } } class herp extends derp { public function bar() { echo 'bar'; } } $herp = new herp(); $herp->foo(); $herp->bar();

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.40.0090.00618.49
8.3.30.0070.00719.09
8.3.20.0000.00720.34
8.3.10.0040.00423.65
8.3.00.0040.00419.26
8.2.170.0090.00622.96
8.2.160.0100.00320.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00620.50
8.2.110.0100.00719.37
8.2.100.0080.00418.03
8.2.90.0000.00719.08
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0050.00318.04
8.2.50.0030.00518.07
8.2.40.0000.00819.95
8.2.30.0070.00018.06
8.2.20.0060.00317.59
8.2.10.0040.00418.11
8.2.00.0040.00417.68
8.1.270.0040.00423.76
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0060.00321.16
8.1.230.0060.00620.29
8.1.220.0000.00817.74
8.1.210.0060.00318.77
8.1.200.0100.00017.35
8.1.190.0080.00017.00
8.1.180.0000.00818.10
8.1.170.0030.00518.38
8.1.160.0000.00721.93
8.1.150.0000.00718.84
8.1.140.0000.00717.37
8.1.130.0060.00317.82
8.1.120.0000.00817.55
8.1.110.0040.00417.43
8.1.100.0000.00717.53
8.1.90.0000.00817.31
8.1.80.0000.00717.46
8.1.70.0070.00017.41
8.1.60.0050.00517.66
8.1.50.0030.00517.50
8.1.40.0000.00717.38
8.1.30.0000.00817.47
8.1.20.0070.00017.50
8.1.10.0070.00017.52
8.1.00.0000.00817.53
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0070.00018.31
8.0.270.0030.00317.16
8.0.260.0030.00317.16
8.0.250.0070.00016.83
8.0.240.0000.00816.93
8.0.230.0070.00016.93
8.0.220.0030.00316.91
8.0.210.0050.00316.92
8.0.200.0030.00316.99
8.0.190.0040.00416.94
8.0.180.0070.00016.91
8.0.170.0000.00816.91
8.0.160.0090.00016.98
8.0.150.0000.00816.89
8.0.140.0000.00716.77
8.0.130.0030.00313.25
8.0.120.0040.00416.86
8.0.110.0000.00716.90
8.0.100.0070.00016.93
8.0.90.0080.00016.79
8.0.80.0060.00916.95
8.0.70.0000.00716.75
8.0.60.0000.00816.92
8.0.50.0000.00716.86
8.0.30.0140.00917.24
8.0.20.0120.00717.40
8.0.10.0040.00417.03
8.0.00.0080.00916.76
7.4.330.0060.00015.02
7.4.320.0000.00816.53
7.4.300.0060.00016.40
7.4.290.0040.00416.49
7.4.280.0040.00416.63
7.4.270.0030.00316.61
7.4.260.0040.00416.57
7.4.250.0000.00716.55
7.4.240.0000.00716.44
7.4.230.0030.00316.34
7.4.220.0110.00716.53
7.4.210.0030.01216.47
7.4.200.0030.00316.35
7.4.160.0040.01316.61
7.4.150.0130.01017.40
7.4.140.0070.01217.86
7.4.130.0080.00916.49
7.4.120.0130.00416.50
7.4.110.0000.01616.38
7.4.100.0070.01016.54
7.4.90.0030.01516.46
7.4.80.0090.01219.39
7.4.70.0080.00816.50
7.4.60.0100.00716.54
7.4.50.0000.00816.54
7.4.40.0100.00616.47
7.4.30.0110.00816.52
7.4.00.0030.01015.12
7.3.330.0000.00513.25
7.3.320.0000.00513.23
7.3.310.0020.00516.39
7.3.300.0030.00316.34
7.3.290.0080.00816.26
7.3.280.0060.00816.25
7.3.270.0040.02017.40
7.3.260.0140.01116.20
7.3.250.0060.01016.36
7.3.240.0100.00716.41
7.3.230.0110.00516.53
7.3.210.0130.00316.31
7.3.200.0060.01019.39
7.3.190.0120.00616.31
7.3.180.0140.00716.21
7.3.170.0080.00916.51
7.3.160.0150.00716.23
7.2.330.0100.00716.72
7.2.320.0100.00716.30
7.2.310.0120.00916.62
7.2.300.0060.01516.64
7.2.290.0060.01616.73
7.2.60.0130.00316.93
7.2.50.0040.00816.87
7.1.200.0080.00415.65
7.1.70.0060.00616.85
7.1.60.0120.00919.32
7.1.50.0130.01317.00
7.1.00.0030.07322.54
7.0.200.1290.01114.61
7.0.140.0030.07321.90
7.0.60.0030.04020.00
7.0.50.0130.07317.90
7.0.40.0030.09020.09
7.0.30.0630.06020.06
7.0.20.0100.04720.09
7.0.10.0070.07020.10
7.0.00.0130.05020.18
5.6.280.0030.07320.86
5.6.210.0100.08320.48
5.6.200.0070.08318.18
5.6.190.0030.07020.63
5.6.180.0170.08020.57
5.6.170.0130.04320.52
5.6.160.0100.03720.54
5.6.150.0100.05318.23
5.6.140.0030.08318.28
5.6.130.0030.08318.16
5.6.120.0070.08320.99
5.6.110.0170.08321.14
5.6.100.0230.06320.89
5.6.90.0100.03721.00
5.6.80.0100.07020.38
5.6.70.4670.02720.43
5.5.350.0130.04720.35
5.5.340.0000.04317.96
5.5.330.0130.04720.13
5.5.320.0170.04320.27
5.5.310.0230.07720.24
5.5.300.0100.07717.98
5.5.290.0030.05717.95
5.5.280.0100.03720.90
5.5.270.0030.04320.84
5.5.260.0070.08720.88
5.5.250.0130.08020.59
5.5.240.4100.04720.13
5.4.450.0730.07019.46
5.4.440.0830.05719.34
5.4.430.0800.05319.38
5.4.420.0200.05019.62
5.4.410.0600.06319.34
5.4.400.0130.05319.26
5.4.390.0700.06018.84
5.4.380.0600.05718.98
5.4.370.0830.06319.14
5.4.360.0830.07019.13
5.4.350.0970.05018.98
5.4.340.0040.04112.02
5.4.320.0110.03712.50
5.4.310.0070.03812.50
5.4.300.0070.03712.50
5.4.290.0080.04212.50
5.4.280.0050.03512.39
5.4.270.0060.04512.39
5.4.260.0090.03612.40
5.4.250.0070.03612.39
5.4.240.0050.03712.39
5.4.230.0070.04212.39
5.4.220.0120.03112.39
5.4.210.0030.03812.39
5.4.200.0060.03912.39
5.4.190.0070.03612.38
5.4.180.0060.03612.38
5.4.170.0070.03712.39
5.4.160.0060.03712.39
5.4.150.0100.03812.38
5.4.140.0040.04112.07
5.4.130.0060.04112.05
5.4.120.0070.03612.02
5.4.110.0050.03712.01
5.4.100.0030.03812.02
5.4.90.0100.03912.01
5.4.80.0080.03912.01
5.4.70.0090.03412.01
5.4.60.0020.04112.00
5.4.50.0070.04012.00
5.4.40.0050.03812.00
5.4.30.0040.04311.99
5.4.20.0040.03812.00
5.4.10.0050.03911.99
5.4.00.0080.03611.48
5.3.290.0070.04912.80
5.3.280.0060.04312.70
5.3.270.0060.04012.73
5.3.260.0080.03812.71
5.3.250.0050.04012.72
5.3.240.0110.04912.71
5.3.230.0100.04912.71
5.3.220.0080.05312.68
5.3.210.0090.04412.68
5.3.200.0060.03612.68
5.3.190.0070.03912.68
5.3.180.0090.03812.68
5.3.170.0070.07112.67
5.3.160.0090.04512.68
5.3.150.0140.07412.68
5.3.140.0120.04512.66
5.3.130.0090.05012.66
5.3.120.0080.04012.66
5.3.110.0070.04012.66
5.3.100.0070.03912.12
5.3.90.0070.03612.11
5.3.80.0040.03912.10
5.3.70.0090.03412.10
5.3.60.0080.04712.08
5.3.50.0100.04012.03
5.3.40.0050.04612.03
5.3.30.0100.03311.98
5.3.20.0060.04011.77
5.3.10.0040.04111.73
5.3.00.0130.04111.73
5.2.170.0030.0359.22
5.2.160.0160.0709.22
5.2.150.0040.0489.23
5.2.140.0170.0849.22
5.2.130.0060.0389.18
5.2.120.0350.1109.18
5.2.110.0030.0369.19
5.2.100.0040.0339.18
5.2.90.0050.0319.18
5.2.80.0070.0499.17
5.2.70.0040.0359.17
5.2.60.0050.0349.13
5.2.50.0040.0379.10
5.2.40.0100.0479.07
5.2.30.0170.0499.05
5.2.20.0130.0699.04
5.2.10.0090.0338.94
5.2.00.0050.0408.80
5.1.60.0030.0288.10
5.1.50.0030.0318.09
5.1.40.0050.0258.07
5.1.30.0050.0288.42
5.1.20.0090.0298.44
5.1.10.0060.0338.17
5.1.00.0060.0358.17
5.0.50.0040.0266.64
5.0.40.0060.0246.50
5.0.30.0030.0336.32
5.0.20.0020.0226.28
5.0.10.0020.0226.26
5.0.00.0030.0376.25
4.4.90.0000.0224.78
4.4.80.0040.0154.76
4.4.70.0020.0174.76
4.4.60.0030.0154.76
4.4.50.0030.0154.77
4.4.40.0020.0264.71
4.4.30.0040.0154.76
4.4.20.0030.0184.85
4.4.10.0030.0194.85
4.4.00.0040.0334.76
4.3.110.0080.0194.67
4.3.100.0040.0224.66
4.3.90.0060.0194.63
4.3.80.0060.0294.59
4.3.70.0060.0184.63
4.3.60.0070.0224.63
4.3.50.0070.0384.63
4.3.40.0010.0274.53
4.3.30.0020.0183.28
4.3.20.0040.0163.25
4.3.10.0020.0183.22
4.3.00.0070.0236.99

preferences:
43.01 ms | 400 KiB | 5 Q