3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php //Teams $teams = array( "fnatic" => array( title => "Fnatic", teamLocation => "Sweden" ), "tsm" => array( title => "TSM", teamLocation => "Denmark" ), "envyus" => array( title => "EnvyUs", teamLocation => "France" ), ); ?> <?php define('TITLE', 'PROS | CSGOPLAYER CONFIGS'); ?> <div class="container-fluid"> <div class="row"> <div class="well"> <?php foreach ($teams as $team => $item) { ?> <h1><a href="team.php?item=<?php echo $team; ?>"><?php echo $item[title]; ?></h1> <p><?php echo $item[teamLocation];?></p> <?php } ?> </div> </div> </div><!--Contect-->
Output for 7.2.0
Warning: Use of undefined constant title - assumed 'title' (this will throw an Error in a future version of PHP) in /in/sNno1 on line 5 Warning: Use of undefined constant teamLocation - assumed 'teamLocation' (this will throw an Error in a future version of PHP) in /in/sNno1 on line 6 Warning: Use of undefined constant title - assumed 'title' (this will throw an Error in a future version of PHP) in /in/sNno1 on line 9 Warning: Use of undefined constant teamLocation - assumed 'teamLocation' (this will throw an Error in a future version of PHP) in /in/sNno1 on line 10 Warning: Use of undefined constant title - assumed 'title' (this will throw an Error in a future version of PHP) in /in/sNno1 on line 14 Warning: Use of undefined constant teamLocation - assumed 'teamLocation' (this will throw an Error in a future version of PHP) in /in/sNno1 on line 15 <div class="container-fluid"> <div class="row"> <div class="well"> <h1><a href="team.php?item=fnatic"> Warning: Use of undefined constant title - assumed 'title' (this will throw an Error in a future version of PHP) in /in/sNno1 on line 28 Fnatic</h1> <p> Warning: Use of undefined constant teamLocation - assumed 'teamLocation' (this will throw an Error in a future version of PHP) in /in/sNno1 on line 29 Sweden</p> <h1><a href="team.php?item=tsm"> Warning: Use of undefined constant title - assumed 'title' (this will throw an Error in a future version of PHP) in /in/sNno1 on line 28 TSM</h1> <p> Warning: Use of undefined constant teamLocation - assumed 'teamLocation' (this will throw an Error in a future version of PHP) in /in/sNno1 on line 29 Denmark</p> <h1><a href="team.php?item=envyus"> Warning: Use of undefined constant title - assumed 'title' (this will throw an Error in a future version of PHP) in /in/sNno1 on line 28 EnvyUs</h1> <p> Warning: Use of undefined constant teamLocation - assumed 'teamLocation' (this will throw an Error in a future version of PHP) in /in/sNno1 on line 29 France</p> </div> </div> </div><!--Contect-->
Output for 5.3.18 - 7.1.10
Notice: Use of undefined constant title - assumed 'title' in /in/sNno1 on line 5 Notice: Use of undefined constant teamLocation - assumed 'teamLocation' in /in/sNno1 on line 6 Notice: Use of undefined constant title - assumed 'title' in /in/sNno1 on line 9 Notice: Use of undefined constant teamLocation - assumed 'teamLocation' in /in/sNno1 on line 10 Notice: Use of undefined constant title - assumed 'title' in /in/sNno1 on line 14 Notice: Use of undefined constant teamLocation - assumed 'teamLocation' in /in/sNno1 on line 15 <div class="container-fluid"> <div class="row"> <div class="well"> <h1><a href="team.php?item=fnatic"> Notice: Use of undefined constant title - assumed 'title' in /in/sNno1 on line 28 Fnatic</h1> <p> Notice: Use of undefined constant teamLocation - assumed 'teamLocation' in /in/sNno1 on line 29 Sweden</p> <h1><a href="team.php?item=tsm"> Notice: Use of undefined constant title - assumed 'title' in /in/sNno1 on line 28 TSM</h1> <p> Notice: Use of undefined constant teamLocation - assumed 'teamLocation' in /in/sNno1 on line 29 Denmark</p> <h1><a href="team.php?item=envyus"> Notice: Use of undefined constant title - assumed 'title' in /in/sNno1 on line 28 EnvyUs</h1> <p> Notice: Use of undefined constant teamLocation - assumed 'teamLocation' in /in/sNno1 on line 29 France</p> </div> </div> </div><!--Contect-->