3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $zero = '0'; var_dump(empty($zero)); $zerozero = '0.0'; var_dump(empty($zerozero)); $zerozeronull = NULL; var_dump(empty($zerozeronull));
Output for 4.3.0 - 7.2.0
bool(true) bool(false) bool(true)