3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php namespace Ololo\Pyshpysh\Really; function test_namespaced_function() { } foreach (get_defined_functions() as $type => $definedFunctionNames) { foreach ($definedFunctionNames as $definedFunctionName) { print("$definedFunctionName\n"); if (false !== $namespaceSeparatorIndex = strrpos($definedFunctionName, '\\')) { $definedFunctionNameBasename = substr($definedFunctionName, $namespaceSeparatorIndex + 1); } else { $definedFunctionNameBasename = $definedFunctionName; } if ($definedFunctionNameBasename === "test_namespaced_function") { print('\\'.$definedFunctionName."\n"); } } }