3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @legacy */ interface A { function foo($x = NULL); } class C implements A { function foo() {} }

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.0140.00018.58
8.3.30.0070.01019.02
8.3.20.0000.00720.34
8.3.10.0000.00921.98
8.3.00.0090.00022.39
8.2.170.0100.00322.96
8.2.160.0100.00319.21
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0050.00319.36
8.2.110.0140.00422.10
8.2.100.0070.00419.51
8.2.90.0030.00518.95
8.2.80.0080.00017.97
8.2.70.0000.00817.50
8.2.60.0000.00817.89
8.2.50.0040.00418.07
8.2.40.0040.00419.94
8.2.30.0070.00017.99
8.2.20.0040.00417.62
8.2.10.0020.00517.57
8.2.00.0040.00417.67
8.1.270.0070.00022.20
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0090.00023.96
8.1.230.0100.00019.10
8.1.220.0080.00017.74
8.1.210.0090.00018.77
8.1.200.0030.00617.25
8.1.190.0040.00417.39
8.1.180.0000.00818.62
8.1.170.0040.00418.59
8.1.160.0000.00722.14
8.1.150.0000.00818.49
8.1.140.0030.00617.38
8.1.130.0060.00017.75
8.1.120.0000.00717.30
8.1.110.0030.00517.30
8.1.100.0030.00317.40
8.1.90.0040.00417.32
8.1.80.0000.00717.34
8.1.70.0030.00317.38
8.1.60.0000.00817.43
8.1.50.0030.00617.43
8.1.40.0000.00717.34
8.1.30.0040.00417.54
8.1.20.0080.00017.51
8.1.10.0000.00717.34
8.1.00.0020.00517.29
8.0.300.0070.00018.77
8.0.290.0030.00517.05
8.0.280.0000.00718.34
8.0.270.0000.00717.11
8.0.260.0030.00316.75
8.0.250.0030.00316.99
8.0.240.0000.00816.85
8.0.230.0040.00416.99
8.0.220.0040.00416.82
8.0.210.0000.00716.77
8.0.200.0040.00416.99
8.0.190.0030.00316.91
8.0.180.0030.00316.88
8.0.170.0000.00716.86
8.0.160.0000.00816.81
8.0.150.0030.00316.72
8.0.140.0030.00316.84
8.0.130.0000.00613.29
8.0.120.0000.00716.75
8.0.110.0040.00416.79
8.0.100.0000.00717.00
8.0.90.0040.00416.80
8.0.80.0030.01416.86
8.0.70.0000.00816.90
8.0.60.0040.00416.88
8.0.50.0000.00816.79
8.0.30.0130.00917.02
8.0.20.0090.00917.40
8.0.10.0070.00017.03
8.0.00.0090.00916.74
7.4.330.0000.00615.00
7.4.320.0060.00016.51
7.4.300.0030.00316.52
7.4.290.0000.00716.39
7.4.280.0060.00016.38
7.4.270.0020.00516.54
7.4.260.0030.00316.33
7.4.250.0040.00416.54
7.4.240.0030.00316.50
7.4.230.0080.00016.55
7.4.220.0090.00616.47
7.4.210.0080.00916.53
7.4.200.0070.00016.62
7.4.190.0030.00316.67
7.4.160.0140.01016.39
7.4.150.0090.01017.40
7.4.140.0080.01117.86
7.4.130.0090.01316.45
7.4.120.0080.01016.57
7.4.110.0100.00716.42
7.4.100.0100.00716.56
7.4.90.0110.00616.28
7.4.80.0100.01019.39
7.4.70.0140.00316.43
7.4.60.0030.01216.67
7.4.50.0000.00516.46
7.4.40.0060.00622.77
7.4.30.0040.01916.36
7.4.00.0080.00714.89
7.3.330.0020.00213.10
7.3.320.0000.00613.04
7.3.310.0000.00716.25
7.3.300.0030.00316.23
7.3.290.0030.01016.21
7.3.280.0100.00816.24
7.3.270.0080.00817.40
7.3.260.0120.00616.12
7.3.250.0110.00616.31
7.3.240.0070.01116.39
7.3.230.0030.01416.39
7.3.210.0130.01016.34
7.3.200.0150.00619.39
7.3.190.0030.01916.34
7.3.180.0000.01516.46
7.3.170.0110.00516.35
7.3.160.0120.00316.25
7.3.120.0030.01014.85
7.3.110.0060.00914.63
7.3.100.0090.00614.80
7.3.90.0000.01114.76
7.3.80.0060.00914.52
7.3.70.0040.00714.44
7.3.60.0060.00314.55
7.3.50.0060.00914.57
7.3.40.0110.00314.25
7.3.30.0110.00614.71
7.3.20.0030.01416.64
7.3.10.0030.01216.44
7.3.00.0050.00816.54
7.2.330.0100.00716.52
7.2.320.0110.00616.24
7.2.310.0120.00616.54
7.2.300.0170.00316.26
7.2.290.0100.00716.59
7.2.250.0110.00714.96
7.2.240.0090.00914.58
7.2.230.0030.01314.79
7.2.220.0060.00314.80
7.2.210.0090.00914.88
7.2.200.0090.00614.63
7.2.190.0000.00914.89
7.2.180.0030.01314.95
7.2.170.0000.01514.57
7.2.130.0160.00316.79
7.2.120.0120.00616.45
7.2.110.0030.01316.63
7.2.100.0120.00616.32
7.2.90.0080.00916.79
7.2.80.0040.00816.47
7.2.70.0140.00716.57
7.2.60.0130.00516.64
7.2.50.0060.00316.88
7.2.40.0070.00316.53
7.2.30.0100.00716.71
7.2.20.0090.00916.37
7.2.10.0070.00416.85
7.2.00.0020.01118.00
7.1.330.0110.00315.72
7.1.320.0030.00815.76
7.1.310.0090.00015.46
7.1.300.0040.01115.61
7.1.290.0070.00715.39
7.1.280.0030.01015.70
7.1.270.0110.00415.55
7.1.260.0000.00915.60
7.1.250.0070.00315.44
7.1.200.0040.00815.64
7.1.100.0100.00617.71
7.1.70.0030.00316.94
7.1.60.0120.00619.82
7.1.50.0070.00316.84
7.1.00.0070.07322.46
7.0.200.0060.00616.70
7.0.140.0000.07322.07
7.0.60.0030.06319.78
7.0.50.0100.03717.90
7.0.40.0070.07020.11
7.0.30.0330.08020.25
7.0.20.0230.04320.21
7.0.10.0200.06720.23
7.0.00.0070.04720.07
5.6.280.0100.06721.08
5.6.210.0100.03320.45
5.6.200.0100.07318.19
5.6.190.0100.07720.61
5.6.180.3600.04020.64
5.6.170.0330.05320.48
5.6.160.0070.04320.50
5.6.150.0070.08318.18
5.6.140.0070.07718.25
5.6.130.0070.08018.20
5.6.120.0030.04721.12
5.6.110.0000.08721.01
5.6.100.0170.07320.96
5.6.90.0170.05720.97
5.6.80.0100.07720.36
5.6.70.0230.02720.42
5.5.350.0000.08320.35
5.5.340.0100.07018.02
5.5.330.0070.05320.34
5.5.320.0170.05020.28
5.5.310.0270.08020.29
5.5.300.0070.06018.02
5.5.290.0070.07017.99
5.5.280.0130.08020.68
5.5.270.0100.05320.77
5.5.260.0070.05720.77
5.5.250.0030.04320.62
5.5.240.0030.08720.37
5.4.450.0830.05719.55
5.4.440.0770.05719.45
5.4.430.0770.05319.57
5.4.420.0900.05019.30
5.4.410.0770.06719.31
5.4.400.0700.00018.84
5.4.390.0700.00018.62
5.4.380.0200.06718.64
5.4.370.0270.04718.73
5.4.360.0270.04718.50
5.4.350.0400.04018.61
5.4.340.0270.04718.83
5.4.320.0030.03912.50
5.4.310.0080.04012.50
5.4.300.0070.04212.50
5.4.290.0090.03912.50
5.4.280.0080.03812.40
5.4.270.0070.03812.39
5.4.260.0170.06018.66
5.4.250.0130.04719.09
5.4.240.0070.07318.75
5.4.230.0070.05319.03
5.4.220.0130.05019.00
5.4.210.0070.08318.96
5.4.200.0030.06718.90
5.4.190.0200.06318.96
5.4.180.0200.06018.76
5.4.170.0130.06318.90
5.4.160.0070.05318.79
5.4.150.0030.05718.73
5.4.140.0100.04716.29
5.4.130.0130.04316.32
5.4.120.0070.05316.48
5.4.110.0130.06316.49
5.4.100.0100.04716.41
5.4.90.0070.05316.36
5.4.80.0100.05016.61
5.4.70.0130.04316.48
5.4.60.0030.07716.32
5.4.50.0100.06716.48
5.4.40.0130.05016.64
5.4.30.0070.06316.44
5.4.20.0170.06016.59
5.4.10.0100.05016.38
5.4.00.0170.04315.96
5.3.290.0060.04212.80
5.3.280.0130.04714.73
5.3.270.0130.05314.51
5.3.260.0100.05314.59
5.3.250.0170.04714.68
5.3.240.0070.05014.77
5.3.230.0070.05314.75
5.3.220.0070.05014.57
5.3.210.0130.06714.66
5.3.200.0070.05714.55
5.3.190.0070.05714.80
5.3.180.0130.05014.78
5.3.170.0100.04714.70
5.3.160.0030.05314.70
5.3.150.0170.04714.64
5.3.140.0100.04714.57
5.3.130.0100.05314.54
5.3.120.0200.06314.52
5.3.110.0030.05714.77
5.3.100.0130.04714.21
5.3.90.0100.05314.23
5.3.80.0100.05013.92
5.3.70.0070.05314.09
5.3.60.0130.06313.85
5.3.50.0100.05013.92
5.3.40.0070.06714.02
5.3.30.0100.05014.00
5.3.20.0070.06313.68
5.3.10.0100.04713.74
5.3.00.0070.05013.86
5.2.170.0070.05311.23
5.2.160.0130.03711.21
5.2.150.0100.05711.14
5.2.140.0100.03711.23
5.2.130.0070.04011.19
5.2.120.0030.04011.09
5.2.110.0100.03711.16
5.2.100.0130.03711.32
5.2.90.0000.04310.93
5.2.80.0030.05011.17
5.2.70.0070.05710.94
5.2.60.0070.04311.13
5.2.50.0070.04011.00
5.2.40.0070.04310.98
5.2.30.0200.02711.07
5.2.20.0100.03310.94
5.2.10.0000.04310.68
5.2.00.0130.03710.94
5.1.60.0030.03710.01
5.1.50.0030.0339.84
5.1.40.0000.04010.18
5.1.30.0070.03310.30
5.1.20.0030.04310.36
5.1.10.0100.03310.02
5.1.00.0070.0339.91
5.0.50.0100.0238.56
5.0.40.0030.0278.50
5.0.30.0000.0438.32
5.0.20.0070.0238.24
5.0.10.0070.0338.09
5.0.00.0130.0478.21
4.4.90.0070.0206.09
4.4.80.0070.0176.09
4.4.70.0030.0306.09
4.4.60.0000.0236.09
4.4.50.0000.0276.09
4.4.40.0030.0376.09
4.4.30.0030.0206.09
4.4.20.0130.0206.09
4.4.10.0030.0206.09
4.4.00.0100.0276.09
4.3.110.0000.0336.09
4.3.100.0000.0336.09
4.3.90.0030.0306.09
4.3.80.0030.0336.09
4.3.70.0030.0206.09
4.3.60.0030.0206.09
4.3.50.0130.0236.09
4.3.40.0070.0276.09
4.3.30.0000.0276.09
4.3.20.0000.0236.09
4.3.10.0030.0206.09
4.3.00.0200.0205.67

preferences:
45.72 ms | 400 KiB | 5 Q