3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public $test = 1; public function test() { return $this; } public function test2() { return clone $this; } } $a = new A; $b = $a->test(); $b->test = 2; var_dump($b->test); $c = $->test2(); $c->test = 3; var_dump($c->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)
7.0.00.0130.08020.25
5.6.160.0100.06320.48
5.6.150.0100.08018.19
5.6.140.0070.08318.14
5.6.130.0030.04318.28
5.6.120.0170.07720.99
5.6.110.0030.04721.09
5.6.100.0030.08721.03
5.6.90.0170.08020.98
5.6.80.0070.08020.50
5.5.300.0030.04018.08
5.5.290.0130.03018.07
5.5.280.0070.05320.76
5.5.270.0030.04020.73
5.5.260.0000.06020.85
5.5.250.0100.05320.59
5.5.240.3900.03320.17

preferences:
139.62 ms | 1394 KiB | 7 Q