3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function f($x) { unset($x); eval('var_dump(debug_backtrace());'); } f(10);
Output for 7.1.10 - 7.2.0
array(2) { [0]=> array(3) { ["file"]=> string(9) "/in/0thhK" ["line"]=> int(5) ["function"]=> string(4) "eval" } [1]=> array(4) { ["file"]=> string(9) "/in/0thhK" ["line"]=> int(8) ["function"]=> string(1) "f" ["args"]=> array(1) { [0]=> NULL } } }
Output for 7.0.0 - 7.1.7
array(2) { [0]=> array(3) { ["file"]=> string(9) "/in/0thhK" ["line"]=> int(5) ["function"]=> string(4) "eval" } [1]=> array(4) { ["file"]=> string(9) "/in/0thhK" ["line"]=> int(8) ["function"]=> string(1) "f" ["args"]=> array(0) { } } }
Output for 4.3.0 - 5.6.28
array(2) { [0]=> array(3) { ["file"]=> string(9) "/in/0thhK" ["line"]=> int(5) ["function"]=> string(4) "eval" } [1]=> array(4) { ["file"]=> string(9) "/in/0thhK" ["line"]=> int(8) ["function"]=> string(1) "f" ["args"]=> array(1) { [0]=> &int(10) } } }