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.0000.06720.05
5.6.160.0170.05720.41
5.6.150.0070.06318.15
5.6.140.0030.07018.14
5.6.130.0030.04018.17
5.6.120.0030.04721.00
5.6.110.0270.07721.11
5.6.100.0200.07720.98
5.6.90.0170.06720.95
5.6.80.0100.08020.41
5.5.300.0100.04018.08
5.5.290.0070.08018.08
5.5.280.0070.04020.65
5.5.270.0100.08320.68
5.5.260.0130.07320.84
5.5.250.0100.03320.66
5.5.240.0200.05720.16

preferences:
142.17 ms | 1394 KiB | 7 Q