3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private static function fooStaticMethod() { return function (Foo $foo) { $foo->fooMethod(); } } private function fooMethod() { var_dump('foo'); } } $cb = Foo::fooStaticMethod(); $cb(new 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)
5.6.160.0100.05320.43
5.6.150.0130.07718.19
5.6.140.0000.04018.11
5.6.130.0030.08718.18
5.6.120.0030.04720.91
5.6.110.0070.03720.97
5.6.100.0130.07721.12
5.6.90.0130.03721.14
5.6.80.0100.07720.39
5.5.300.0130.07317.96
5.5.290.0130.08018.08
5.5.280.0000.04320.98
5.5.270.0170.06720.80
5.5.260.0070.06720.84
5.5.250.0100.08320.78
5.5.240.0200.04320.27

preferences:
139 ms | 1394 KiB | 7 Q