3v4l.org

run code in 300+ 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.20.0100.00717.16
8.5.10.0060.01216.74
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.300.0120.00918.35
8.3.290.0150.00618.14
8.3.180.0110.00918.56
8.3.50.0130.00818.46

preferences:
28.91 ms | 403 KiB | 5 Q