3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nbytestr = '123'; $bytestr = 'ABC'; var_dump(bin2hex($nbytestr)); var_dump(bin2hex($bytestr)); var_dump(bin2hex(~$nbytestr)); var_dump(bin2hex(~$bytestr)); var_dump(bin2hex($nbytestr | $bytestr)); var_dump(bin2hex($nbytestr & $bytestr)); var_dump(bin2hex($nbytestr ^ $bytestr)); var_dump($nbytestr >> 1); var_dump($bytestr >> 1);
Output for git.master, git.master_jit, rfc.property-hooks
string(6) "313233" string(6) "414243" string(6) "cecdcc" string(6) "bebdbc" string(6) "717273" string(6) "010203" string(6) "707070" int(61) Fatal error: Uncaught TypeError: Unsupported operand types: string >> int in /in/IBUDD:17 Stack trace: #0 {main} thrown in /in/IBUDD on line 17
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
46.82 ms | 406 KiB | 5 Q