3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a1 = false; $a2 = ''; $a3 = 0; $a4 = '0'; var_dump(empty($a1)); var_dump(empty($a2)); var_dump(empty($a3)); var_dump(empty($a4));
Output for 4.3.0 - 7.2.0
bool(true) bool(true) bool(true) bool(true)