3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function maskImplodeBits(array $bits) { $imploded = 0; foreach ($bits as $bit) { $imploded = $imploded | (1 << $bit)); } return $imploded; } var_dump(maskImplodeBits(array(0,2)));
Output for 5.3.0 - 5.4.23
Parse error: syntax error, unexpected ')' in /in/G7te2 on line 7
Process exited with code 255.