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-->
based on sNno1
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/eABMG on line 5 Warning: Use of undefined constant teamLocation - assumed 'teamLocation' (this will throw an Error in a future version of PHP) in /in/eABMG on line 6 Warning: Use of undefined constant title - assumed 'title' (this will throw an Error in a future version of PHP) in /in/eABMG on line 9 Warning: Use of undefined constant teamLocation - assumed 'teamLocation' (this will throw an Error in a future version of PHP) in /in/eABMG on line 10 Warning: Use of undefined constant title - assumed 'title' (this will throw an Error in a future version of PHP) in /in/eABMG on line 14 Warning: Use of undefined constant teamLocation - assumed 'teamLocation' (this will throw an Error in a future version of PHP) in /in/eABMG on line 15 <div class="container-fluid"> <div class="row"> <div class="well"> <h1><a href="team.php?item=fnatic">Fnatic</h1> <p>Sweden</p> <h1><a href="team.php?item=tsm">TSM</h1> <p>Denmark</p> <h1><a href="team.php?item=envyus">EnvyUs</h1> <p>France</p> </div> </div> </div><!--Contect-->
Output for 5.3.18 - 7.1.10
Notice: Use of undefined constant title - assumed 'title' in /in/eABMG on line 5 Notice: Use of undefined constant teamLocation - assumed 'teamLocation' in /in/eABMG on line 6 Notice: Use of undefined constant title - assumed 'title' in /in/eABMG on line 9 Notice: Use of undefined constant teamLocation - assumed 'teamLocation' in /in/eABMG on line 10 Notice: Use of undefined constant title - assumed 'title' in /in/eABMG on line 14 Notice: Use of undefined constant teamLocation - assumed 'teamLocation' in /in/eABMG on line 15 <div class="container-fluid"> <div class="row"> <div class="well"> <h1><a href="team.php?item=fnatic">Fnatic</h1> <p>Sweden</p> <h1><a href="team.php?item=tsm">TSM</h1> <p>Denmark</p> <h1><a href="team.php?item=envyus">EnvyUs</h1> <p>France</p> </div> </div> </div><!--Contect-->