3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = null; echo reset($x);
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: reset() expects parameter 1 to be array, null given in /in/gf8bD on line 4
Output for hhvm-3.10.0 - 3.13.2
Warning: Invalid operand type was used: expecting an array in /in/gf8bD on line 4
Output for 4.3.2 - 5.2.17
Warning: reset(): Passed variable is not an array or object in /in/gf8bD on line 4
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/gf8bD on line 4