3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php if (empty($a)) { echo 'foo'; } else { echo 'bar'; } empty($a['aaaa']); empty($b['aaaaa']); isset($dsadasdasd); isset($dsadasd['aaaaa']);
based on gJbY2
Output for 5.6.0 - 5.6.38, hhvm-3.12.14 - 3.22.0, 7.0.0 - 7.2.12
foo