3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { public static function bar() { self::trace(); } private static function trace() { $trace = debug_backtrace(); foreach ($trace as $step) { echo implode('', [ $step['class'], $step['type'], $step['function'] ]); } } } $foo = new Foo; $foo::bar();
based on lGBmp
Output for 5.4.0 - 7.2.0
Foo::traceFoo::bar