3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php foreach ($informations as $information) { ?> <pre><?php print_r($information);?></pre> <li><a href="<?php echo $information['href']; ?>"><?php echo $information['title']; ?></a></li> <?php } ?>
Output for 5.1.0 - 5.6.30, 7.0.0 - 7.1.7
Notice: Undefined variable: informations in /in/HaMg0 on line 1 Warning: Invalid argument supplied for foreach() in /in/HaMg0 on line 1
Output for hhvm-3.10.1 - 3.17.3
Notice: Undefined variable: informations in /in/HaMg0 on line 4 Warning: Invalid argument supplied for foreach() in /in/HaMg0 on line 4
Output for 4.3.0 - 4.3.10, 4.4.0 - 5.0.5
Warning: Invalid argument supplied for foreach() in /in/HaMg0 on line 1
Output for 4.3.11