3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $row = array(1, 2, 3, 4); foreach ($row as $a) { echo chr(64 + $a) .' '; } /* echo " <h2>question</h2> <p>".chr(64 + $row[0])."</p> <h2>answer</h2> <p>".chr(64 + $row[1])."</p>"; */
based on 4eBnL
Output for 4.3.0 - 7.2.0
A B C D