3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $controller = 'some_name'; $$controller = function() { echo "hi"; }; function something() { // call some_name() here call_user_func('some_name'); } something();
based on IRi2G
Output for 5.6.0 - 5.6.30, 7.1.0 - 7.2.6
Warning: call_user_func() expects parameter 1 to be a valid callback, function 'some_name' not found or invalid function name in /in/tgoQp on line 12
Output for hhvm-3.22.0
Warning: Invalid argument: function: method 'some_name' not found in /in/tgoQp on line -1
Output for hhvm-3.18.5 - 3.21.3
Warning: Invalid argument: function: method 'some_name' not found in /in/tgoQp on line 12