3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array(); $b = false; var_dump(current($a), current($b));
based on ugoJK
Output for 5.3.0 - 7.1.0
Warning: current() expects parameter 1 to be array, boolean given in /in/UqvTT on line 6 bool(false) NULL
Output for 4.3.2 - 5.2.17
Warning: current(): Passed variable is not an array or object in /in/UqvTT on line 6 bool(false) bool(false)
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/UqvTT on line 6 bool(false) bool(false)