3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $row = array(1, 2, 3, 4); echo " <h2>question</h2> <p>".('A' - 1 + $row[0])."</p> <h2>answer</h2> <p>".('A' - 1 + $row[1])."</p>";
Output for 7.1.0
Warning: A non-numeric value encountered in /in/4f4Ra on line 6 Warning: A non-numeric value encountered in /in/4f4Ra on line 8 <h2>question</h2> <p>0</p> <h2>answer</h2> <p>1</p>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.14
<h2>question</h2> <p>0</p> <h2>answer</h2> <p>1</p>