3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr1 = array(1,1.3,'fdsfsd'); $arr2 = array(2,2.3,'3443'); echo $arr1+$arr2; print $arr1+$arr2; var_dump($arr2);print_r($arr1+$arr2);
Output for 5.4.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Notice: Array to string conversion in /in/Q6PfB on line 5 Array Notice: Array to string conversion in /in/Q6PfB on line 6 Arrayarray(3) { [0]=> int(2) [1]=> float(2.3) [2]=> string(4) "3443" } Array ( [0] => 1 [1] => 1.3 [2] => fdsfsd )
Output for 4.3.0 - 5.3.29
ArrayArrayarray(3) { [0]=> int(2) [1]=> float(2.3) [2]=> string(4) "3443" } Array ( [0] => 1 [1] => 1.3 [2] => fdsfsd )