3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str1="BeeABBeeoBodBaBdOdPQBBgDQgDdp"; $str2="\n\n\t8b\n\n\t\nb&\nb b \n%%nb%%%\n%\nQ"; $len=min(strlen($str1),strlen($str2)); for($i=0;$i<$len;$i++) { $ord1=ord($str1[$i]); $ord2=ord($str2[$i]); $cha=chr($ord1 ^ $ord2); echo $str1[$i].' ^ '.$str2[$i]." = {$ord1} ^ {$ord2} = ".($ord1 ^ $ord2)." = {$cha}\n"; }
Output for git.master, git.master_jit, rfc.property-hooks
B ^ = 66 ^ 10 = 72 = H e ^ = 101 ^ 10 = 111 = o e ^ = 101 ^ 9 = 108 = l A ^ 8 = 65 ^ 56 = 121 = y B ^ b = 66 ^ 98 = 32 = B ^ = 66 ^ 10 = 72 = H e ^ = 101 ^ 10 = 111 = o e ^ = 101 ^ 9 = 108 = l o ^ = 111 ^ 10 = 101 = e B ^ b = 66 ^ 98 = 32 = o ^ & = 111 ^ 38 = 73 = I d ^ = 100 ^ 10 = 110 = n B ^ b = 66 ^ 98 = 32 = a ^ = 97 ^ 32 = 65 = A B ^ b = 66 ^ 98 = 32 = d ^ = 100 ^ 32 = 68 = D O ^ = 79 ^ 32 = 111 = o d ^ = 100 ^ 10 = 110 = n P ^ % = 80 ^ 37 = 117 = u Q ^ % = 81 ^ 37 = 116 = t B ^ n = 66 ^ 110 = 44 = , B ^ b = 66 ^ 98 = 32 = g ^ % = 103 ^ 37 = 66 = B D ^ % = 68 ^ 37 = 97 = a Q ^ % = 81 ^ 37 = 116 = t g ^ = 103 ^ 10 = 109 = m D ^ % = 68 ^ 37 = 97 = a d ^ = 100 ^ 10 = 110 = n p ^ Q = 112 ^ 81 = 33 = !

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:
174.21 ms | 407 KiB | 5 Q