3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo __FILE__; echo file_get_contents(index.php); ?>
based on Xci7Z
Output for 7.2.0
/in/hYeDi Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in /in/hYeDi on line 4 Warning: Use of undefined constant php - assumed 'php' (this will throw an Error in a future version of PHP) in /in/hYeDi on line 4 Warning: file_get_contents(indexphp): failed to open stream: No such file or directory in /in/hYeDi on line 4
Output for 5.3.21 - 7.1.10
/in/hYeDi Notice: Use of undefined constant index - assumed 'index' in /in/hYeDi on line 4 Notice: Use of undefined constant php - assumed 'php' in /in/hYeDi on line 4 Warning: file_get_contents(indexphp): failed to open stream: No such file or directory in /in/hYeDi on line 4