3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A { class T {} } namespace { $hello = 42; class Test { public function first(string $str): \ A \ T use $hello { function nested() { } } public function second(int $i): int { } } }

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)
7.0.00.0070.05020.20
5.6.160.0130.05020.54
5.6.150.0070.04018.12
5.6.140.0000.04718.28
5.6.130.0030.06018.11
5.6.120.0070.08021.04
5.6.110.0130.08320.98
5.6.100.0100.06021.01
5.6.90.0070.08321.02
5.6.80.0170.05720.50
5.5.300.0100.06018.08
5.5.290.0100.06017.94
5.5.280.0100.03320.65
5.5.270.0070.04020.80
5.5.260.0100.07720.77
5.5.250.0100.03320.58
5.5.240.0100.06020.37

preferences:
145.4 ms | 1394 KiB | 7 Q