3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo count(array()); echo count(false); echo count(null); unset($ducks); echo count($ducks); $ducks = 'awesome'; echo count($ducks);
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
010 Notice: Undefined variable: ducks in /in/F2vFH on line 8 01
Output for 4.3.0 - 5.0.3
010 Notice: Undefined variable: ducks in /in/F2vFH on line 8 01