3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A { class T {} } namespace { $hello = 42; class Test { public function first(string $str): Closure { return function() use ($hello) { } } 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.0200.04320.09
5.6.160.0100.08020.52
5.6.150.0030.08318.18
5.6.140.0170.06318.25
5.6.130.0030.04018.18
5.6.120.0130.07721.10
5.6.110.0130.08020.98
5.6.100.0030.06321.02
5.6.90.0100.07721.00
5.6.80.0070.07320.39
5.5.300.0100.06318.03
5.5.290.0100.07318.08
5.5.280.0070.03720.88
5.5.270.0100.07020.87
5.5.260.0100.08020.88
5.5.250.0000.04320.61
5.5.240.0170.06720.04

preferences:
132.99 ms | 1398 KiB | 7 Q