3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $num = -1; $empty = empty($num); if($empty) { echo "empty"; } else { echo "not empty"; }
based on S39hW
Output for 4.3.0 - 7.1.0
not empty