3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(0); $asd = "123"; ob_start(); eval ('?> <?php foreach(array("asd", "asx123") as $data): ?> <div><?php echo $data ?></div> <?php endforeach; ?> <?php;'); ob_flush();
Output for 5.4.0 - 7.1.0
<div>asd</div> <div>asx123</div>
Output for 4.3.0 - 5.3.29
<div>asd</div> <div>asx123</div> <?php;