3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $toto = "Test"; var_dump(count($toto)); $titi = null; var_dump(count($titi));
based on FnJUJ
Output for 7.2.0
Warning: count(): Parameter must be an array or an object that implements Countable in /in/jO5gA on line 5 int(1) Warning: count(): Parameter must be an array or an object that implements Countable in /in/jO5gA on line 9 int(0)
Output for 5.3.18 - 7.1.10
int(1) int(0)