3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public foo(string $foo = null) { echo $foo; } } $foo = new Foo; $foo->foo(); $foo->foo(null); $foo->foo('bar');

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)
5.6.150.0100.07318.18
5.6.140.0030.04318.18
5.6.130.0030.07018.29
5.6.120.0070.05721.13
5.6.110.0070.05721.01
5.6.100.0100.08021.00
5.6.90.0000.07720.97
5.6.80.0100.05320.38
5.5.300.0130.07317.94
5.5.290.0030.05718.05
5.5.280.0070.08720.79
5.5.270.0100.05320.75
5.5.260.0130.08720.86
5.5.250.0030.07020.46
5.5.240.0200.06320.17

preferences:
133.23 ms | 1398 KiB | 7 Q