3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class strings { function fix_string($a) { var_dump(xdebug_get_function_stack()); } function fix_strings($b) { foreach ($b as $item) { $this->fix_string($item); } } } $s = new strings(); $ret = $s->fix_strings(array('Derick')); ?>
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function xdebug_get_function_stack() in /in/1A6ug:5 Stack trace: #0 /in/1A6ug(10): strings->fix_string('Derick') #1 /in/1A6ug(16): strings->fix_strings(Array) #2 {main} thrown in /in/1A6ug on line 5
Process exited with code 255.
Output for 5.0.0 - 5.6.28
Fatal error: Call to undefined function xdebug_get_function_stack() in /in/1A6ug on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: xdebug_get_function_stack() in /in/1A6ug on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: xdebug_get_function_stack() in /in/1A6ug on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: xdebug_get_function_stack() in /in/1A6ug on line 5