3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { private $bla = ''; public function __construct(){ $this->bla = "fooooo"; } public function __invoke($arg){ $this->bla = $arg + $this->bla; } } Class Foo2 extends Foo { } $blubb = new Foo2(); $blubb("bla"); var_dump()

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.0300.08020.02
7.0.10.0100.05719.99
7.0.00.0030.05720.12
5.6.170.0300.07320.51
5.6.160.0030.04020.46
5.6.150.0130.07318.25
5.6.140.0100.08018.14
5.6.130.0070.07018.15
5.6.120.0070.03721.01
5.6.110.0200.05320.99
5.6.100.0030.06320.98
5.6.90.0000.07721.13
5.6.80.0030.06020.39
5.5.310.0230.05020.51
5.5.300.0000.04017.95
5.5.290.0130.04018.04
5.5.280.0170.05720.80
5.5.270.0100.08020.77
5.5.260.0070.05320.76
5.5.250.0100.03320.59
5.5.240.0270.06320.13

preferences:
127.72 ms | 1398 KiB | 7 Q