3v4l.org

run code in 300+ PHP versions simultaneously
<?php Class Foo { Public function test():self { return $this; } } $foo = new Foo; $foo->test()

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.0030.06718.19
5.6.140.0130.06718.23
5.6.130.0130.07718.20
5.6.120.0100.08020.98
5.6.110.0070.08321.13
5.6.100.0070.06721.07
5.6.90.0100.07321.00
5.6.80.0030.04020.39
5.5.300.0130.07318.14
5.5.290.0030.06717.91
5.5.280.0030.09020.97
5.5.270.0170.08020.84
5.5.260.0100.08720.77
5.5.250.0130.06320.66
5.5.240.0130.03020.26

preferences:
140.47 ms | 1394 KiB | 7 Q