3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{} class B extends A{} interface I{ public function z(A $var); } class M implements I{ public function z(A $var){} }

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.70.0070.00716.58
8.3.60.0160.00316.50
8.3.50.0130.00616.46
8.3.40.0070.00718.46
8.3.30.0180.00018.64
8.3.20.0040.00418.70
8.3.10.0080.00018.57
8.3.00.0050.00319.13
8.2.180.0140.00325.92
8.2.170.0070.01018.99
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0020.00418.72
8.2.110.0000.00921.04
8.2.100.0070.00417.79
8.2.90.0030.00519.06
8.2.80.0050.00317.97
8.2.70.0060.00317.63
8.2.60.0000.00817.80
8.2.50.0080.00018.07
8.2.40.0030.00618.03
8.2.30.0020.00519.43
8.2.20.0050.00517.57
8.2.10.0000.00817.61
8.2.00.0070.00317.51
8.1.280.0110.00725.92
8.1.270.0040.00423.99
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0070.00723.82
8.1.230.0060.00620.92
8.1.220.0040.00418.77
8.1.210.0030.00518.97
8.1.200.0060.00317.23
8.1.190.0040.00417.28
8.1.180.0030.00518.10
8.1.170.0090.00018.47
8.1.160.0000.00818.78
8.1.150.0070.00018.63
8.1.140.0080.00017.25
8.1.130.0040.00419.17
8.1.120.0000.00817.45
8.1.110.0040.00417.36
8.1.100.0040.00417.42
8.1.90.0030.00417.31
8.1.80.0000.00717.30
8.1.70.0000.00717.39
8.1.60.0070.00017.51
8.1.50.0040.00417.50
8.1.40.0040.00417.48
8.1.30.0040.00417.52
8.1.20.0090.00317.49
8.1.10.0040.00417.41
8.1.00.0030.00617.27
8.0.300.0000.00719.97
8.0.290.0000.00717.05
8.0.280.0000.00718.29
8.0.270.0000.00716.66
8.0.260.0040.00416.80
8.0.250.0000.00916.88
8.0.240.0060.00316.77
8.0.230.0040.00416.90
8.0.220.0030.00316.75
8.0.210.0000.00816.85
8.0.200.0040.00416.91
8.0.190.0030.00516.84
8.0.180.0070.00016.77
8.0.170.0040.00416.86
8.0.160.0000.00716.92
8.0.150.0040.00416.71
8.0.140.0000.00816.77
8.0.130.0030.00513.24
8.0.120.0030.00616.75
8.0.110.0030.00616.77
8.0.100.0050.00316.70
8.0.90.0030.00516.78
8.0.80.0030.01216.81
8.0.70.0050.00316.87
8.0.60.0080.00016.62
8.0.50.0040.00416.78
8.0.30.0140.00417.05
8.0.20.0100.00717.02
8.0.10.0000.00716.82
8.0.00.0130.00516.60
7.4.330.0000.00512.82
7.4.320.0000.00716.41
7.4.300.0000.00616.43
7.4.290.0090.00316.54
7.4.280.0000.00816.49
7.4.270.0000.00716.44
7.4.260.0030.00316.37
7.4.250.0050.00216.50
7.4.240.0030.00316.32
7.4.230.0000.00716.35
7.4.220.0110.00716.53
7.4.210.0060.01016.48
7.4.200.0030.00316.46
7.4.190.0040.00416.47
7.4.160.0110.01116.38
7.4.150.0210.03516.55
7.4.140.0160.00317.86
7.4.130.0220.00916.39
7.4.120.0100.01316.55
7.4.110.0140.00316.45
7.4.100.0080.00816.57
7.4.90.0090.00916.45
7.4.80.0100.01019.39
7.4.70.0030.01316.56
7.4.60.0080.00816.55
7.4.50.0030.00516.31
7.4.40.0070.01016.44
7.4.30.0110.00516.17
7.4.00.0050.01114.65
7.3.330.0060.00013.20
7.3.320.0060.00012.97
7.3.310.0040.00416.07
7.3.300.0030.00316.19
7.3.290.0050.01116.17
7.3.280.0070.01416.13
7.3.270.0110.00516.24
7.3.260.0100.01316.42
7.3.240.0100.00616.26
7.3.230.0070.01516.49
7.3.210.0100.00716.27
7.3.200.0140.00316.27
7.3.190.0120.00316.44
7.3.180.0130.00316.44
7.3.170.0090.00916.36
7.3.160.0060.01016.16
7.3.120.0070.00816.01
7.3.110.0030.01215.95
7.3.100.0080.00615.77
7.3.90.0040.01116.04
7.3.80.0050.01115.92
7.3.70.0070.00415.88
7.3.60.0020.00915.80
7.3.50.0050.01016.04
7.3.40.0060.00815.82
7.3.30.0060.00815.92
7.3.20.0060.01016.81
7.3.10.0080.00516.78
7.3.00.0030.01116.81
7.2.330.0110.00716.39
7.2.320.0120.00616.54
7.2.310.0040.01916.40
7.2.300.0040.01816.37
7.2.290.0000.01716.60
7.2.250.0060.01215.17
7.2.240.0050.01215.93
7.2.230.0060.00615.99
7.2.220.0040.00615.91
7.2.210.0010.01315.87
7.2.200.0080.00315.88
7.2.190.0050.01216.07
7.2.180.0040.01115.83
7.2.170.0070.00516.09
7.2.160.0030.01217.15
7.2.150.0060.00917.15
7.2.140.0060.01017.15
7.2.130.0030.01317.15
7.2.120.0030.01217.15
7.2.110.0140.00017.15
7.2.100.0100.00717.15
7.2.90.0070.01117.15
7.2.80.0100.00017.15
7.2.70.0080.00817.15
7.2.60.0110.00317.15
7.2.50.0070.01117.15
7.2.40.0040.01217.15
7.2.30.0070.00417.15
7.2.20.0110.00717.15
7.2.10.0030.01317.15
7.2.00.0030.01118.20
7.1.330.0030.01116.42
7.1.320.0020.01116.28
7.1.310.0050.00716.23
7.1.300.0040.01116.39
7.1.290.0030.01216.35
7.1.280.0000.01416.45
7.1.270.0080.00516.50
7.1.260.0050.00716.44
7.1.250.0030.01317.15
7.1.100.0040.01117.93
7.1.70.0000.00716.89
7.1.60.0100.01419.25
7.1.50.0080.00416.76
7.1.00.0070.03022.35
7.0.200.0030.00516.56
7.0.140.0000.07722.00
7.0.120.0030.06322.09
7.0.60.0270.06720.03
7.0.50.0070.05017.88
7.0.40.0000.05320.05
7.0.30.0270.06720.21
7.0.20.0200.04720.10
7.0.10.0370.03720.07
7.0.00.0030.04020.16
5.6.280.0030.07321.12
5.6.210.0070.03720.63
5.6.200.0100.04718.14
5.6.190.0030.04020.50
5.6.180.0330.07020.59
5.6.170.0230.07320.47
5.6.160.0070.07320.53
5.6.150.0130.06718.27
5.6.140.0100.08018.11
5.6.130.0030.04018.28
5.6.120.0070.04020.99
5.6.110.0100.06020.98
5.6.100.0070.06020.89
5.6.90.0100.06320.88
5.6.80.0030.04020.53
5.6.70.4270.04020.37
5.5.350.0070.03720.42
5.5.340.0070.05318.08
5.5.330.0030.04320.56
5.5.320.0400.04720.26
5.5.310.0270.08320.19
5.5.300.0030.08718.04
5.5.290.0130.07318.06
5.5.280.0130.07020.88
5.5.270.0170.07320.96
5.5.260.0130.04320.88
5.5.250.0130.07320.70
5.5.240.0130.05320.15
5.4.450.0030.05019.30
5.4.440.0000.04319.17
5.4.430.0030.04719.17
5.4.420.0030.04319.40
5.4.410.0000.04019.36
5.4.400.0100.03019.15
5.4.390.0030.03719.15
5.4.380.0070.03319.15
5.4.370.0030.03719.01
5.4.360.0100.07019.12
5.4.350.0030.05018.95
5.4.340.0030.04319.16
5.4.320.0000.06319.21
5.4.310.0170.02719.24
5.4.300.0000.04319.12
5.4.290.0070.03719.12
5.4.280.0030.08018.85
5.4.270.0070.04719.14
5.4.260.0030.08019.20
5.4.250.0130.07318.97
5.4.240.0170.02719.13
5.4.230.0030.06719.24
5.4.220.0170.06318.84
5.4.210.0100.07019.20
5.4.200.0100.07319.14
5.4.190.0100.06719.11
5.4.180.0070.04019.23
5.4.170.0100.07319.20
5.4.160.0100.07718.85
5.4.150.0100.06019.10
5.4.140.0100.07016.36
5.4.130.0070.04316.40
5.4.120.0070.07716.36
5.4.110.0000.05016.52
5.4.100.0130.06316.51
5.4.90.0030.07716.46
5.4.80.0070.07316.33
5.4.70.0030.05716.31
5.4.60.0000.04316.45
5.4.50.0070.07316.29
5.4.40.0000.04316.38
5.4.30.0100.06316.27
5.4.20.0070.03716.46
5.4.10.0070.03316.36
5.4.00.0030.07715.75
5.3.290.0070.04314.73
5.3.280.0030.04014.63
5.3.270.0100.06014.75
5.3.260.0000.05314.51
5.3.250.0030.05014.53
5.3.240.0030.06714.77
5.3.230.0100.04314.61
5.3.220.0030.05714.60
5.3.210.0070.05314.61
5.3.200.0100.06314.48
5.3.190.0100.05714.73
5.3.180.0030.07714.57
5.3.170.0100.04314.46
5.3.160.0070.07714.49
5.3.150.0030.08014.46
5.3.140.0100.08014.63
5.3.130.0100.04014.59
5.3.120.0030.04314.47
5.3.110.0030.08014.70
5.3.100.0070.06314.06
5.3.90.0030.07014.18
5.3.80.0030.07714.03
5.3.70.0070.07014.08
5.3.60.0070.04714.00
5.3.50.0030.07713.92
5.3.40.0100.06013.95
5.3.30.0070.05713.91
5.3.20.0130.05013.70
5.3.10.0070.04013.58
5.3.00.0000.07713.64
5.2.170.0000.06711.15
5.2.160.0030.05011.30
5.2.150.0100.03311.20
5.2.140.0000.03711.15
5.2.130.0030.06311.10
5.2.120.0000.03711.16
5.2.110.0070.06311.25
5.2.100.0000.03311.16
5.2.90.0000.06011.18
5.2.80.0070.03711.05
5.2.70.0100.05711.07
5.2.60.0130.04311.13
5.2.50.0070.04011.08
5.2.40.0030.06010.97
5.2.30.0070.05711.01
5.2.20.0000.03310.96
5.2.10.0100.05311.02
5.2.00.0070.03310.73
5.1.60.0030.0539.99
5.1.50.0000.02710.05
5.1.40.0070.0239.98
5.1.30.0070.02310.26
5.1.20.0100.05310.41
5.1.10.0000.03710.14
5.1.00.0000.06010.06
5.0.50.0070.0278.54
5.0.40.0030.0438.38
5.0.30.0030.0608.22
5.0.20.0030.0238.29
5.0.10.0030.0278.14
5.0.00.0000.0478.18
4.4.90.0000.0377.88
4.4.80.0000.0307.88
4.4.70.0100.0307.88
4.4.60.0030.0237.88
4.4.50.0030.0137.88
4.4.40.0000.0277.88
4.4.30.0000.0177.88
4.4.20.0000.0277.88
4.4.10.0000.0237.88
4.4.00.0000.0377.88
4.3.110.0070.0337.88
4.3.100.0030.0277.88
4.3.90.0070.0337.88
4.3.80.0000.0577.88
4.3.70.0070.0307.88
4.3.60.0000.0307.88
4.3.50.0030.0177.88
4.3.40.0030.0407.88
4.3.30.0000.0237.88
4.3.20.0000.0277.88
4.3.10.0000.0377.88
4.3.00.0000.0207.88

preferences:
51.41 ms | 401 KiB | 5 Q