3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(count(''), count(array()), count('') == 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/nAoFB on line 2 Warning: count(): Parameter must be an array or an object that implements Countable in /in/nAoFB on line 2 int(1) int(0) bool(false)
Output for 4.3.0 - 7.1.20
int(1) int(0) bool(false)