3v4l.org

run code in 200+ 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 - 7.2.0
success