3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array( 1, 2, 3 ); $foo = false; echo reset( $foo );
Output for 5.3.0 - 5.6.21, 7.0.0 - 7.1.0RC5
Warning: reset() expects parameter 1 to be array, boolean given in /in/MvjrK on line 7
Output for hhvm-3.10.0 - 3.12.0
Warning: Invalid operand type was used: expecting an array in /in/MvjrK on line 7
Output for 4.3.2 - 5.2.17
Warning: reset(): Passed variable is not an array or object in /in/MvjrK on line 7
Output for 4.3.0 - 4.3.1
Warning: reset() [http://www.php.net/function.reset]: Passed variable is not an array or object in /in/MvjrK on line 7