3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A {} class B extends A {} class C { function foo (B $a){} } class D extends C { function foo (A $a){} }

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.0100.01018.30
8.3.50.0130.00521.21
8.3.40.0210.00018.56
8.3.30.0070.00718.55
8.3.20.0090.00018.58
8.3.10.0080.00020.73
8.3.00.0080.00021.73
8.2.180.0130.00716.38
8.2.170.0090.00622.96
8.2.160.0040.01120.35
8.2.150.0070.00724.18
8.2.140.0040.00424.66
8.2.130.0120.00626.16
8.2.120.0070.00021.19
8.2.110.0050.00520.36
8.2.100.0110.00017.78
8.2.90.0070.00019.11
8.2.80.0040.00417.97
8.2.70.0000.00817.00
8.2.60.0040.00417.91
8.2.50.0000.00818.07
8.2.40.0000.00718.06
8.2.30.0000.00821.32
8.2.20.0050.00317.53
8.2.10.0060.00317.60
8.2.00.0050.00317.43
8.1.280.0070.00725.92
8.1.270.0040.00423.99
8.1.260.0140.00726.35
8.1.250.0130.00628.09
8.1.240.0060.00322.34
8.1.230.0110.00020.95
8.1.220.0040.00418.77
8.1.210.0070.00318.77
8.1.200.0060.00317.10
8.1.190.0040.00417.40
8.1.180.0030.00618.10
8.1.170.0050.00318.50
8.1.160.0030.00518.82
8.1.150.0050.00318.43
8.1.140.0040.00417.23
8.1.130.0030.00317.77
8.1.120.0030.00317.23
8.1.110.0040.00417.29
8.1.100.0030.00517.37
8.1.90.0000.00717.30
8.1.80.0000.00817.23
8.1.70.0030.00317.25
8.1.60.0000.00917.34
8.1.50.0040.00417.24
8.1.40.0040.00417.38
8.1.30.0060.00317.51
8.1.20.0000.00817.59
8.1.10.0040.00417.27
8.1.00.0040.00417.28
8.0.300.0020.00519.80
8.0.290.0050.00317.05
8.0.280.0050.00218.28
8.0.270.0000.00717.14
8.0.260.0000.00616.68
8.0.250.0070.00016.76
8.0.240.0060.00316.84
8.0.230.0000.00716.80
8.0.220.0000.00716.80
8.0.210.0040.00416.75
8.0.200.0060.00616.69
8.0.190.0000.00716.77
8.0.180.0000.00816.76
8.0.170.0040.00416.67
8.0.160.0000.00716.76
8.0.150.0000.00716.66
8.0.140.0040.00416.74
8.0.130.0030.00313.22
8.0.120.0000.00716.74
8.0.110.0090.00016.71
8.0.100.0000.00716.78
8.0.90.0080.00016.58
8.0.80.0000.01416.66
8.0.70.0000.00716.65
8.0.60.0070.00016.74
8.0.50.0040.00416.82
8.0.30.0120.00716.95
8.0.20.0080.01117.40
8.0.10.0000.00716.68
8.0.00.0130.00816.43
7.4.330.0020.00216.67
7.4.320.0040.00416.45
7.4.300.0000.00716.38
7.4.290.0000.00616.38
7.4.280.0100.00016.48
7.4.270.0070.00016.43
7.4.260.0000.00513.07
7.4.250.0000.00816.38
7.4.240.0000.00816.47
7.4.230.0030.00316.12
7.4.220.0140.00416.25
7.4.210.0060.00916.38
7.4.200.0000.00716.19
7.4.190.0000.00716.49
7.4.160.0100.01016.07
7.4.150.0080.00817.40
7.4.140.0070.01417.86
7.4.130.0120.01216.32
7.4.120.0070.00916.58
7.4.110.0070.01016.36
7.4.100.0070.01116.50
7.4.90.0160.00616.27
7.4.80.0120.00619.39
7.4.70.0080.00916.48
7.4.60.0090.00916.48
7.4.50.0030.00516.43
7.4.40.0050.00822.77
7.4.30.0120.00316.36
7.4.00.0130.00314.75
7.3.330.0030.00313.10
7.3.320.0050.00013.25
7.3.310.0000.00716.04
7.3.300.0040.00416.09
7.3.290.0100.01016.20
7.3.280.0120.00716.22
7.3.270.0030.01317.40
7.3.260.0100.01018.24
7.3.250.0080.01316.16
7.3.240.0130.00616.53
7.3.230.0130.00316.43
7.3.210.0100.00616.22
7.3.200.0160.00619.39
7.3.190.0120.00616.26
7.3.180.0100.00616.24
7.3.170.0000.01716.50
7.3.160.0060.00916.38
7.3.120.0060.00914.67
7.2.330.0110.01016.41
7.2.320.0090.00916.16
7.2.310.0060.01616.31
7.2.300.0140.00716.25
7.2.290.0040.01216.37
7.2.60.0150.00416.31
7.2.50.0130.00316.55
7.2.00.0250.00418.79
7.1.200.0030.01015.28
7.1.70.0030.00616.98
7.1.60.0070.01719.40
7.1.50.0070.01616.80
7.1.00.0100.02722.33
7.0.200.0280.00316.46
7.0.140.0130.06322.09
7.0.80.0200.07719.97
7.0.70.0070.05019.99
7.0.60.0070.04020.05
7.0.50.0100.06320.33
7.0.40.0130.03320.16
7.0.30.0070.05319.95
7.0.20.0030.04019.95
7.0.10.0000.07719.94
7.0.00.0070.06320.03
5.6.280.0070.07021.06
5.6.230.0100.04320.60
5.6.220.0000.04720.63
5.6.210.0130.03320.67
5.6.200.0070.04021.00
5.6.190.0070.07721.04
5.6.180.0070.04021.14
5.6.170.0000.04321.13
5.6.160.0000.04721.04
5.6.150.0070.06021.07
5.6.140.0230.08020.94
5.6.130.0000.09020.96
5.6.120.0100.06720.94
5.6.110.0030.09021.08
5.6.100.0070.08720.95
5.6.90.0070.08321.05
5.6.80.0100.07720.50
5.6.70.0030.07320.43
5.6.60.0070.05720.55
5.6.50.0000.06020.49
5.6.40.0000.04720.42
5.6.30.0070.07320.30
5.6.20.0000.04320.41
5.6.10.0000.04320.42
5.6.00.0070.04020.45
5.5.370.0100.05020.50
5.5.360.0070.04020.41
5.5.350.0200.03020.32
5.5.340.0100.04320.93
5.5.330.0070.04720.65
5.5.320.0130.06720.85
5.5.310.0000.05020.77
5.5.300.0070.08720.93
5.5.290.0070.05320.89
5.5.280.0030.06720.83
5.5.270.0070.08720.92
5.5.260.0170.07320.88
5.5.250.0100.08720.71
5.5.240.0100.05020.27
5.5.230.0130.04020.27
5.5.220.0070.04320.02
5.5.210.0030.04020.21
5.5.200.0100.07020.23
5.5.190.0070.07720.13
5.5.180.0070.07720.19
5.5.160.0030.04020.11
5.5.150.0000.04020.13
5.5.140.0100.03020.18
5.5.130.0030.07320.19
5.5.120.0000.07720.16
5.5.110.0030.07320.28
5.5.100.0070.08019.96
5.5.90.0100.03320.16
5.5.80.0100.07020.18
5.5.70.0100.07020.04
5.5.60.0000.05020.04
5.5.50.0030.07719.96
5.5.40.0230.05319.94
5.5.30.0030.04320.09
5.5.20.0070.03320.11
5.5.10.0070.07319.97
5.5.00.0100.04320.11
5.4.450.0300.05319.36
5.4.440.0030.05019.17
5.4.430.0030.08319.17
5.4.420.0100.07319.17
5.4.410.0000.06719.14
5.4.400.0030.08319.09
5.4.390.0070.04718.88
5.4.380.0070.07319.21
5.4.370.0030.07319.21
5.4.360.0030.04719.13
5.4.350.0100.04018.85
5.4.340.0030.07319.13
5.4.320.0030.04319.13
5.4.310.0130.06719.05
5.4.300.0170.06019.12
5.4.290.0070.06319.08
5.4.280.0030.03719.04
5.4.270.0070.07318.84
5.4.260.0070.03019.18
5.4.250.0130.06019.18
5.4.240.0100.04319.03
5.4.230.0000.04018.89
5.4.220.0070.03719.02
5.4.210.0030.03719.04
5.4.200.0000.04318.90
5.4.190.0000.03719.22
5.4.180.0100.02718.93
5.4.170.0000.05319.09
5.4.160.0070.04018.85
5.4.150.0030.05019.21
5.4.140.0030.04716.40
5.4.130.0070.04716.38
5.4.120.0030.04016.42
5.4.110.0030.06316.41
5.4.100.0070.06316.45
5.4.90.0070.05316.49
5.4.80.0000.04716.46
5.4.70.0100.06016.38
5.4.60.0000.05316.38
5.4.50.0130.06316.46
5.4.40.0030.03316.50
5.4.30.0000.04316.29
5.4.20.0070.05016.41
5.4.10.0030.05316.48
5.4.00.0070.07315.85
5.3.290.0070.07714.73
5.3.280.0030.03714.72
5.3.270.0070.06014.66
5.3.260.0030.06314.60
5.3.250.0100.07314.69
5.3.240.0030.07714.75
5.3.230.0000.04314.59
5.3.220.0100.03314.71
5.3.210.0000.04014.71
5.3.200.0070.03314.55
5.3.190.0070.03714.58
5.3.180.0030.06314.54
5.3.170.0100.03314.49
5.3.160.0070.03314.52
5.3.150.0030.03714.66
5.3.140.0000.04014.55
5.3.130.0100.05014.48
5.3.120.0030.03714.54
5.3.110.0100.06314.57
5.3.100.0130.06314.16
5.3.90.0070.06714.08
5.3.80.0130.06714.18
5.3.70.0130.06714.04
5.3.60.0270.06714.07
5.3.50.0030.08014.09
5.3.40.0070.07713.88
5.3.30.0000.04013.90
5.3.20.0070.03313.75
5.3.10.0000.04013.72
5.3.00.0070.03713.78
5.2.170.0100.05711.71
5.2.160.0070.06711.71
5.2.150.0030.03011.71
5.2.140.0030.03011.71
5.2.130.0070.02711.71
5.2.120.0070.02711.71
5.2.110.0000.03311.71
5.2.100.0030.06011.71
5.2.90.0100.05011.71
5.2.80.0030.06311.71
5.2.70.0030.03711.71
5.2.60.0000.03311.71
5.2.50.0070.06011.71
5.2.40.0000.03011.71
5.2.30.0000.04711.71
5.2.20.0070.05711.71
5.2.10.0030.04711.71
5.2.00.0070.04711.71
5.1.60.0000.03011.71
5.1.50.0000.02711.71
5.1.40.0030.02711.71
5.1.30.0000.04711.71
5.1.20.0030.05311.71
5.1.10.0000.04011.71
5.1.00.0170.03011.71
5.0.50.0070.04311.71
5.0.40.0000.04011.71
5.0.30.0030.03711.71
5.0.20.0030.04011.71
5.0.10.0030.04011.71
5.0.00.0000.03311.71
4.4.90.0000.03311.71
4.4.80.0000.03711.71
4.4.70.0030.02011.71
4.4.60.0030.01311.71
4.4.50.0070.03311.71
4.4.40.0000.02311.71
4.4.30.0000.01711.71
4.4.20.0000.03711.71
4.4.10.0000.02011.71
4.4.00.0030.02311.71
4.3.110.0030.02011.71
4.3.100.0030.03011.71
4.3.90.0100.02711.71
4.3.80.0000.02711.71
4.3.70.0030.01311.71
4.3.60.0030.03011.71
4.3.50.0030.02011.71
4.3.40.0000.02711.71
4.3.30.0000.01711.71
4.3.20.0000.01711.71
4.3.10.0000.01711.71
4.3.00.0000.01711.71

preferences:
29.49 ms | 401 KiB | 5 Q