3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bin1 = b"\x31\x30"; $bin2 = b"\x30\x29"; var_dump( decbin(hexdec(bin2hex($bin1))) ); var_dump( decbin(hexdec(bin2hex($bin2))) ); var_dump( $bin1 >> 1 ); var_dump( $bin1 << 1 ); var_dump( decbin(hexdec(bin2hex(~$bin1))) ); $bin3 = $bin1 | $bin2; var_dump( decbin(hexdec(bin2hex($bin3))) ); $bin3 = $bin1 & $bin2; var_dump( decbin(hexdec(bin2hex($bin3))) ); $bin3 = $bin1 ^ $bin2; var_dump( decbin(hexdec(bin2hex($bin3))) );
Output for git.master, git.master_jit, rfc.property-hooks
string(14) "11000100110000" string(14) "11000000101001" int(5) int(20) string(16) "1100111011001111" string(14) "11000100111001" string(14) "11000000100000" string(9) "100011001"

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:
120.88 ms | 405 KiB | 5 Q