3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = array(); $test['eval_zero'] = 0; $test['eval_null'] = null; $test['eval_false'] = false; $test['eval_true'] = true; if (isset($test['eval_zero'])) echo 'Zero is set.'; if (!empty($test['eval_zero'])) echo 'Zero is not empty.'; if (isset($test['eval_null'])) echo 'NULL is set.'; if (!empty($test['eval_null'])) echo 'NULL is not empty.'; if (isset($test['eval_false'])) echo 'False is set.'; if (!empty($test['eval_false'])) echo 'False is not empty.'; if (isset($test['eval_true'])) echo 'True is set.'; if (!empty($test['eval_true'])) echo 'True is not empty.';
based on BhaOL
Output for 4.3.0 - 7.2.0
Zero is set.False is set.True is set.True is not empty.