3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $q = array(10, 'test'); var_dump($q); $orig_value = array(0 => "$q"); $str_value = array_shift($orig_value); var_dump($str_value);
Output for 5.4.0 - 7.1.0
array(2) { [0]=> int(10) [1]=> string(4) "test" } Notice: Array to string conversion in /in/fTXF6 on line 6 string(5) "Array"
Output for 4.3.0 - 5.3.29
array(2) { [0]=> int(10) [1]=> string(4) "test" } string(5) "Array"