3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Example { public function foo() { show_backtrace(); } } function show_backtrace() { echo "No options:\n"; print_r(debug_backtrace(0)); echo "\n\nObject:\n"; print_r(debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT)); echo "\n\nNo args:\n"; print_r(debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS)); echo "\n\nObject, no args:\n"; print_r(debug_backtrace(DEBUG_BACKTRACE_PROVIDE_OBJECT | DEBUG_BACKTRACE_IGNORE_ARGS)); } $e = new Example(); $e->foo();
Output for git.master, git.master_jit, rfc.property-hooks
No options: Array ( [0] => Array ( [file] => /in/qj87i [line] => 4 [function] => show_backtrace [args] => Array ( ) ) [1] => Array ( [file] => /in/qj87i [line] => 19 [function] => foo [class] => Example [type] => -> [args] => Array ( ) ) ) Object: Array ( [0] => Array ( [file] => /in/qj87i [line] => 4 [function] => show_backtrace [args] => Array ( ) ) [1] => Array ( [file] => /in/qj87i [line] => 19 [function] => foo [class] => Example [object] => Example Object ( ) [type] => -> [args] => Array ( ) ) ) No args: Array ( [0] => Array ( [file] => /in/qj87i [line] => 4 [function] => show_backtrace ) [1] => Array ( [file] => /in/qj87i [line] => 19 [function] => foo [class] => Example [type] => -> ) ) Object, no args: Array ( [0] => Array ( [file] => /in/qj87i [line] => 4 [function] => show_backtrace ) [1] => Array ( [file] => /in/qj87i [line] => 19 [function] => foo [class] => Example [object] => Example Object ( ) [type] => -> ) )

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:
55.71 ms | 405 KiB | 8 Q