3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo "true:".count(true); echo "one:".count(1);
based on 3tfTZ
Output for 7.2.0 - 7.3.0beta1
Warning: count(): Parameter must be an array or an object that implements Countable in /in/EQ5Fb on line 3 true:1 Warning: count(): Parameter must be an array or an object that implements Countable in /in/EQ5Fb on line 4 one:1
Output for 4.3.0 - 7.1.20
true:1one:1