3v4l.org

run code in 300+ PHP versions simultaneously
<?php class c { function test() { c::x(); } static function x() { var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS)[0]['type'] == '->'); var_dump(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS)); var_dump(isset($this)); } }; $x = new c; $x->test();
Output for git.master, git.master_jit, rfc.property-hooks
bool(false) array(2) { [0]=> array(5) { ["file"]=> string(9) "/in/J4fPp" ["line"]=> int(5) ["function"]=> string(1) "x" ["class"]=> string(1) "c" ["type"]=> string(2) "::" } [1]=> array(5) { ["file"]=> string(9) "/in/J4fPp" ["line"]=> int(14) ["function"]=> string(4) "test" ["class"]=> string(1) "c" ["type"]=> string(2) "->" } } bool(false)

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:
34.5 ms | 402 KiB | 8 Q