3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public function first(string str): string { function nested() { } return str; } public function second(int i): int { return i; } } $t = new Test; echo $t->first(); echo $t->second();

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.05320.16
5.6.160.0100.08020.49
5.6.150.0100.08018.15
5.6.140.0030.08718.15
5.6.130.0030.05018.17
5.6.120.0000.06020.99
5.6.110.0070.06020.99
5.6.100.0070.08320.98
5.6.90.0200.06320.97
5.6.80.0100.07720.43
5.5.300.0070.08317.98
5.5.290.0070.07317.96
5.5.280.0070.05320.80
5.5.270.0070.08720.96
5.5.260.0030.09320.87
5.5.250.0070.06720.62
5.5.240.0230.03320.11

preferences:
146.44 ms | 1394 KiB | 7 Q