3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var_3 = "var_4"; $var_2 = "var_3"; $var_1 = "var_2"; echo $var_1."\n"; echo $$var_2."\n"; echo $$$var_3."\n";
Output for 5.0.4 - 7.1.0
var_2 var_4 Notice: Undefined variable: var_4 in /in/gWAAc on line 8 Notice: Undefined variable: in /in/gWAAc on line 8
Output for 4.3.0 - 5.0.3
var_2 var_4 Notice: Undefined variable: var_4 in /in/gWAAc on line 8 Notice: Undefined variable: in /in/gWAAc on line 8