3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo count(array()); echo count(false); echo count(null); $ducks = 'awesome'; echo count($ducks);
Output for 7.2.0 - 7.3.0rc4
0 Warning: count(): Parameter must be an array or an object that implements Countable in /in/ClvlC on line 3 1 Warning: count(): Parameter must be an array or an object that implements Countable in /in/ClvlC on line 4 0 Warning: count(): Parameter must be an array or an object that implements Countable in /in/ClvlC on line 6 1
Output for 4.3.0 - 7.1.20
0101