fork download
  1. <?php
  2.  
  3.  
  4. $bin = 0b00001101; // 13 - ASCII Carriage return
  5. $c = substr($bin, 0, 1); // read this character
  6. printf("Expectation: 00001101, reality: %08b\n", $c); // 00000001
  7.  
Success #stdin #stdout 0.02s 52432KB
stdin
Standard input is empty
stdout
Expectation: 00001101, reality: 00000001