3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $array = [1, 2, , 4, 9, 6, 1]; $ret = 1; foreach($array as $item){ $ret *= $item ? 1 : 0; } echo $ret;
based on raW4U
Output for 7.1.0 - 7.3.0rc3
Fatal error: Cannot use empty array elements in arrays in /in/IDUBP on line 2
Process exited with code 255.
Output for 5.6.38 - 7.0.28
Parse error: syntax error, unexpected ',', expecting ']' in /in/IDUBP on line 2
Process exited with code 255.