3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = Array(1,2); $show = print_r($arr); echo $arr;
based on YQJoT
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.21.3, 7.0.0 - 7.3.0beta1
Array ( [0] => 1 [1] => 2 ) Notice: Array to string conversion in /in/2Ni5K on line 5 Array
Output for hhvm-3.22.0
Array ( [0] => 1 [1] => 2 ) Notice: Array to string conversion in /in/2Ni5K on line -1 Array