3v4l.org

run code in 300+ PHP versions simultaneously
<?php $calledby = debug_backtrace(); print_r($calledby); // does not work $caller = (strlen($calledby[1]['class'])) ? $calledby[1]['class'] : $calledby[0]['class']; // works and does does not segfault if (strlen($calledby[1]['class'])) $caller = $calledby[1]['class']; else $caller = $calledby[0]['class']; # arguments are required if (!func_num_args()) { return; } # fill variables with argument contents if exists $variables = (func_num_args() == 0) ? NULL : (is_array(func_get_arg(0)) ? func_get_arg(0) : NULL);
Output for git.master, git.master_jit
Array ( ) Warning: Undefined array key 1 in /in/vVmrH on line 4 Warning: Trying to access array offset on value of type null in /in/vVmrH on line 4 Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /in/vVmrH on line 4 Warning: Undefined array key 0 in /in/vVmrH on line 4 Warning: Trying to access array offset on value of type null in /in/vVmrH on line 4 Warning: Undefined array key 1 in /in/vVmrH on line 6 Warning: Trying to access array offset on value of type null in /in/vVmrH on line 6 Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /in/vVmrH on line 6 Warning: Undefined array key 0 in /in/vVmrH on line 7 Warning: Trying to access array offset on value of type null in /in/vVmrH on line 7 Fatal error: Uncaught Error: func_num_args() must be called from a function context in /in/vVmrH:10 Stack trace: #0 /in/vVmrH(10): func_num_args() #1 {main} thrown in /in/vVmrH on line 10
Process exited with code 255.
Output for rfc.property-hooks
Array ( ) Warning: Undefined array key 1 in /in/vVmrH on line 4 Warning: Trying to access array offset on null in /in/vVmrH on line 4 Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /in/vVmrH on line 4 Warning: Undefined array key 0 in /in/vVmrH on line 4 Warning: Trying to access array offset on null in /in/vVmrH on line 4 Warning: Undefined array key 1 in /in/vVmrH on line 6 Warning: Trying to access array offset on null in /in/vVmrH on line 6 Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in /in/vVmrH on line 6 Warning: Undefined array key 0 in /in/vVmrH on line 7 Warning: Trying to access array offset on null in /in/vVmrH on line 7 Fatal error: Uncaught Error: func_num_args() must be called from a function context in /in/vVmrH:10 Stack trace: #0 /in/vVmrH(10): func_num_args() #1 {main} thrown in /in/vVmrH on line 10
Process exited with code 255.

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