3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $empty = ''; $null = NULL; $bool = FALSE; $notSet; $array = array(); var_dump(empty($empty)); var_dump(is_null($empty)); var_dump(isset($empty)); var_dump((bool)$empty);
Output for 5.1.0 - 7.2.0
bool(true) bool(false) bool(true) bool(false)
Output for 5.0.4 - 5.0.5
Notice: Undefined variable: notSet in /in/t9i33 on line 6 bool(true) bool(false) bool(true) bool(false)
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: notSet in /in/t9i33 on line 6 bool(true) bool(false) bool(true) bool(false)