3v4l.org

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