3v4l.org

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