3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr1 = array(); $arr2 = array(1,2); if (count($arr1)) { echo 'failure'; } if (!count($arr2)) { echo 'success'; } if (!count($arr1)) { echo 'hard fail'; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
hard fail