3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $bitmask = bindec('0101'); printf("%04b\n", $bitmask); $bitmask ^= bindec('0111'); printf("%04b\n", $bitmask); $bitmask ^= bindec('0111'); printf("%04b\n", $bitmask); ?>
Output for 4.3.0 - 7.2.0
0101 0010 0101