3v4l.org

run code in 300+ PHP versions simultaneously
<?php function ref(&$ref) { var_dump($ref); } class a { function __construct() { $args = array(&$this); for ($i = 0; $i < 2; $i++) { $a = array_slice($args, 0, 1); call_user_func_array('ref', $a); } } }; new a();
Output for git.master, git.master_jit, rfc.property-hooks
Warning: ref(): Argument #1 ($ref) must be passed by reference, value given in /in/MCmnj on line 12 object(a)#1 (0) { } Warning: ref(): Argument #1 ($ref) must be passed by reference, value given in /in/MCmnj on line 12 object(a)#1 (0) { }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
60.22 ms | 401 KiB | 8 Q