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.5.20.0110.00619.57
8.5.10.0090.00919.92
8.5.00.0130.00919.76
8.4.170.0120.01023.85
8.4.160.0140.00823.80
8.4.150.0020.00014.05
8.4.140.0130.00817.52
8.4.130.0130.00717.63
8.4.120.0130.00720.61
8.4.110.0060.00322.28
8.4.100.0100.00917.73
8.4.90.0090.00418.59
8.4.80.0150.00620.87
8.4.70.0100.00617.79
8.4.60.0120.00918.67
8.4.50.0080.01217.71
8.4.40.0070.01319.58
8.4.30.0000.00718.79
8.4.20.0160.00319.60
8.4.10.0060.00323.82
8.3.300.0140.00719.22
8.3.290.0160.00620.60
8.3.280.0100.01118.27
8.3.270.0120.00716.53
8.3.260.0100.00916.63
8.3.250.0100.00619.05
8.3.240.0150.00216.69
8.3.230.0110.00816.59
8.3.220.0080.01117.06
8.3.210.0130.00616.51
8.3.200.0040.00416.38
8.3.190.0050.00316.98
8.3.180.0120.00718.45
8.3.170.0070.01019.10
8.3.160.0090.00616.46
8.3.150.0000.01918.66
8.3.140.0040.00416.68
8.3.130.0040.00418.45
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.300.0150.00420.41
8.2.290.0110.00720.18
8.2.280.0090.01018.77
8.2.270.0130.00618.76
8.2.260.0070.01018.89
8.2.250.0070.00416.41
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.340.0130.00617.54
8.1.330.0130.00620.47
8.1.320.0030.00516.19
8.1.310.0000.00916.73
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:
32.97 ms | 403 KiB | 5 Q