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 $arr.'>'.$arr2; var_dump($arr2);print_r($arr1);
Output for 5.4.0 - 7.1.0
Notice: Array to string conversion in /in/8lVWG on line 5 Array Notice: Array to string conversion in /in/8lVWG on line 5 >Array Notice: Undefined variable: arr in /in/8lVWG on line 6 Notice: Array to string conversion in /in/8lVWG 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 5.0.4 - 5.3.29
Array>Array Notice: Undefined variable: arr in /in/8lVWG 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.0.3
Array>Array Notice: Undefined variable: arr in /in/8lVWG on line 6 >Arrayarray(3) { [0]=> int(2) [1]=> float(2.3) [2]=> string(4) "3443" } Array ( [0] => 1 [1] => 1.3 [2] => fdsfsd )