3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array( 'a' => null, 'b' => false, 'c' => true, 'd' => "", 'e' => 0, 'f' => 1, 'g' => "a", ); foreach($a as $key => $row) { echo $key . "\n"; var_dump(isset($row)); var_dump(!empty($row)); echo "\n"; }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
a bool(false) bool(false) b bool(true) bool(false) c bool(true) bool(true) d bool(true) bool(false) e bool(true) bool(false) f bool(true) bool(true) g bool(true) bool(true)