3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php include 'champ_names.php'; $html = null; for ($i = 1; $i <=10; $i++) { $html .= '<li> <a href="'.$champName[$i].'.png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name">'. $champName[$i] . '</h5></a></li>'; } echo '<div id="champions-grid"> <input type="text" id="search-champ" placeholder="Search"> <ul id="lit">' . $html . '</ul> </div>';
Output for 7.1.20, 7.2.6
Warning: include(): open_basedir restriction in effect. File(champ_names.php) is not within the allowed path(s): (/tmp:/in) in /in/Puu2M on line 3 Warning: include(champ_names.php): failed to open stream: Operation not permitted in /in/Puu2M on line 3 Warning: include(): Failed opening 'champ_names.php' for inclusion (include_path='.:') in /in/Puu2M on line 3 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 <div id="champions-grid"> <input type="text" id="search-champ" placeholder="Search"> <ul id="lit"><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li></ul> </div>
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.10, 7.2.0
Warning: include(champ_names.php): failed to open stream: No such file or directory in /in/Puu2M on line 3 Warning: include(): Failed opening 'champ_names.php' for inclusion (include_path='.:') in /in/Puu2M on line 3 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 <div id="champions-grid"> <input type="text" id="search-champ" placeholder="Search"> <ul id="lit"><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li></ul> </div>
Output for hhvm-3.15.4
Warning: include(champ_names.php): File not found in /in/Puu2M on line 3 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 Notice: Undefined variable: champName in /in/Puu2M on line 6 <div id="champions-grid"> <input type="text" id="search-champ" placeholder="Search"> <ul id="lit"><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li><li> <a href=".png"> <img class="small" src="http://127.0.0.1/mediawiki/images/c/cd/Blossom.png"> <h5 class="name"></h5></a></li></ul> </div>