3v4l.org

run code in 200+ 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 7.2.0
Deprecated: Function create_function() is deprecated in /in/6pqpZ on line 3 Notice: Undefined index: set in /in/6pqpZ on line 16
Output for 5.3.0 - 7.1.10
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