3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { public static function test() { var_dump(get_called_class()); // var_dump(get_deb // ug(true)); var_dump(debug_backtrace(true)); } } class bar extends foo { } foo::test(); bar::test(); class_alias('bar', 'baz'); baz::test();
Output for git.master, git.master_jit, rfc.property-hooks
string(3) "foo" array(1) { [0]=> array(6) { ["file"]=> string(9) "/in/OvCWJ" ["line"]=> int(17) ["function"]=> string(4) "test" ["class"]=> string(3) "foo" ["type"]=> string(2) "::" ["args"]=> array(0) { } } } string(3) "bar" array(1) { [0]=> array(6) { ["file"]=> string(9) "/in/OvCWJ" ["line"]=> int(18) ["function"]=> string(4) "test" ["class"]=> string(3) "foo" ["type"]=> string(2) "::" ["args"]=> array(0) { } } } string(3) "bar" array(1) { [0]=> array(6) { ["file"]=> string(9) "/in/OvCWJ" ["line"]=> int(20) ["function"]=> string(4) "test" ["class"]=> string(3) "foo" ["type"]=> string(2) "::" ["args"]=> array(0) { } } }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
44.12 ms | 403 KiB | 8 Q