3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $fname='p'; $name = $_POST['fname']; $offset = $argv[0]; // beware, no input validation! $query = $offset; echo $query; $offset='beware'; $query = $offset; echo $query; ?>
Output for 5.3.0 - 7.1.0
Notice: Undefined index: fname in /in/J6Mgj on line 5 /in/J6Mgjbeware
Output for 4.3.2 - 5.2.17
Notice: Undefined index: fname in /in/J6Mgj on line 5 /in/J6Mgjbeware
Output for 4.3.0 - 4.3.1
Notice: Undefined index: fname in /in/J6Mgj on line 5 Notice: Undefined variable: argv in /in/J6Mgj on line 8 beware