3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function bindump($ord) { printf("%016b\n", ord($ord)); } $one = "1"; bindump($one); for ($i=0; $i<10; $i++) { bindump($one << $i); }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
0000000000110001 0000000000110001 0000000000110010 0000000000110100 0000000000111000 0000000000110001 0000000000110011 0000000000110110 0000000000110001 0000000000110010 0000000000110101