3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php count(null); count(0); count(1); count(true); count(array());
Output for 7.2.0
Warning: count(): Parameter must be an array or an object that implements Countable in /in/VRqH4 on line 3 Warning: count(): Parameter must be an array or an object that implements Countable in /in/VRqH4 on line 4 Warning: count(): Parameter must be an array or an object that implements Countable in /in/VRqH4 on line 5 Warning: count(): Parameter must be an array or an object that implements Countable in /in/VRqH4 on line 6
Output for 4.3.0 - 7.1.10