3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string1 = 'The lazy cat jumps over the fast fox.'; $string2 = 'The fast fox jumps over the lazy cat.'; $xor = $string1 ^ $string2; var_dump($xor);die(); $pos=0;$len=strlen($xor); while($pos<$len) { $pos=strspn($xor,"\0",$pos); print 'Diff @'.$pos.' String1:'.$string1[$pos].' String2:'.$string2[$pos].'<br>'; $pos++; }
Output for git.master, git.master_jit, rfc.property-hooks
string(37) "   "

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