3v4l.org

run code in 300+ PHP versions simultaneously
<?php class FormA { public function thing($a) { } } class FormB extends FormA { public function thing($a, $b) { } }

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.0110.00416.63
8.3.50.0080.01022.85
8.3.40.0110.00418.57
8.3.30.0070.00718.83
8.3.20.0000.00820.21
8.3.10.0040.00421.75
8.3.00.0040.00419.13
8.2.180.0100.01016.32
8.2.170.0030.01222.96
8.2.160.0070.00720.17
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0070.00726.16
8.2.120.0070.00021.05
8.2.110.0210.00022.03
8.2.100.0040.00717.66
8.2.90.0040.00418.96
8.2.80.0000.00817.97
8.2.70.0030.00617.34
8.2.60.0040.00417.68
8.2.50.0040.00418.07
8.2.40.0040.00418.09
8.2.30.0040.00417.80
8.2.20.0040.00417.54
8.2.10.0040.00418.03
8.2.00.0000.00717.52
8.1.280.0100.00625.92
8.1.270.0040.00423.91
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0040.00422.14
8.1.230.0040.00720.73
8.1.220.0040.00417.74
8.1.210.0050.00318.77
8.1.200.0060.00317.23
8.1.190.0050.00217.10
8.1.180.0060.00318.10
8.1.170.0040.00418.66
8.1.160.0040.00421.95
8.1.150.0070.00018.70
8.1.140.0050.00317.22
8.1.130.0040.00417.82
8.1.120.0040.00417.32
8.1.110.0040.00417.34
8.1.100.0040.00417.36
8.1.90.0030.00517.20
8.1.80.0050.00217.25
8.1.70.0030.00317.27
8.1.60.0000.00817.45
8.1.50.0020.00517.30
8.1.40.0030.00617.34
8.1.30.0050.00317.41
8.1.20.0070.00017.50
8.1.10.0070.00317.38
8.1.00.0050.00317.36
8.0.300.0040.00418.77
8.0.290.0080.00016.63
8.0.280.0000.00718.16
8.0.270.0000.00717.12
8.0.260.0030.00317.11
8.0.250.0000.00716.80
8.0.240.0070.00016.78
8.0.230.0030.00316.87
8.0.220.0000.00716.82
8.0.210.0030.00316.74
8.0.200.0030.00316.77
8.0.190.0000.00716.84
8.0.180.0000.00816.87
8.0.170.0020.00516.84
8.0.160.0040.00316.72
8.0.150.0000.00716.83
8.0.140.0080.00016.77
8.0.130.0040.00413.22
8.0.120.0040.00416.75
8.0.110.0040.00416.87
8.0.100.0050.00316.77
8.0.90.0070.00016.80
8.0.80.0130.00416.82
8.0.70.0080.00016.84
8.0.60.0030.00616.73
8.0.50.0050.00216.74
8.0.30.0080.01117.01
8.0.20.0100.00817.40
8.0.10.0040.00416.93
8.0.00.0100.00716.70
7.4.330.0020.00215.04
7.4.320.0060.00016.37
7.4.300.0000.00616.27
7.4.290.0060.00316.47
7.4.280.0040.00416.23
7.4.270.0040.00416.41
7.4.260.0030.00616.42
7.4.250.0030.00516.34
7.4.240.0000.00716.38
7.4.230.0040.00216.33
7.4.220.0070.01016.41
7.4.210.0000.01516.41
7.4.200.0040.00416.50
7.4.160.0090.00616.43
7.4.150.0110.00717.40
7.4.140.0080.00917.86
7.4.130.0140.01016.31
7.4.120.0120.00416.28
7.4.110.0130.00916.46
7.4.100.0160.00716.52
7.4.90.0140.00316.52
7.4.80.0120.01219.39
7.4.70.0100.00716.46
7.4.60.0130.00316.28
7.4.50.0020.00216.32
7.4.40.0090.00916.36
7.4.30.0090.00616.42
7.4.00.0070.00414.61
7.3.330.0000.00513.10
7.3.320.0050.00013.31
7.3.310.0000.00616.29
7.3.300.0030.00316.30
7.3.290.0060.00916.23
7.3.280.0070.01216.21
7.3.270.0160.01017.40
7.3.260.0090.00916.26
7.3.240.0110.00716.27
7.3.230.0090.01616.39
7.3.210.0120.00616.51
7.3.200.0100.00619.39
7.3.190.0030.01416.47
7.3.180.0130.00316.27
7.3.170.0060.01516.27
7.3.160.0030.01316.31
7.3.10.0110.00416.01
7.3.00.0090.00915.87
7.2.330.0110.00716.39
7.2.320.0060.01216.26
7.2.310.0130.00616.57
7.2.300.0130.00316.17
7.2.290.0100.00716.62
7.2.130.0140.00016.57
7.2.120.0110.00716.35
7.2.110.0150.00316.53
7.2.100.0150.00316.53
7.2.90.0140.00316.30
7.2.80.0130.00716.54
7.2.70.0120.00316.36
7.2.60.0100.01016.65
7.2.50.0170.00716.57
7.2.40.0080.01616.88
7.2.30.0160.00616.55
7.2.20.0190.00016.70
7.2.10.0160.00616.60
7.2.00.0100.00518.04
7.1.250.0090.00915.46
7.1.200.0040.00415.59
7.1.100.0060.00618.04
7.1.70.0030.00916.56
7.1.60.0170.00719.40
7.1.50.0130.00916.79
7.1.00.0000.08022.41
7.0.200.0030.00616.53
7.0.140.0070.06722.10
7.0.60.0000.07019.90
7.0.50.0130.04017.91
7.0.40.0100.08320.10
7.0.30.0230.03720.33
7.0.20.0230.06020.07
7.0.10.0170.05020.23
7.0.00.0030.05020.34
5.6.280.0070.07021.13
5.6.210.0070.08020.60
5.6.200.0030.05318.20
5.6.190.0070.04020.64
5.6.180.0300.05320.68
5.6.170.0400.06720.47
5.6.160.0100.04020.54
5.6.150.0170.07318.12
5.6.140.0070.06718.12
5.6.130.0170.07318.27
5.6.120.0030.09020.90
5.6.110.0000.07721.01
5.6.100.0070.03720.91
5.6.90.0030.04020.96
5.6.80.0070.03320.53
5.5.350.0100.08320.50
5.5.340.0030.07017.98
5.5.330.0070.05020.21
5.5.320.0000.04020.42
5.5.310.0170.04320.36
5.5.300.0100.05717.92
5.5.290.0000.09017.98
5.5.280.0130.07720.88
5.5.270.0100.08320.84
5.5.260.0000.04320.73
5.5.250.0070.08020.79
5.5.240.0230.07320.27
5.4.450.0400.03719.46
5.4.440.0770.04019.50
5.4.430.0270.04019.39
5.4.420.0630.04719.19
5.4.410.0200.04019.18
5.4.400.0600.03719.27
5.4.390.0130.03318.84
5.4.380.0770.06018.70
5.4.370.0470.05318.77
5.4.360.0530.06718.79
5.4.350.0230.06718.68
5.4.340.0400.06018.61
5.4.320.0080.03512.51
5.4.310.0050.03912.50
5.4.300.0070.03912.51
5.4.290.0070.04012.50
5.4.280.0060.03612.40
5.4.270.0070.03412.40
5.4.260.0060.03612.40
5.4.250.0090.03512.40
5.4.240.0070.03712.39
5.4.230.0090.03712.39
5.4.220.0040.03812.39
5.4.210.0030.03712.39
5.4.200.0050.03812.39
5.4.190.0100.03212.39
5.4.180.0070.03412.38
5.4.170.0050.03612.39
5.4.160.0080.04012.39
5.4.150.0090.04312.39
5.4.140.0060.03612.07
5.4.130.0060.03612.06
5.4.120.0090.03912.02
5.4.110.0060.03512.02
5.4.100.0060.04212.02
5.4.90.0040.04012.01
5.4.80.0070.03612.01
5.4.70.0070.03312.01
5.4.60.0070.03312.01
5.4.50.0050.04112.01
5.4.40.0060.03212.00
5.4.30.0100.03411.99
5.4.20.0090.03411.99
5.4.10.0040.04011.99
5.4.00.0110.03111.48
5.3.290.0060.04012.80
5.3.280.0080.04112.71
5.3.270.0060.03912.72
5.3.260.0090.03812.72
5.3.250.0040.03912.71
5.3.240.0060.03912.72
5.3.230.0050.03812.71
5.3.220.0050.04012.68
5.3.210.0070.03912.68
5.3.200.0050.03712.68
5.3.190.0040.04812.68
5.3.180.0090.03412.67
5.3.170.0050.03812.67
5.3.160.0070.03712.67
5.3.150.0090.03612.67
5.3.140.0060.04512.66
5.3.130.0050.04112.66
5.3.120.0050.04012.66
5.3.110.0050.04212.65
5.3.100.0050.04012.13
5.3.90.0090.03812.10
5.3.80.0040.04312.10
5.3.70.0070.03812.10
5.3.60.0030.04112.07
5.3.50.0070.04112.03
5.3.40.0090.04412.02
5.3.30.0080.03311.98
5.3.20.0030.03811.77
5.3.10.0050.03511.73
5.3.00.0070.03411.72
5.2.170.0090.0349.22
5.2.160.0040.0309.22
5.2.150.0050.0349.22
5.2.140.0040.0349.22
5.2.130.0060.0279.18
5.2.120.0060.0279.18
5.2.110.0060.0289.19
5.2.100.0080.0259.18
5.2.90.0050.0279.18
5.2.80.0050.0299.18
5.2.70.0050.0309.17
5.2.60.0060.0299.13
5.2.50.0050.0309.10
5.2.40.0040.0299.07
5.2.30.0050.0299.05
5.2.20.0040.0319.04
5.2.10.0050.0298.95
5.2.00.0060.0388.80
5.1.60.0060.0248.09
5.1.50.0050.0238.09
5.1.40.0040.0248.07
5.1.30.0080.0228.42
5.1.20.0020.0288.44
5.1.10.0050.0318.16
5.1.00.0060.0248.17
5.0.50.0040.0196.64
5.0.40.0030.0186.51
5.0.30.0020.0326.31
5.0.20.0030.0226.28
5.0.10.0010.0216.25
5.0.00.0030.0306.25
4.4.90.0030.0154.78
4.4.80.0040.0134.76
4.4.70.0020.0164.75
4.4.60.0010.0174.75
4.4.50.0010.0174.77
4.4.40.0030.0264.71
4.4.30.0010.0174.76
4.4.20.0020.0164.85
4.4.10.0050.0134.85
4.4.00.0020.0264.76
4.3.110.0010.0174.67
4.3.100.0030.0154.66
4.3.90.0020.0164.63
4.3.80.0020.0254.58
4.3.70.0020.0154.63
4.3.60.0020.0154.62
4.3.50.0020.0184.62
4.3.40.0020.0244.54
4.3.30.0040.0143.30
4.3.20.0020.0163.28
4.3.10.0030.0153.23
4.3.00.0030.01315.92

preferences:
47.83 ms | 401 KiB | 5 Q