3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array('g','y'); current($array[0]); echo next($array);
Output for 5.3.0 - 7.1.0
Warning: current() expects parameter 1 to be array, string given in /in/BqSiP on line 5 y
Output for 4.3.2 - 5.2.17
Warning: current(): Passed variable is not an array or object in /in/BqSiP on line 5 y
Output for 4.3.0 - 4.3.1
Warning: current() [http://www.php.net/function.current]: Passed variable is not an array or object in /in/BqSiP on line 5 y