3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array(1); $array_a = array(); $array_b = NULL; $array_c = FALSE; $array_d = 0; $array_e = 123; echo count($array)."<br/>"; echo count($array_a)."<br/>"; echo count($array_b)."<br/>"; echo count($array_c)."<br/>"; echo count($array_d)."<br/>"; echo count($array_e)."<br/>";
Output for 4.3.0 - 7.1.0
1<br/>0<br/>0<br/>1<br/>1<br/>1<br/>