3v4l.org

run code in 500+ PHP versions simultaneously
<?php const C = [1, 2, 3]; function foo(): array { return C; } foo()[] = 4; var_dump(C);

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.0070.00718.37
8.5.60.0050.00316.56
8.5.50.0120.00616.65
8.5.30.0120.00519.52
8.5.20.0100.00717.16
8.5.10.0060.01216.74
8.4.220.0120.01019.52
8.4.210.0120.00819.61
8.4.180.0110.01019.59
8.4.170.0090.01320.50
8.4.160.0110.00922.15
8.4.140.0270.01117.30
8.4.90.0110.01019.63
8.3.310.0120.00818.38
8.3.300.0120.00918.35
8.3.290.0150.00618.14
8.3.180.0110.00918.56
8.3.50.0130.00818.46

preferences:
54.25 ms | 558 KiB | 5 Q