3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $packagesTemp = array(); $packages = ['a', 'b', 'c']; $packagesTemp += $packages[0]; print_r($packagesTemp);
Output for 7.1.0 - 7.2.0
Warning: A non-numeric value encountered in /in/jCQZe on line 7 Fatal error: Uncaught Error: Unsupported operand types in /in/jCQZe:7 Stack trace: #0 {main} thrown in /in/jCQZe on line 7
Process exited with code 255.
Output for 7.0.0 - 7.0.20
Fatal error: Uncaught Error: Unsupported operand types in /in/jCQZe:7 Stack trace: #0 {main} thrown in /in/jCQZe on line 7
Process exited with code 255.
Output for 5.5.0 - 5.6.28
Fatal error: Unsupported operand types in /in/jCQZe on line 7
Process exited with code 255.