3v4l.org

run code in 300+ PHP versions simultaneously
<?php Class A { public function __call($method, $args){ // $test = &$args[0]; call_user_func_array(array($this, 'test'), $args); } protected function test(&$data) { $data = "done"; } } $data = 42; $a = new A(); $a->test(&$data); var_dump($data); die();

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.10.0030.08320.16
7.0.00.0000.04720.20
5.6.160.0000.04320.54
5.6.150.0030.04018.17
5.6.140.0030.08318.28
5.6.130.0100.07718.27
5.6.120.0070.05721.11
5.6.110.0130.07721.00
5.6.100.0000.04721.01
5.6.90.0100.08721.11
5.6.80.0070.05720.36
5.5.300.0130.07717.98
5.5.290.0070.08718.08
5.5.280.0030.08720.85
5.5.270.0030.04320.87
5.5.260.0170.07720.96
5.5.250.0070.08720.59
5.5.240.0170.07320.13

preferences:
140.01 ms | 1394 KiB | 7 Q