3v4l.org

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

Process exited with code 153.