3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface PhoneInterface { public function add(): self; } trait PhoneTrait { public function add(): self { return $this; } } class A implements PhoneInterface { use PhoneTrait; } var_dump(new 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.4.130.0120.00718.56
8.4.120.0120.00823.91
8.4.110.0070.00822.50
8.4.100.0080.00717.57
8.4.90.0050.00718.36
8.4.80.0050.00319.16
8.4.70.0020.00617.82
8.4.60.0090.01218.59
8.4.50.0090.01219.25
8.4.40.0080.01217.77
8.4.30.0050.00320.68
8.4.20.0100.01017.81
8.4.10.0060.00319.30
8.3.260.0080.00916.60
8.3.250.0130.00518.91
8.3.240.0100.00917.17
8.3.230.0110.00816.77
8.3.220.0140.00417.10
8.3.210.0100.00816.49
8.3.200.0050.00716.37
8.3.190.0120.00617.01
8.3.180.0040.00616.64
8.3.170.0150.00318.88
8.3.160.0080.00818.36
8.3.150.0140.00320.79
8.3.140.0150.00416.31
8.3.130.0040.00418.37
8.3.120.0070.00318.86
8.3.110.0060.00320.94
8.3.100.0040.00424.06
8.3.90.0050.00326.77
8.3.80.0000.00916.63
8.3.70.0070.01016.58
8.3.60.0090.00618.55
8.3.50.0120.00524.55
8.3.40.0070.00718.63
8.3.30.0070.00718.60
8.3.20.0040.00424.18
8.3.10.0030.00624.66
8.3.00.0090.00026.16
8.2.290.0110.00720.18
8.2.280.0020.00618.78
8.2.270.0100.01017.22
8.2.260.0040.00420.17
8.2.250.0040.00416.41
8.2.240.0070.00418.73
8.2.230.0060.00322.58
8.2.220.0040.00437.54
8.2.210.0090.00926.77
8.2.200.0060.00316.38
8.2.190.0160.00616.58
8.2.180.0130.00725.92
8.2.170.0080.01118.73
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0060.00326.16
8.2.120.0100.01019.66
8.2.110.0080.00322.00
8.2.100.0040.00717.59
8.2.90.0000.00817.63
8.2.80.0040.00418.65
8.2.70.0060.00618.04
8.2.60.0040.00418.09
8.2.50.0040.00418.10
8.2.40.0050.00320.90
8.2.30.0000.00718.04
8.2.20.0040.00418.04
8.2.10.0000.00819.05
8.2.00.0050.00319.16
8.1.330.0130.00521.82
8.1.320.0080.01116.24
8.1.310.0000.00818.30
8.1.300.0090.00017.73
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0040.00422.03
8.1.260.0060.00326.35
8.1.250.0060.00328.09
8.1.240.0030.00618.89
8.1.230.0060.00617.72
8.1.220.0080.00017.74
8.1.210.0050.00318.77
8.1.200.0030.00617.22
8.1.190.0040.00417.39
8.1.180.0050.00318.10
8.1.170.0040.00418.49
8.1.160.0040.00418.86
8.1.150.0070.00018.83
8.1.140.0000.00718.73
8.1.130.0070.00020.13
8.1.120.0070.00017.46
8.1.110.0040.00417.36
8.1.100.0040.00417.36
8.1.90.0080.00017.37
8.1.80.0000.00917.26
8.1.70.0030.00317.37
8.1.60.0060.00317.42
8.1.50.0060.00317.33
8.1.40.0000.00817.45
8.1.30.0050.00317.61
8.1.20.0050.00217.45
8.1.10.0040.00417.46
8.1.00.0040.00417.34
8.0.300.0000.00720.03
8.0.290.0040.00416.75
8.0.280.0000.00718.41
8.0.270.0000.00718.00
8.0.260.0000.00718.55
8.0.250.0040.00416.91
8.0.240.0080.00016.96
8.0.230.0050.00216.83
8.0.220.0030.00516.83
8.0.210.0030.00316.81
8.0.200.0000.00716.93
8.0.190.0000.00716.85
8.0.180.0040.00416.77
8.0.170.0000.00916.71
8.0.160.0080.00016.92
8.0.150.0070.00016.72
8.0.140.0000.00716.83
8.0.130.0050.00013.24
8.0.120.0040.00416.68
8.0.110.0030.00316.79
8.0.100.0080.00016.82
8.0.90.0000.00716.89
8.0.80.0070.00916.77
8.0.70.0000.00716.72
8.0.60.0040.00416.70
8.0.50.0040.00416.68
8.0.30.0060.01116.86
8.0.20.0060.01316.90
8.0.10.0000.00816.92
8.0.00.0060.01316.71
7.4.330.0050.00015.55
7.4.320.0000.00616.43
7.4.300.0060.00016.46
7.4.290.0040.00416.25
7.4.280.0000.00916.32
7.4.270.0000.00816.56
7.4.260.0050.00013.13
7.4.250.0030.00316.48
7.4.240.0000.00816.52
7.4.230.0030.00316.61
7.4.220.0020.00516.48
7.4.210.0110.00516.56
7.4.200.0000.00916.32
7.4.130.0100.01016.24
7.4.120.0110.01116.19
7.4.110.0060.01216.48
7.4.100.0140.00716.22
7.4.90.0070.01116.11
7.4.80.0090.01516.27
7.4.70.0030.01416.07
7.4.60.0150.00916.23
7.4.50.0030.01616.38
7.4.40.0090.00916.18
7.4.30.0060.01216.39
7.4.20.0070.01016.33
7.4.10.0130.01316.20
7.4.00.0240.00016.34
7.3.330.0030.00316.09
7.3.320.0040.00413.18
7.3.310.0030.00316.27
7.3.300.0030.00316.14
7.3.290.0080.00816.23
7.3.260.0190.00616.45
7.3.250.0150.00616.38
7.3.240.0070.01116.38
7.3.230.0140.00316.21
7.3.220.0070.01116.31
7.3.210.0070.01016.32
7.3.200.0130.00316.10
7.3.190.0070.01116.34
7.3.180.0140.00316.37
7.3.170.0100.00716.17
7.3.160.0090.00916.42
7.3.150.0080.00816.35
7.3.140.0120.00616.45
7.3.130.0090.01616.14
7.3.120.0070.01016.28
7.3.110.0030.01316.21
7.3.100.0090.00916.32
7.3.90.0130.00616.30
7.3.80.0070.01116.55
7.3.70.0100.00716.17
7.3.60.0080.00816.24
7.3.50.0130.00616.43
7.3.40.0130.00716.10
7.3.30.0100.00716.34
7.3.20.0130.00316.33
7.3.10.0040.01516.25
7.3.00.0060.01316.35

preferences:
30.75 ms | 403 KiB | 5 Q