3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $o = []; @$var = ["",0,null,1,2,3,$foo,$o['myIndex']]; array_walk($var, function($v) { echo (!isset($v) || $v == false) ? 'lol ' : 'false'; echo ' ' . (empty($v) ? 'true' : 'false'); echo "\n"; });
based on 5Wvgj
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0alpha1
lol true lol true lol true false false false false false false lol true lol true