3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(12, 13); $b = array(14, 15); print_r($a + b);
Output for 7.2.0 - 7.2.6
Warning: Use of undefined constant b - assumed 'b' (this will throw an Error in a future version of PHP) in /in/OYoQD on line 5 Warning: A non-numeric value encountered in /in/OYoQD on line 5 Fatal error: Uncaught Error: Unsupported operand types in /in/OYoQD:5 Stack trace: #0 {main} thrown in /in/OYoQD on line 5
Process exited with code 255.
Output for 7.1.0 - 7.1.20
Notice: Use of undefined constant b - assumed 'b' in /in/OYoQD on line 5 Warning: A non-numeric value encountered in /in/OYoQD on line 5 Fatal error: Uncaught Error: Unsupported operand types in /in/OYoQD:5 Stack trace: #0 {main} thrown in /in/OYoQD on line 5
Process exited with code 255.
Output for 7.0.0 - 7.0.20
Notice: Use of undefined constant b - assumed 'b' in /in/OYoQD on line 5 Fatal error: Uncaught Error: Unsupported operand types in /in/OYoQD:5 Stack trace: #0 {main} thrown in /in/OYoQD on line 5
Process exited with code 255.
Output for 4.3.2 - 5.6.28
Notice: Use of undefined constant b - assumed 'b' in /in/OYoQD on line 5 Fatal error: Unsupported operand types in /in/OYoQD on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant b - assumed 'b' in /in/OYoQD on line 5 Fatal error: Unsupported operand types in /in/OYoQD on line 5