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: p in /in/R5EY2 on line 5 /in/R5EY2beware
Output for 4.3.2 - 5.2.17
Notice: Undefined index: p in /in/R5EY2 on line 5 /in/R5EY2beware
Output for 4.3.0 - 4.3.1
Notice: Undefined index: p in /in/R5EY2 on line 5 Notice: Undefined variable: argv in /in/R5EY2 on line 8 beware