3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php count(false); count(0); count(null); count(array());
Output for 7.2.0 - 7.2.6
Warning: count(): Parameter must be an array or an object that implements Countable in /in/jOdBE on line 2 Warning: count(): Parameter must be an array or an object that implements Countable in /in/jOdBE on line 3 Warning: count(): Parameter must be an array or an object that implements Countable in /in/jOdBE on line 4
Output for 4.3.0 - 7.1.20