3v4l.org

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

preferences:
50.65 ms | 402 KiB | 5 Q