3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 'blahblah'; $b = 'hablalbb'; $x = 0; for ($i = 0; $i < 8; $i++) { $y = ord($a[$i]) ^ ord($b[$i]); $x ^= ($y); var_dump($x); } var_dump($x);
based on m2ndX
Output for 4.3.0 - 7.2.0
int(10) int(7) int(4) int(0) int(3) int(3) int(0) int(10) int(10)