3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { function f(Z $a) { } } class B extends A { function f(Y $a) { } } class Z { } class Y extends Z { }

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.0070.00718.71
8.3.30.0070.00718.97
8.3.20.0070.00020.16
8.3.10.0050.00323.66
8.3.00.0070.00317.38
8.2.170.0140.00322.96
8.2.160.0070.01020.34
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0060.00322.29
8.2.110.0110.01121.00
8.2.100.0060.00917.72
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0040.00417.80
8.2.50.0040.00418.10
8.2.40.0050.00319.81
8.2.30.0040.00417.91
8.2.20.0000.00917.52
8.2.10.0030.00517.86
8.2.00.0050.00217.52
8.1.270.0040.00423.89
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.00921.30
8.1.230.0090.00317.65
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0040.00717.23
8.1.190.0040.00417.10
8.1.180.0060.00318.10
8.1.170.0050.00518.65
8.1.160.0040.00422.00
8.1.150.0000.00818.44
8.1.140.0070.00017.45
8.1.130.0030.00317.84
8.1.120.0070.00017.30
8.1.110.0000.00717.40
8.1.100.0030.00617.29
8.1.90.0080.00017.46
8.1.80.0000.00717.36
8.1.70.0030.00317.40
8.1.60.0040.00417.40
8.1.50.0040.00417.41
8.1.40.0070.00017.48
8.1.30.0080.00017.47
8.1.20.0070.00017.59
8.1.10.0040.00417.40
8.1.00.0000.00817.35
8.0.300.0060.00318.77
8.0.290.0060.00316.75
8.0.280.0030.00318.34
8.0.270.0000.00717.19
8.0.260.0000.00617.19
8.0.250.0000.00716.82
8.0.240.0030.00517.02
8.0.230.0000.00616.89
8.0.220.0030.00416.88
8.0.210.0030.00316.82
8.0.200.0000.00816.96
8.0.190.0060.00316.93
8.0.180.0040.00416.87
8.0.170.0030.00516.89
8.0.160.0070.00016.86
8.0.150.0040.00716.86
8.0.140.0070.00016.89
8.0.130.0030.00313.36
8.0.120.0000.00816.82
8.0.110.0000.00716.87
8.0.100.0020.00516.84
8.0.90.0000.00716.94
8.0.80.0030.01216.89
8.0.70.0030.00616.88
8.0.60.0040.00416.78
8.0.50.0080.00016.89
8.0.30.0080.01217.10
8.0.20.0140.00817.40
8.0.10.0050.00217.04
8.0.00.0070.01016.65
7.4.330.0000.00515.00
7.4.320.0060.00016.44
7.4.300.0060.00016.44
7.4.290.0000.00716.54
7.4.280.0000.00716.53
7.4.270.0040.00416.37
7.4.260.0040.00416.44
7.4.250.0050.00316.50
7.4.240.0030.00316.49
7.4.230.0070.00016.33
7.4.220.0140.00416.62
7.4.210.0080.00616.47
7.4.200.0000.00716.32
7.4.190.0040.00416.71
7.4.160.0090.00616.42
7.4.150.0120.00917.40
7.4.140.0070.00917.86
7.4.130.0100.00816.42
7.4.120.0060.01316.42
7.4.110.0100.00716.33
7.4.100.0150.00716.46
7.4.90.0060.01216.45
7.4.80.0040.02019.39
7.4.70.0100.00716.53
7.4.60.0170.00716.28
7.4.50.0000.00816.46
7.4.40.0040.01216.47
7.4.30.0070.01016.51
7.4.00.0040.01414.68
7.3.330.0000.00513.26
7.3.320.0020.00213.31
7.3.310.0040.00416.29
7.3.300.0000.00716.11
7.3.290.0030.01016.18
7.3.280.0100.00616.19
7.3.270.0100.00717.40
7.3.260.0030.01416.47
7.3.250.0100.00616.17
7.3.240.0100.00616.30
7.3.230.0070.01016.39
7.3.210.0100.00716.24
7.3.200.0150.00919.39
7.3.190.0100.01316.18
7.3.180.0070.01316.37
7.3.170.0030.01216.36
7.3.160.0180.00016.34
7.3.120.0120.00314.62
7.3.10.0140.00516.09
7.3.00.0100.00516.09
7.2.330.0130.01016.28
7.2.320.0090.01516.23
7.2.310.0080.01116.34
7.2.300.0030.01316.54
7.2.290.0000.01716.53
7.2.130.0090.00616.26
7.2.120.0040.00916.48
7.2.110.0110.00316.55
7.2.100.0140.00016.25
7.2.90.0160.00416.42
7.2.80.0090.00916.85
7.2.70.0100.00316.59
7.2.60.0070.00816.78
7.2.50.0080.00416.44
7.2.40.0120.00316.34
7.2.30.0160.00716.59
7.2.20.0100.00616.30
7.2.10.0180.01116.64
7.2.00.0110.00718.00
7.1.250.0070.00715.30
7.1.200.0080.00415.35
7.1.100.0090.00617.96
7.1.70.0040.00417.09
7.1.60.0070.01019.46
7.1.50.0140.01016.84
7.1.00.0070.07022.51
7.0.200.0040.00416.66
7.0.140.0030.07322.09
7.0.60.0030.08319.94
7.0.50.0070.04717.73
7.0.40.0030.09020.20
7.0.30.0800.06320.26
7.0.20.0430.07020.22
7.0.10.0070.08020.05
7.0.00.0070.08720.11
5.6.280.0070.07021.04
5.6.210.0100.06720.61
5.6.200.0070.07318.18
5.6.190.0070.04020.61
5.6.180.0270.04720.48
5.6.170.0170.07320.64
5.6.160.0030.06720.55
5.6.150.0070.04018.25
5.6.140.0000.04318.11
5.6.130.0070.07718.29
5.6.120.0130.06320.90
5.6.110.0030.09021.05
5.6.100.0100.08320.99
5.6.90.0170.07321.14
5.6.80.0000.04020.40
5.6.70.4500.04020.34
5.5.350.0330.06720.34
5.5.340.0070.08318.03
5.5.330.0070.05020.25
5.5.320.0170.04720.24
5.5.310.0300.08020.25
5.5.300.0100.03718.09
5.5.290.0070.04017.92
5.5.280.0200.06720.68
5.5.270.0200.06720.96
5.5.260.0070.08720.65
5.5.250.0100.07720.59
5.5.240.0300.07320.12
5.4.450.0130.05719.65
5.4.440.0070.06019.58
5.4.430.0070.07019.34
5.4.420.0200.05319.60
5.4.410.0070.06019.04
5.4.400.0170.06319.30
5.4.390.0130.05319.26
5.4.380.0270.08718.63
5.4.370.0330.05718.54
5.4.360.0370.05018.50
5.4.350.0300.05318.48
5.4.340.0300.05718.73
5.4.320.0070.03812.51
5.4.310.0080.05112.50
5.4.300.0050.03712.51
5.4.290.0060.04312.49
5.4.280.0070.04412.38
5.4.270.0100.04312.38
5.4.260.0080.05712.38
5.4.250.0080.05612.38
5.4.240.0100.05312.38
5.4.230.0120.04512.38
5.4.220.0090.05512.37
5.4.210.0070.04812.37
5.4.200.0160.06312.37
5.4.190.0130.05612.38
5.4.180.0110.05612.37
5.4.170.0140.07112.38
5.4.160.0130.04812.38
5.4.150.0080.04212.37
5.4.140.0080.04412.05
5.4.130.0070.05012.05
5.4.120.0060.04112.00
5.4.110.0120.04212.00
5.4.100.0060.04112.00
5.4.90.0060.03812.00
5.4.80.0120.05012.00
5.4.70.0100.04712.00
5.4.60.0060.04111.99
5.4.50.0130.05112.00
5.4.40.0090.04011.98
5.4.30.0130.03011.98
5.4.20.0090.03611.98
5.4.10.0070.03711.98
5.4.00.0080.03311.47
5.3.290.0040.05212.80
5.3.280.0130.03812.71
5.3.270.0030.04512.73
5.3.260.0120.04712.72
5.3.250.0070.04512.72
5.3.240.0080.05212.72
5.3.230.0040.04312.71
5.3.220.0110.04612.68
5.3.210.0070.04112.68
5.3.200.0080.03712.68
5.3.190.0090.03812.68
5.3.180.0110.05312.67
5.3.170.0070.04912.67
5.3.160.0070.04612.68
5.3.150.0080.05212.67
5.3.140.0060.03912.66
5.3.130.0070.04012.66
5.3.120.0050.04112.66
5.3.110.0090.05412.66
5.3.100.0070.04112.12
5.3.90.0050.03812.10
5.3.80.0070.03912.09
5.3.70.0100.04112.09
5.3.60.0090.04012.08
5.3.50.0060.03712.02
5.3.40.0050.03712.03
5.3.30.0040.03711.98
5.3.20.0070.05011.77
5.3.10.0090.04911.73
5.3.00.0080.04711.72
5.2.170.0060.0449.22
5.2.160.0070.0419.22
5.2.150.0070.0469.21
5.2.140.0060.0479.21
5.2.130.0080.0419.18
5.2.120.0100.0379.18
5.2.110.0110.0369.18
5.2.100.0050.0479.18
5.2.90.0090.0399.18
5.2.80.0080.0429.17
5.2.70.0050.0499.18
5.2.60.0080.0409.13
5.2.50.0100.0409.10
5.2.40.0110.0349.07
5.2.30.0050.0349.05
5.2.20.0060.0329.04
5.2.10.0050.0338.95
5.2.00.0050.0318.80
5.1.60.0050.0258.09
5.1.50.0040.0278.09
5.1.40.0030.0338.07
5.1.30.0080.0308.42
5.1.20.0090.0288.44
5.1.10.0060.0268.17
5.1.00.0030.0278.17
5.0.50.0050.0206.64
5.0.40.0070.0176.50
5.0.30.0040.0316.31
5.0.20.0030.0206.28
5.0.10.0040.0196.26
5.0.00.0050.0306.25
4.4.90.0030.0164.78
4.4.80.0030.0164.76
4.4.70.0050.0144.75
4.4.60.0060.0194.76
4.4.50.0040.0234.77
4.4.40.0030.0284.71
4.4.30.0050.0204.75
4.4.20.0010.0174.84
4.4.10.0020.0194.85
4.4.00.0030.0324.76
4.3.110.0030.0204.67
4.3.100.0030.0204.66
4.3.90.0050.0144.63
4.3.80.0040.0244.58
4.3.70.0030.0164.63
4.3.60.0080.0174.63
4.3.50.0070.0154.62
4.3.40.0030.0284.54
4.3.30.0030.0213.30
4.3.20.0040.0163.29
4.3.10.0060.0153.24
4.3.00.0100.0137.28

preferences:
45.05 ms | 400 KiB | 5 Q