3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $row = array(moore); echo " <h2>question</h2> <p>".chr(64 + $row[0])."</p> <h2>answer</h2> <p>".chr(64 + $row[1])."</p>";
based on 4eBnL
Output for 7.2.0
Warning: Use of undefined constant moore - assumed 'moore' (this will throw an Error in a future version of PHP) in /in/KS7ji on line 2 Warning: A non-numeric value encountered in /in/KS7ji on line 6 Notice: Undefined offset: 1 in /in/KS7ji on line 8 <h2>question</h2> <p>@</p> <h2>answer</h2> <p>@</p>
Output for 7.1.0 - 7.1.10
Notice: Use of undefined constant moore - assumed 'moore' in /in/KS7ji on line 2 Warning: A non-numeric value encountered in /in/KS7ji on line 6 Notice: Undefined offset: 1 in /in/KS7ji on line 8 <h2>question</h2> <p>@</p> <h2>answer</h2> <p>@</p>
Output for 5.3.21 - 7.0.20
Notice: Use of undefined constant moore - assumed 'moore' in /in/KS7ji on line 2 Notice: Undefined offset: 1 in /in/KS7ji on line 8 <h2>question</h2> <p>@</p> <h2>answer</h2> <p>@</p>