3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo shell_exec('cat '.$_GET['filename']); ?>
based on D1KC8
Output for 5.6.28, 7.0.20 - 7.2.0
Notice: Undefined index: filename in /in/ajU0M on line 3
Output for 5.4.0 - 5.6.25, 7.0.0 - 7.0.10
Notice: Undefined index: filename in /in/ajU0M on line 3 Warning: shell_exec(): Unable to execute 'cat ' in /in/ajU0M on line 3