3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = '0'; $b = ' '; $c = 0; $d = NULL; var_dump(empty($a)); var_dump(empty($b)); var_dump(empty($c)); var_dump(empty($d));
based on HRDsn
Output for 4.3.0 - 5.6.21, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
bool(true) bool(false) bool(true) bool(true)