<?php namespace { function &call_user_func_array_userland($callable, array $args) { return $callable(...$args); } } namespace Bar { $foo = 'foo'; $bar = &call_user_func_array_userland(function &() use (&$foo) { return $foo; }, []); $bar = 'bar'; echo $foo . PHP_EOL; }
You have javascript disabled. You will not be able to edit any code.