3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface A {} interface B {} class NeedsA { function __construct(A $a) {} } class NeedsB extends NeedsA { function __construct(B $b) {} } var_dump(new NeedsB(new class implements B {}));

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.120.0060.00320.76
8.3.110.0080.00016.37
8.3.100.0060.00318.31
8.3.90.0000.00718.51
8.3.80.0050.00518.42
8.3.70.0120.00316.58
8.3.60.0120.00316.38
8.3.50.0090.00620.09
8.3.40.0070.00720.13
8.3.30.0150.00018.59
8.3.20.0040.00424.18
8.3.10.0050.00224.66
8.3.00.0000.00826.16
8.2.240.0100.00017.27
8.2.230.0060.00320.94
8.2.220.0080.00024.06
8.2.210.0040.00426.77
8.2.200.0040.00416.38
8.2.190.0100.01016.58
8.2.180.0140.00025.92
8.2.170.0040.01118.88
8.2.160.0100.00322.96
8.2.150.0080.00025.66
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00026.16
8.2.110.0030.00622.25
8.2.100.0090.00317.84
8.2.90.0060.00317.78
8.2.80.0040.00417.50
8.2.70.0040.00417.50
8.2.60.0060.00317.80
8.2.50.0040.00418.07
8.2.40.0030.00521.10
8.2.30.0040.00418.00
8.2.20.0040.00419.11
8.2.10.0000.00718.08
8.2.00.0140.00019.40
8.1.300.0090.00018.41
8.1.290.0030.00618.88
8.1.280.0060.00825.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0090.00022.33
8.1.230.0110.00020.88
8.1.220.0000.00917.74
8.1.210.0000.00818.88
8.1.200.0030.00617.23
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0080.00018.64
8.1.160.0000.00718.87
8.1.150.0050.00218.63
8.1.140.0070.00017.38
8.1.130.0060.00319.08
8.1.120.0110.00417.37
8.1.110.0140.00317.38
8.1.100.0140.00217.36
8.1.90.0130.00417.43
8.1.80.0120.00417.43
8.1.70.0080.00817.34
8.1.60.0120.00217.56
8.1.50.0140.00717.39
8.1.40.0150.00317.52
8.1.30.0120.00617.42
8.1.20.0150.00417.48
8.1.10.0180.00017.46
8.1.00.0120.00417.38
8.0.300.0020.00519.87
8.0.290.0000.00716.75
8.0.280.0070.00018.43
8.0.270.0080.00017.24
8.0.260.0110.00616.91
8.0.250.0080.00816.93
8.0.240.0040.01116.99
8.0.230.0090.00716.88
8.0.220.0150.00016.87
8.0.210.0080.00616.87
8.0.200.0080.00516.87
8.0.190.0140.00016.87
8.0.180.0110.00516.87
8.0.170.0140.00016.91
8.0.160.0150.00016.87
8.0.150.0050.01016.87
8.0.140.0170.00016.87
8.0.130.0040.00716.87
8.0.120.0100.00216.87
8.0.110.0090.00416.87
8.0.100.0090.00616.87
8.0.90.0120.00416.87
8.0.80.0100.00516.87
8.0.70.0120.00416.87
8.0.60.0080.00816.87
8.0.50.0030.01216.87
8.0.30.0090.00616.87
8.0.20.0060.00916.87
8.0.10.0150.00016.88

preferences:
17.02 ms | 403 KiB | 5 Q