3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 'cat'; $b = 'cats'; for ($i = 0; $i < strlen($a); $i++) { if(!isset($result)) $result = 0; $result |= (ord($a[$i]) ^ ord($b[$i])); } $c = ($result == 0) ? "equal" : "not equal";
based on cC8kn
Output for 4.3.0 - 7.2.0