3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = array(); echo "\n".count($array); $array = null; echo "\n".count($array); $array = 'anything'; echo "\n".count($array);
Output for 7.2.0 - 7.2.6
0 Warning: count(): Parameter must be an array or an object that implements Countable in /in/OvKoL on line 7 0 Warning: count(): Parameter must be an array or an object that implements Countable in /in/OvKoL on line 10 1
Output for 4.3.0 - 7.1.20
0 0 1