3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bindump($chr) { printf("%016b\n", ord($ord)); } $one = chr(1); bindump($one); for ($i=0; $i<10; $i++) { bindump($one << $i); }

preferences:
39.1 ms | 402 KiB | 5 Q