3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(); $a += 'qwe'; print_r($a);
Output for 7.1.0 - 7.2.12
Warning: A non-numeric value encountered in /in/IHec5 on line 5 Fatal error: Uncaught Error: Unsupported operand types in /in/IHec5:5 Stack trace: #0 {main} thrown in /in/IHec5 on line 5
Process exited with code 255.
Output for 7.0.0 - 7.0.32
Fatal error: Uncaught Error: Unsupported operand types in /in/IHec5:5 Stack trace: #0 {main} thrown in /in/IHec5 on line 5
Process exited with code 255.
Output for hhvm-3.22.0
Fatal error: Invalid operand type was used: cannot perform this operation with arrays in /in/IHec5 on line -1
Process exited with code 255.
Output for hhvm-3.10.1 - 3.21.3
Fatal error: Invalid operand type was used: cannot perform this operation with arrays in /in/IHec5 on line 5
Process exited with code 255.
Output for 5.3.18 - 5.6.38
Fatal error: Unsupported operand types in /in/IHec5 on line 5
Process exited with code 255.