3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = [1, 2, 6, 4, 9, 6, 3]; $ret = 1; foreach($array as $item){ $ret *= $item ? 1 : 0; } echo $ret;
based on fuLJW
Output for 5.6.38 - 7.3.0rc3
1