3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $argv=$__GET[0]; $offset = $argv[0]; // beware, no input validation! $query = $offset; echo $query; $offset='beware'; $query = $offset; echo $query; ?>
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: __GET in /in/KLcS1 on line 2 beware
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: __GET in /in/KLcS1 on line 2 beware