3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Fatal error: Uncaught Error: Undefined constant "title" in /in/sNno1:5 Stack trace: #0 {main} thrown in /in/sNno1 on line 5
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
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.4.2 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25
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-->

preferences:
233.42 ms | 405 KiB | 237 Q