3v4l.org

run code in 200+ 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($a)); var_dump(!empty($a)); echo "\n"; }
Output for 4.3.0 - 7.2.0
a bool(true) bool(true) b bool(true) bool(true) c bool(true) bool(true) d bool(true) bool(true) e bool(true) bool(true) f bool(true) bool(true) g bool(true) bool(true)