3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $fnc = create_function('$a', 'eval("\$GOLBALS[\'get\'] = $a;");'); function set1 ($value) { global $fnc; if(preg_match('/^[0-9]{1,9}$/D', $value) === 1) $fnc($value); } function get1 () { echo $GOLBALS['get']; } if (preg_match('/^.*1$/D', $_GET['set']) === 1) $_GET['set'](unserialize($_GET['parm1']));
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Undefined index: set in /in/6pqpZ on line 16
Output for 4.3.0 - 5.2.17
Notice: Undefined index: set in /in/6pqpZ on line 16