3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $mi = array('q', 2 => 'w') + array(1,2,3,4); $mi = ++$mi; echo $mi; print_r($mi); die;
Output for 5.4.0 - 5.6.25, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Array to string conversion in /in/v0vFb on line 4 ArrayArray ( [0] => q [2] => w [1] => 2 [3] => 4 )
Output for 4.3.0 - 5.3.29
ArrayArray ( [0] => q [2] => w [1] => 2 [3] => 4 )