3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $_POST['one'] = '1 rabbit'; $_POST['two'] = '2 rabbit'; $_POST['three'] = '3 rabbit'; foreach ($_POST as $var => $value) { if (isset($$var)) { continue; } var_dump($var); } var_dump($one); var_dump($two); var_dump($three);
based on fpOrk
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc3
string(3) "one" string(3) "two" string(5) "three" Notice: Undefined variable: one in /in/kIDVb on line 13 NULL Notice: Undefined variable: two in /in/kIDVb on line 14 NULL Notice: Undefined variable: three in /in/kIDVb on line 15 NULL