3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = ['x', 'y', 'z']; function array_fetch(array $a) { $element = current($a); next($a); echo $a; //var_dump($element); return $element; } $a=array_fetch($array);
based on keLCY
Output for 7.1.25 - 7.3.3
Notice: Array to string conversion in /in/uvsSG on line 8 Array