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 - 7.2.12
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 - 5.6.38, hhvm-3.10.1 - 3.22.0, 7.0.0 - 7.1.24
int(1) int(0)