3v4l.org

run code in 500+ PHP versions simultaneously
<?php trait FooTrait { } function doFoo(FooTrait $t): void { } class Foo { use FooTrait; } // Uncomment for TypeError //doFoo(new Foo());

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.70.0110.00716.73
8.5.60.0280.00816.33
8.5.50.0250.00516.19
8.5.40.0220.00616.51
8.5.30.0270.00416.05
8.5.20.0170.00116.49
8.5.10.0240.00616.10
8.5.00.0070.00116.52
8.4.220.0160.00419.14
8.4.210.0110.01019.21
8.4.200.0170.00719.30
8.4.190.0120.01019.29
8.4.180.0160.00519.30
8.4.170.0140.00519.36
8.4.160.0130.00619.37
8.4.150.0130.00619.52
8.4.140.0150.00317.35
8.4.130.0140.00517.13
8.4.120.0140.00617.46
8.4.110.0180.00317.47
8.4.100.0170.00317.40
8.4.90.0140.00517.78
8.4.80.0150.00417.52
8.4.70.0160.00317.56
8.4.60.0170.00217.46
8.4.50.0150.00317.59
8.4.40.0200.00217.59
8.4.30.0180.00317.35
8.4.20.0180.00317.45
8.4.10.0180.00417.46
8.3.310.0210.00117.96
8.3.300.0160.00318.26
8.3.290.0160.00618.04
8.3.280.0160.00418.32
8.3.270.0130.00416.52
8.3.260.0160.00316.41
8.3.250.0160.00216.53
8.3.240.0160.00216.50
8.3.230.0120.00516.63
8.3.220.0140.00316.55
8.3.210.0150.00316.30
8.3.200.0150.00316.61
8.3.190.0170.00216.39
8.3.180.0150.00516.39
8.3.170.0120.00716.55
8.3.160.0170.00416.45
8.3.150.0130.00616.68
8.3.140.0140.00416.46
8.3.130.0140.00416.41
8.3.120.0120.00416.43
8.3.110.0140.00416.38
8.3.100.0160.00216.59
8.3.90.0180.00216.39
8.3.80.0160.00516.56
8.3.70.0150.00516.49
8.3.60.0130.00416.38
8.3.50.0200.00316.60
8.3.40.0170.00717.45
8.3.30.0130.00317.51
8.3.20.0150.00217.28
8.3.10.0110.00517.41
8.3.00.0140.00417.60
8.2.310.0100.00917.95

preferences:
56.07 ms | 742 KiB | 5 Q