3v4l.org

run code in 300+ PHP versions simultaneously
<?php $first = 'A'; $second = '}'; $ascii_first = ord($first); $ascii_second = ord($second); $binary_first = decbin($ascii_first); $binary_second = decbin($ascii_second); $binary_XOR = decbin($ascii_first ^ $ascii_second); $final_ascii = bindec($binary_XOR); $final_char = chr($final_ascii); echo "Letters \n\t $first \n\t $second \n"; echo "ASCII values: \n\t $first: $ascii_first \n\t $second: $ascii_second \n"; echo "Binary values \n\t $ascii_first: $binary_first \n\t $ascii_second: $binary_second \n"; echo "XOR of values: \n\t Binary: $binary_XOR \n\t Decimal: $final_ascii\n"; echo "Final character of ASCII value $final_ascii: $final_char";
Output for git.master, git.master_jit, rfc.property-hooks
Letters A } ASCII values: A: 65 }: 125 Binary values 65: 1000001 125: 1111101 XOR of values: Binary: 111100 Decimal: 60 Final character of ASCII value 60: <

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:
52.03 ms | 401 KiB | 8 Q