3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foobar { public function foo() { print __METHOD__ . PHP_EOL; } } $foo = new Foobar; var_dump(&$foo::foo());

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.2.40.0080.01119.60
7.2.30.0100.01019.66
7.2.20.0080.00919.71
7.2.10.0070.01019.69
7.2.00.0080.01119.76
7.1.160.0070.00918.48
7.1.150.0100.01218.47
7.1.140.0090.01018.46
7.1.130.0060.01518.61
7.1.120.0040.01118.38
7.1.110.0060.01217.89
7.1.100.0100.00917.83
7.1.90.0060.00917.80
7.1.80.0060.01018.00
7.1.70.0050.00816.86
7.1.60.0190.01335.07
7.1.50.0210.01334.62
7.1.40.0230.01634.18
7.1.30.0150.01934.41
7.1.20.0180.01434.24
7.1.10.0050.00816.57
7.1.00.0440.00914.63

preferences:
142.43 ms | 997 KiB | 7 Q