3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { public $bar = array('aaa' => array('bbb', 'ccc')) public function __get($value) { return $this->bar[$value]; // don't know what to implement here } } $obj = new Foo(); $obj->aaa['bbb']; // should return 'ccc'

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.90.0030.05716.67
5.4.80.0070.04716.36
5.4.70.0100.07316.52
5.4.60.0070.06716.37
5.4.50.0100.03016.27
5.4.40.0030.06016.25
5.4.30.0030.04016.41
5.4.20.0100.06716.38
5.4.10.0070.04716.44
5.4.00.0000.06315.76
5.3.190.0000.08314.62
5.3.180.0030.07714.55
5.3.170.0000.06314.55
5.3.160.0100.07014.72
5.3.150.0030.05014.61
5.3.140.0030.05014.71
5.3.130.0100.07314.54
5.3.120.0130.06714.57
5.3.110.0070.04714.69
5.3.100.0070.07014.05
5.3.90.0000.05714.01
5.3.80.0070.07313.93
5.3.70.0030.05014.03
5.3.60.0100.04013.92
5.3.50.0000.07014.01
5.3.40.0030.04713.96
5.3.30.0100.07313.94
5.3.20.0100.07013.69
5.3.10.0030.03713.54
5.3.00.0100.04713.66

preferences:
143.95 ms | 1394 KiB | 7 Q