3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $publicProperty = array(); } class Bar { public function __construct(Foo $foo) { $this->wrapped = $foo; } public function & __get($name) { return & $this->wrapped->$name; } } $bar = new Bar(new Foo()); $bar->publicProperty['example'] = 'Hello World!'; var_dump($bar->publicProperty);

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.4.160.0140.05712.39
5.4.150.0150.05312.39
5.4.140.0140.06412.08
5.4.130.0150.06512.06
5.4.120.0110.04912.02
5.4.110.0170.06112.02
5.4.100.0160.06312.02
5.4.90.0130.05012.02
5.4.80.0120.05212.02
5.4.70.0140.05312.02
5.4.60.0170.05512.02
5.4.50.0150.06612.01
5.4.40.0160.05412.01
5.4.30.0160.07012.00
5.4.20.0160.06312.00
5.4.10.0160.06212.00
5.4.00.0100.05211.50
5.3.260.0130.06112.72
5.3.250.0620.05913.09
5.3.240.0190.06712.72
5.3.230.0170.05712.71
5.3.220.0150.06112.68
5.3.210.0170.06612.68
5.3.200.0270.05512.68
5.3.190.0130.04912.68
5.3.180.0170.05512.67
5.3.170.0330.05912.67
5.3.160.0170.06012.67
5.3.150.0180.05612.67
5.3.140.0210.06012.66
5.3.130.0200.06312.66
5.3.120.0130.05212.66
5.3.110.0180.06312.66
5.3.100.0210.06912.12
5.3.90.0180.05812.10
5.3.80.0120.04912.09
5.3.70.0180.06412.09
5.3.60.0140.06112.08
5.3.50.0130.05212.02
5.3.40.0200.05912.02
5.3.30.0180.05011.98
5.3.20.0140.05911.76
5.3.10.0180.05411.73
5.3.00.0170.05611.71

preferences:
140.75 ms | 1394 KiB | 7 Q