3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = 0b0000; $y = 0b0001; $x |= $y; var_dump($x);
based on Ubd8t
Output for 5.6.0 - 7.3.0alpha1
int(1)