3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public static function bar($baz = microtime(true)) { echo $baz; } } Foo::bar(); Foo::bar('sup');

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.20.0400.06720.27
7.0.10.0070.04020.23
7.0.00.0130.07720.30
5.6.170.0230.08020.71
5.6.160.0130.05720.48
5.6.150.0100.08018.25
5.6.140.0100.06018.17
5.6.130.0130.05018.14
5.6.120.0100.05020.98
5.6.110.0170.07721.12
5.6.100.0070.04021.11
5.6.90.0100.06720.98
5.6.80.0030.07720.29
5.5.310.0200.07320.30
5.5.300.0000.04018.01
5.5.290.0000.05018.08
5.5.280.0070.03720.98
5.5.270.0030.04320.79
5.5.260.0100.08320.84
5.5.250.0100.07720.50
5.5.240.0300.06720.15

preferences:
140.38 ms | 1394 KiB | 7 Q