3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Not allowed namespace namespace {} //syntax error, unexpected namespace-relative name "namespace\A", expecting "{" namespace namespace\A {} // namespace may be used, but not in first position // surely, not a good idea namespace A\namespace { const B = 1; } namespace A { echo namespace\namespace\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.4.50.0300.01117.74
8.4.40.0310.01117.45
8.4.30.0330.00517.41
8.4.20.0180.00419.33
8.4.10.0170.00417.24
8.3.190.0170.00318.25
8.3.180.0160.00516.57
8.3.170.0170.00316.63
8.3.160.0170.00516.48
8.3.150.0170.00318.68
8.3.140.0250.00516.49
8.3.130.0170.00516.55
8.3.120.0170.00216.68
8.3.110.0220.00416.37
8.3.100.0250.00816.69
8.3.90.0190.00317.02
8.3.80.0180.00516.55
8.3.70.0290.00516.56
8.3.60.0240.00416.79
8.3.50.0150.00516.47
8.3.40.0190.00517.63
8.3.30.0210.00317.41
8.3.20.0310.00517.39
8.3.10.0380.00717.29
8.3.00.0170.00617.50
8.2.280.0120.00616.56
8.2.270.0160.00716.28
8.2.260.0210.00716.16
8.2.250.0130.00516.79
8.2.240.0190.00516.42
8.2.230.0140.00416.56
8.2.220.0140.00416.70
8.2.210.0160.00616.28
8.2.200.0150.00916.61
8.2.190.0140.00316.42
8.2.180.0110.00816.18
8.2.170.0130.00617.70
8.2.160.0160.00317.54
8.2.150.0170.00217.47
8.2.140.0220.00617.34
8.2.130.0140.00617.52
8.2.120.0140.00717.56
8.2.110.0260.00517.32
8.2.100.0200.00717.30
8.2.90.0370.00517.38
8.2.80.0200.00717.57
8.2.70.0250.00916.93
8.2.60.0250.01017.36
8.2.50.0310.00917.08
8.2.40.0200.00417.64
8.2.30.0130.00517.50
8.2.20.0250.00717.14
8.2.10.0160.00417.45
8.2.00.0200.00717.15

preferences:
149.57 ms | 1319 KiB | 7 Q