3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A { class T {} } namespace { $hello = 42; class Test { public function first(string $str): function { 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.0070.05320.16
5.6.160.0100.08020.50
5.6.150.0000.04718.23
5.6.140.0130.07018.12
5.6.130.0030.04018.28
5.6.120.0070.04021.12
5.6.110.0100.07720.98
5.6.100.0030.08720.89
5.6.90.0070.08020.96
5.6.80.0130.06720.41
5.5.300.0030.05317.95
5.5.290.0000.08717.98
5.5.280.0100.03720.85
5.5.270.0170.07320.89
5.5.260.0100.06320.88
5.5.250.0100.03320.69
5.5.240.0230.06320.04

preferences:
142.82 ms | 1394 KiB | 7 Q