3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $pg = (file_get_contents("pets_articles/Pets/".$_GET['page'])); if(strpos($pg,'Body:')!==false) {$ii=strpos($pg,'Body:')+5;$hor = substr($pg, $ii);} else {$hor=$pg;} $hor = str_replace("\n", "<br>", $hor); echo $hor; ?>
Output for 5.3.0 - 7.1.0
Notice: Undefined index: page in /in/P9fdJ on line 2 Warning: file_get_contents(pets_articles/Pets/): failed to open stream: No such file or directory in /in/P9fdJ on line 2
Output for 4.3.2 - 5.2.17
Notice: Undefined index: page in /in/P9fdJ on line 2 Warning: file_get_contents(pets_articles/Pets/): failed to open stream: No such file or directory in /in/P9fdJ on line 2
Output for 4.3.0 - 4.3.1
Notice: Undefined index: page in /in/P9fdJ on line 2 Warning: file_get_contents(pets_articles/Pets/) [http://www.php.net/function.file-get-contents]: failed to create stream: No such file or directory in /in/P9fdJ on line 2