3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array(); $a[] = 1; $a += 2;
Output for 7.0.0 - 7.2.6
Fatal error: Uncaught Error: Unsupported operand types in /in/ieQmA:5 Stack trace: #0 {main} thrown in /in/ieQmA on line 5
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Invalid operand type was used: cannot perform this operation with arrays in /in/ieQmA on line 5
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Fatal error: Unsupported operand types in /in/ieQmA on line 5
Process exited with code 255.