3v4l.org

run code in 500+ PHP versions simultaneously
<?php interface I {} class_alias(I::class, I1::class); class_alias(I1::class, I2::class); class C implements I2 {} function f(I1 $_): void {} f(new C);

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.5.60.0100.01016.50
8.5.50.0070.01116.71
8.5.30.0100.00819.58
8.5.20.0110.00621.29
8.5.10.0110.00716.46
8.5.00.0100.01119.79
8.4.180.0120.01019.57
8.4.170.0140.00819.77
8.4.160.0120.01019.49
8.4.150.0070.00516.89
8.4.140.0140.00617.40
8.4.130.0120.00918.68
8.4.120.0130.00519.43
8.4.110.0100.01017.79
8.4.100.0100.01117.30
8.4.90.0170.00320.52
8.4.80.0110.00918.98
8.4.70.0130.00620.69
8.4.60.0140.00720.56
8.4.50.0140.00619.45
8.4.40.0120.00319.42
8.4.30.0030.00620.34
8.4.20.0100.01020.27
8.4.10.0030.00717.80
8.3.300.0120.00820.16
8.3.290.0110.00918.34
8.3.280.0110.00818.35
8.3.270.0160.00616.66
8.3.260.0140.00916.53
8.3.250.0110.00816.66
8.3.240.0130.00716.24
8.3.230.0100.00916.66
8.3.220.0060.00218.77
8.3.210.0120.00816.62
8.3.200.0030.00516.69
8.3.190.0110.00718.81
8.3.180.0110.00718.14
8.3.170.0110.00719.00
8.3.160.0070.00316.58
8.3.150.0090.00918.75
8.3.140.0080.00017.18
8.3.130.0030.00618.46
8.3.120.0000.00920.66
8.3.110.0090.00020.94
8.3.100.0110.00416.50
8.3.90.0060.00926.77
8.3.80.0080.00016.50
8.3.70.0040.01116.58
8.3.60.0050.01016.61
8.3.50.0070.01018.10
8.3.40.0130.00318.67
8.3.30.0120.00318.72
8.3.20.0050.00324.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.300.0130.00718.15
8.2.290.0030.00516.33
8.2.280.0110.00518.40
8.2.270.0030.00617.48
8.2.260.0110.00416.28
8.2.250.0000.00816.75
8.2.240.0060.00317.05
8.2.230.0000.00922.58
8.2.220.0060.00337.54
8.2.210.0040.00426.77
8.2.200.0120.00016.63
8.2.190.0070.01116.58
8.2.180.0110.01125.92
8.2.170.0070.00718.83
8.2.160.0090.00622.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0050.00226.16
8.2.120.0040.00420.94
8.2.110.0060.00322.11
8.2.100.0070.00417.77
8.2.90.0060.00317.91
8.2.80.0000.00818.98
8.2.70.0040.00417.50
8.2.60.0040.00417.50
8.2.50.0080.00018.10
8.2.40.0040.00420.90
8.2.30.0050.00217.55
8.2.20.0000.00718.05
8.2.10.0000.00819.10
8.2.00.0000.00719.16
8.1.340.0130.00717.56
8.1.330.0110.00716.13
8.1.320.0080.01115.91
8.1.310.0150.00016.80
8.1.300.0040.00419.98
8.1.290.0060.00330.84
8.1.280.0040.01125.92
8.1.270.0050.00523.77
8.1.260.0070.01026.35
8.1.250.0070.00028.09
8.1.240.0040.00423.86
8.1.230.0070.00420.81
8.1.220.0040.00417.74
8.1.210.0050.00318.85
8.1.200.0030.00617.23
8.1.190.0080.00017.22
8.1.180.0050.00518.10
8.1.170.0000.00818.59
8.1.160.0030.00318.74
8.1.150.0020.00518.58
8.1.140.0040.00418.82
8.1.130.0000.00717.34
8.1.120.0020.00517.43
8.1.110.0050.00317.45
8.1.100.0040.00417.41
8.1.90.0070.00317.38
8.1.80.0040.00417.46
8.1.70.0070.00017.44
8.1.60.0000.00817.43
8.1.50.0030.00517.38
8.1.40.0050.00317.35
8.1.30.0060.00317.61
8.1.20.0040.00417.58
8.1.10.0000.00817.38
8.1.00.0070.00017.43
8.0.300.0000.00819.87
8.0.290.0000.00816.75
8.0.280.0070.00018.45
8.0.270.0090.00016.87
8.0.260.0040.00416.87
8.0.250.0070.00016.92
8.0.240.0000.00716.96
8.0.230.0030.00316.91
8.0.220.0000.00616.79
8.0.210.0030.00516.82
8.0.200.0000.00716.89
8.0.190.0040.00416.95
8.0.180.0000.00816.88
8.0.170.0090.00016.96
8.0.160.0080.00016.86
8.0.150.0040.00416.88
8.0.140.0030.00416.85
8.0.130.0030.00313.28
8.0.120.0040.00416.74
8.0.110.0030.00516.73
8.0.100.0080.00016.74
8.0.90.0050.00216.88
8.0.80.0070.00016.84
8.0.70.0030.00316.97
8.0.60.0030.00316.91
8.0.50.0070.00016.91
8.0.30.0050.00316.84
8.0.20.0040.00416.77
8.0.10.0000.00816.88
8.0.00.0070.00017.02
7.4.330.0040.00015.55
7.4.320.0030.00316.30
7.4.300.0000.00616.36
7.4.290.0070.00016.37
7.4.280.0070.00016.44
7.4.270.0030.00316.55
7.4.260.0000.00513.22
7.4.250.0000.00616.55
7.4.240.0040.00416.38
7.4.230.0000.00716.54
7.4.220.0060.00016.61
7.4.210.0040.00416.51
7.4.200.0000.00716.61
7.4.190.0030.00316.68
7.4.180.0070.00016.60
7.4.160.0040.00416.30
7.4.150.0000.00616.65
7.4.140.0030.00316.27
7.4.130.0000.00716.45
7.4.120.0030.00316.41
7.4.110.0020.00516.38
7.4.100.0000.00616.32
7.4.90.0070.00016.50
7.4.80.0000.00716.16
7.4.70.0000.00716.48
7.4.60.0000.00716.32
7.4.50.0050.00316.28
7.4.40.0040.00416.43
7.4.30.0000.00716.37
7.4.20.0000.00716.31
7.4.10.0020.00516.27
7.4.00.0000.00716.46
7.3.330.0000.00816.21
7.3.320.0060.00013.05
7.3.310.0040.00416.09
7.3.300.0040.00416.12
7.3.290.0030.00316.18
7.3.280.0030.00316.23
7.3.270.0000.00716.23
7.3.260.0070.00016.26
7.3.250.0000.00716.16
7.3.240.0080.00016.21
7.3.230.0030.00316.24
7.3.220.0020.00516.06
7.3.210.0000.00716.03
7.3.200.0050.00216.15
7.3.190.0000.00716.15
7.3.180.0000.00816.18
7.3.170.0050.00216.09
7.3.160.0030.00616.10
7.3.150.0030.00316.16
7.3.140.0000.00716.18
7.3.130.0060.00016.09
7.3.120.0050.00316.21
7.3.110.0000.00616.14
7.3.100.0000.00616.07
7.3.90.0000.00616.45
7.3.80.0050.00216.04
7.3.70.0060.00016.18
7.3.60.0070.00016.41
7.3.50.0060.00016.41
7.3.40.0040.00416.38
7.3.30.0000.00716.37
7.3.20.0030.00516.39
7.3.10.0040.00416.30
7.3.00.0000.00716.35

preferences:
47.45 ms | 1368 KiB | 5 Q