3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Entity {} interface IFoobarable {} trait Foobarable {} class TestEntity extends Entity implements IFoobarable { use Foobarable; } function test(Entity&IFoobarable $obj) { echo "PHP is awesome!"; } $obj = new TestEntity(); test($obj);

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.120.0160.00420.45
8.4.110.0120.00922.38
8.4.100.0140.00817.83
8.4.90.0140.00717.84
8.4.80.0050.00317.75
8.4.70.0110.01217.77
8.4.60.0120.00817.84
8.4.50.0130.01117.75
8.4.40.0080.00019.53
8.4.30.0180.00420.41
8.4.20.0100.01017.88
8.4.10.0030.00621.86
8.3.250.0120.00718.71
8.3.240.0080.01116.54
8.3.230.0120.00616.48
8.3.220.0080.00719.17
8.3.210.0080.00616.70
8.3.200.0100.01116.44
8.3.190.0100.00816.41
8.3.180.0100.00917.02
8.3.170.0090.00616.61
8.3.160.0040.01516.57
8.3.150.0040.01117.20
8.3.140.0080.00016.45
8.3.130.0050.00516.40
8.3.120.0030.00618.79
8.3.110.0040.00422.58
8.3.100.0160.00320.94
8.3.90.0060.00320.94
8.3.50.0000.00720.94
8.2.290.0080.00320.48
8.2.280.0080.01118.61
8.2.270.0070.01116.45
8.2.260.0120.00318.78
8.2.250.0080.00016.85
8.2.240.0040.00417.22
8.2.230.0040.00422.58
8.2.220.0070.01022.58
8.2.210.0080.00022.58
8.2.110.0090.00822.19
8.1.330.0130.00516.67
8.1.320.0130.00816.25
8.1.310.0090.00016.58
8.1.300.0080.00018.38
8.1.240.0190.00719.28
8.1.70.0040.00717.41
8.1.60.0180.00017.43
8.1.50.0140.00417.52
8.1.40.0050.00817.40
8.1.30.0060.00317.49
8.1.20.0120.00017.64
8.1.10.0090.00417.55
8.1.00.0110.00017.38
8.0.300.0100.01017.62
8.0.200.0070.00016.87
8.0.190.0060.00316.93
8.0.180.0030.00616.88
8.0.170.0060.00316.88
8.0.160.0070.00316.91
8.0.150.0060.00616.79
8.0.140.0070.00716.82
8.0.130.0080.00716.79
8.0.120.0100.00416.87
8.0.110.0110.00516.82
8.0.100.0150.00016.88
8.0.90.0100.00516.81
8.0.80.0080.00316.69
8.0.70.0110.00016.76
8.0.60.0120.00016.65
8.0.50.0090.00416.75
8.0.30.0150.00016.73
8.0.20.0080.00316.80
8.0.10.0130.00016.80
7.4.300.0000.00716.39
7.4.290.0180.00016.45
7.4.280.0060.00316.44
7.4.270.0050.00216.34
7.4.260.0080.00016.39
7.4.250.0060.00316.24
7.4.240.0130.00316.29
7.4.230.0130.00016.32
7.4.220.0100.00616.47
7.4.210.0120.00316.43
7.4.200.0100.00716.23
7.4.190.0170.00016.35
7.4.180.0070.00716.37
7.4.160.0070.00416.39
7.4.150.0050.00516.44
7.4.140.0060.00616.16
7.4.130.0070.00316.23
7.4.120.0050.00516.07
7.4.110.0100.00016.28
7.4.100.0100.00016.19
7.4.90.0070.00316.26
7.4.80.0040.00416.13
7.4.70.0060.00316.23
7.4.60.0060.00616.22
7.4.50.0070.00716.18
7.4.40.0030.00716.18
7.4.30.0060.00316.09
7.4.20.0030.00616.31
7.4.10.0070.00216.20
7.4.00.0030.00616.18

preferences:
27.62 ms | 403 KiB | 5 Q