3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function strict() { $backtrace = debug_backtrace(0, 1); print_r($backtrace); } function myargs($a, $b) { strict('string', 'int'); echo 'Hello'; } myargs('hello', 4);
based on sDJan
Output for 5.4.2 - 7.2.0
Array ( [0] => Array ( [file] => /in/HRD8X [line] => 11 [function] => strict [args] => Array ( [0] => string [1] => int ) ) ) Hello
Output for 5.3.18 - 5.3.29
Warning: debug_backtrace() expects at most 1 parameter, 2 given in /in/HRD8X on line 5 Hello