3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 'cat'; $b = 'cats'; for ($i = 0; $i < strlen($a); $i++) { $result |= isset($result) ? (ord($a[$i]) ^ ord($b[$i])) : 0; } $c = ($result == 0) ? "equal" : "not equal";
based on NHb9q
Output for 5.0.4 - 7.2.0
Notice: Undefined variable: result in /in/eZ6Ed on line 5
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: result in /in/eZ6Ed on line 5