3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $row = array(1, 2, 3, 4); echo " <h2>question</h2> <p>".chr(64 + $row)."</p> <h2>answer</h2> <p>".chr(64 + $row)."</p>";
based on 4eBnL
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Unsupported operand types in /in/nUc9r:6 Stack trace: #0 {main} thrown in /in/nUc9r on line 6
Process exited with code 255.
Output for 5.3.18 - 5.6.28
Fatal error: Unsupported operand types in /in/nUc9r on line 6
Process exited with code 255.