3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(version_compare(PHP_VERSION, "5.0.0", "<")) { eval("class BaseItem { } class BaseCollection { function test(BaseItem \$base) { } }"); eval("class RealItem { } class RealCollection extends BaseCollection { function test(RealItem \$real) { } }"); }

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.00916.61
8.3.50.0170.00222.05
8.3.40.0120.00918.66
8.3.30.0100.01018.90
8.3.20.0000.00820.30
8.3.10.0100.00323.70
8.3.00.0080.00020.68
8.2.180.0100.00718.03
8.2.170.0150.00422.96
8.2.160.0060.00620.38
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0040.00426.16
8.2.120.0140.00420.58
8.2.110.0060.00322.08
8.2.100.0090.00317.59
8.2.90.0080.00018.86
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0080.00017.79
8.2.50.0060.00318.07
8.2.40.0060.00321.12
8.2.30.0000.00718.16
8.2.20.0050.00317.54
8.2.10.0040.00417.98
8.2.00.0030.00517.42
8.1.280.0040.01425.92
8.1.270.0000.00823.91
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0060.00323.96
8.1.230.0070.00419.02
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0000.01117.10
8.1.190.0040.00417.22
8.1.180.0000.00718.10
8.1.170.0000.00918.54
8.1.160.0050.00321.93
8.1.150.0050.00318.47
8.1.140.0040.00417.28
8.1.130.0000.00717.79
8.1.120.0070.00017.37
8.1.110.0040.00417.38
8.1.100.0040.00417.29
8.1.90.0070.00017.34
8.1.80.0040.00417.23
8.1.70.0080.00017.27
8.1.60.0000.00817.43
8.1.50.0050.00517.33
8.1.40.0080.00017.30
8.1.30.0080.00017.49
8.1.20.0080.00017.53
8.1.10.0030.00617.29
8.1.00.0040.00417.32
8.0.300.0000.00718.77
8.0.290.0060.00316.80
8.0.280.0030.00518.30
8.0.270.0040.00416.98
8.0.260.0040.00417.11
8.0.250.0040.00416.68
8.0.240.0000.00716.81
8.0.230.0070.00016.81
8.0.220.0070.00016.72
8.0.210.0000.00716.75
8.0.200.0030.00316.70
8.0.190.0000.00916.80
8.0.180.0040.00416.66
8.0.170.0080.00016.66
8.0.160.0000.00716.85
8.0.150.0000.00716.66
8.0.140.0040.00416.71
8.0.130.0000.00513.12
8.0.120.0040.00416.63
8.0.110.0070.00016.77
8.0.100.0000.00716.54
8.0.90.0080.00016.61
8.0.80.0160.00616.82
8.0.70.0000.00716.63
8.0.60.0070.00016.69
8.0.50.0060.00316.63
8.0.30.0130.00517.08
8.0.20.0110.00817.40
8.0.10.0040.00416.66
8.0.00.0090.00816.66
7.4.330.0040.00415.00
7.4.320.0030.00316.45
7.4.300.0030.00316.35
7.4.290.0070.00016.46
7.4.280.0030.00316.37
7.4.270.0030.00616.46
7.4.260.0070.00016.34
7.4.250.0040.00416.34
7.4.240.0020.00616.41
7.4.230.0070.00016.55
7.4.220.0060.01216.53
7.4.210.0130.00116.38
7.4.200.0070.00016.47
7.4.190.0000.00716.48
7.4.160.0100.00616.29
7.4.150.0160.00017.40
7.4.140.0170.00717.86
7.4.130.0050.01216.24
7.4.120.0110.01016.34
7.4.110.0120.01116.48
7.4.100.0060.01616.38
7.4.90.0120.00916.40
7.4.80.0150.00319.39
7.4.70.0030.01916.35
7.4.60.0080.00816.49
7.4.50.0030.00316.20
7.4.40.0090.00616.37
7.4.30.0060.01216.28
7.4.00.0070.00714.85
7.3.330.0030.00412.93
7.3.320.0040.00413.00
7.3.310.0070.00016.18
7.3.300.0030.00315.99
7.3.290.0070.00716.20
7.3.280.0080.01016.13
7.3.270.0090.00917.40
7.3.260.0130.00316.09
7.3.250.0120.00816.46
7.3.240.0100.01316.18
7.3.230.0100.00716.39
7.3.210.0190.00316.23
7.3.200.0160.00019.39
7.3.190.0120.00916.14
7.3.180.0060.00916.11
7.3.170.0060.01016.27
7.3.160.0090.00616.16
7.3.120.0120.00314.67
7.2.330.0140.01016.32
7.2.320.0140.00716.14
7.2.310.0120.00416.32
7.2.300.0000.01616.58
7.2.290.0100.00616.37
7.2.60.0110.00316.27
7.2.00.0040.01119.04
7.1.200.0030.01115.66
7.1.100.0060.00617.72
7.1.70.0050.00317.03
7.1.60.0120.01219.46
7.1.50.0060.01516.95
7.1.00.0070.07322.35
7.0.200.0090.00316.68
7.0.140.0070.07022.07
7.0.60.0200.07019.85
7.0.50.0130.07717.81
7.0.40.0100.03720.04
7.0.30.0270.05320.13
7.0.20.0230.07020.18
7.0.10.0070.07320.16
7.0.00.0070.07020.33
5.6.280.0070.07021.04
5.6.210.0200.06720.66
5.6.200.0030.08718.19
5.6.190.0000.04720.45
5.6.180.0200.07320.70
5.6.170.0200.07720.46
5.6.160.0170.07320.70
5.6.150.0070.07718.17
5.6.140.0070.08018.21
5.6.130.0100.08018.18
5.6.120.0030.05720.99
5.6.110.0070.03721.08
5.6.100.0000.05321.00
5.6.90.0070.07020.99
5.6.80.0270.06320.37
5.5.350.0200.07320.34
5.5.340.0070.04717.94
5.5.330.0170.07720.06
5.5.320.0230.03720.28
5.5.310.0400.05020.26
5.5.300.0070.04017.95
5.5.290.0030.08717.91
5.5.280.0130.08320.88
5.5.270.0030.07320.66
5.5.260.0100.08320.88
5.5.250.0070.05020.68
5.5.240.0030.08020.27
5.4.450.0330.05319.63
5.4.440.0130.05719.46
5.4.430.0700.06019.49
5.4.420.0770.05319.40
5.4.410.1430.08019.31
5.4.400.0900.04719.29
5.4.390.1170.07719.03
5.4.380.0400.06018.46
5.4.370.0200.06018.46
5.4.360.0300.06318.73
5.4.350.0400.08718.43
5.4.340.0370.05018.77
5.4.320.0030.04512.45
5.4.310.0070.03912.45
5.4.300.0050.05112.45
5.4.290.0070.05312.45
5.4.280.0130.04412.35
5.4.270.0090.04812.34
5.4.260.0060.05012.35
5.4.250.0070.04012.34
5.4.240.0100.04512.35
5.4.230.0110.04512.34
5.4.220.0100.05112.34
5.4.210.0090.04812.34
5.4.200.0060.05612.34
5.4.190.0140.04812.33
5.4.180.0050.04912.34
5.4.170.0090.04912.34
5.4.160.0090.05012.34
5.4.150.0140.04512.34
5.4.140.0100.04812.02
5.4.130.0160.03912.01
5.4.120.0110.06411.96
5.4.110.0110.05611.96
5.4.100.0090.04011.96
5.4.90.0110.03811.96
5.4.80.0110.03911.96
5.4.70.0070.03711.96
5.4.60.0030.04211.96
5.4.50.0040.04211.96
5.4.40.0050.04711.95
5.4.30.0080.04311.95
5.4.20.0120.04411.95
5.4.10.0100.04511.95
5.4.00.0060.04011.44
5.3.290.0070.04212.80
5.3.280.0090.04312.71
5.3.270.0110.05112.72
5.3.260.0110.04412.72
5.3.250.0070.05112.72
5.3.240.0080.06512.72
5.3.230.0120.05612.71
5.3.220.0130.05412.68
5.3.210.0130.05712.68
5.3.200.0120.05312.68
5.3.190.0090.04712.68
5.3.180.0100.05312.68
5.3.170.0100.05312.67
5.3.160.0180.07712.67
5.3.150.0110.05112.67
5.3.140.0130.06312.66
5.3.130.0080.05612.66
5.3.120.0070.05712.66
5.3.110.0160.05612.66
5.3.100.0130.05612.12
5.3.90.0090.07612.08
5.3.80.0080.05412.07
5.3.70.0080.05612.07
5.3.60.0130.05112.06
5.3.50.0100.05012.00
5.3.40.0110.05012.00
5.3.30.0100.05111.94
5.3.20.0120.04811.71
5.3.10.0110.04911.69
5.3.00.0210.10011.68
5.2.170.0120.0589.18
5.2.160.0050.0539.18
5.2.150.0080.0459.18
5.2.140.0060.0479.17
5.2.130.0060.0469.13
5.2.120.0110.0409.13
5.2.110.0090.0419.14
5.2.100.0090.0439.14
5.2.90.0090.0449.14
5.2.80.0100.0449.13
5.2.70.0090.0439.13
5.2.60.0050.0459.08
5.2.50.0120.0439.05
5.2.40.0080.0419.03
5.2.30.0050.0459.01
5.2.20.0100.0369.00
5.2.10.0050.0368.91
5.2.00.0050.0348.77
5.1.60.0070.0258.06
5.1.50.0080.0258.05
5.1.40.0070.0258.04
5.1.30.0040.0328.39
5.1.20.0040.0328.41
5.1.10.0070.0338.14
5.1.00.0080.0348.13
5.0.50.0070.0296.61
5.0.40.0080.0346.47
5.0.30.0070.0436.28
5.0.20.0080.0216.25
5.0.10.0060.0216.23
5.0.00.0050.0336.22
4.4.90.0050.0164.78
4.4.80.0060.0214.75
4.4.70.0040.0174.76
4.4.60.0070.0144.75
4.4.50.0020.0194.77
4.4.40.0030.0284.71
4.4.30.0070.0214.76
4.4.20.0050.0194.85
4.4.10.0040.0244.85
4.4.00.0110.0704.76
4.3.110.0070.0204.67
4.3.100.0080.0384.67
4.3.90.0050.0154.63
4.3.80.0020.0344.59
4.3.70.0170.0564.63
4.3.60.0120.0264.63
4.3.50.0040.0204.63
4.3.40.0070.0224.54
4.3.30.0030.0173.32
4.3.20.0030.0173.29
4.3.10.0040.0163.25
4.3.00.0030.0207.04

preferences:
53.68 ms | 401 KiB | 5 Q