3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $aMeters = array(); $aMeters[0] += array('meter_maintenance_code' => 'MQ'); $aMeters[0] += array( 'meter_number' => 'ALL', 'esp_rate_code' => $this->aCustoms['esp_rate_code'] ); var_dump($aMeters);
Output for 7.0.0 - 7.1.0
Notice: Undefined offset: 0 in /in/gQM1o on line 3 Fatal error: Uncaught Error: Unsupported operand types in /in/gQM1o:3 Stack trace: #0 {main} thrown in /in/gQM1o on line 3
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Fatal error: Invalid operand type was used: cannot perform this operation with arrays in /in/gQM1o on line 3
Process exited with code 255.
Output for 5.3.0 - 5.6.25
Notice: Undefined offset: 0 in /in/gQM1o on line 3 Fatal error: Unsupported operand types in /in/gQM1o on line 3
Process exited with code 255.
Output for 4.3.2 - 5.2.17
Notice: Undefined offset: 0 in /in/gQM1o on line 3 Fatal error: Unsupported operand types in /in/gQM1o on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Undefined offset: 0 in /in/gQM1o on line 3 Fatal error: Unsupported operand types in /in/gQM1o on line 3