3v4l.org

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