3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo { function getSets() { return ['pizza'=>'bar']; } } class Bar { public $controller; function __construct() { $this->controller = new Foo; } function test echo ((object)((object)get_object_vars($this))->controller->getSets())->pizza; } } $b = new Bar; $b->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.4.180.0100.04812.40
5.4.170.0120.04712.40
5.4.160.0100.04812.40
5.4.150.0090.04712.39
5.4.140.0110.04712.09
5.4.130.0110.04512.07
5.4.120.0110.04612.03
5.4.110.0110.04512.03
5.4.100.0100.04812.03
5.4.90.0100.05312.03
5.4.80.0140.04612.03
5.4.70.0160.04212.02
5.4.60.0100.04312.02
5.4.50.0110.04012.02
5.4.40.0100.04712.01
5.4.30.0100.04212.01
5.4.20.0130.04812.00
5.4.10.0130.04112.00
5.4.00.0110.04211.50
5.3.270.0120.04712.72
5.3.260.0120.05012.72
5.3.250.0110.05012.72
5.3.240.0110.04512.72
5.3.230.0110.04912.71
5.3.220.0120.04612.68
5.3.210.0100.04912.68
5.3.200.0100.05012.68
5.3.190.0110.04612.68
5.3.180.0100.04512.68
5.3.170.0120.04612.67
5.3.160.0120.04812.67
5.3.150.0120.04312.67
5.3.140.0120.03912.66
5.3.130.0100.04412.66
5.3.120.0110.04812.66
5.3.110.0120.04912.66
5.3.100.0140.04412.12
5.3.90.0130.04612.10
5.3.80.0110.04712.09
5.3.70.0120.04412.09
5.3.60.0120.04512.07
5.3.50.0120.05812.02
5.3.40.0130.04312.02
5.3.30.0110.04511.98
5.3.20.0090.04511.76
5.3.10.0110.05011.73
5.3.00.0130.05611.71

preferences:
169.8 ms | 1394 KiB | 7 Q