3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array(0, '0', NULL, 'abc', ''); foreach($arr as $key) { var_dump($key); echo ':' . strlen($key); echo PHP_EOL . PHP_EOL; }
based on HG5iT
Output for 5.6.0 - 5.6.30, hhvm-3.12.14 - 3.17.3, 7.0.0 - 7.3.0alpha1
int(0) :1 string(1) "0" :1 NULL :0 string(3) "abc" :3 string(0) "" :0