3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php 0; $offset = $argv[0]; // beware, no input validation! $query = $offset; echo $query; 0; $offset='beware'; $query = $offset; echo $query; ?>
Output for 4.3.2 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
/in/r24ksbeware
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: argv in /in/r24ks on line 5 beware