3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($i = 0; $i <= 255; $i++) var_dump(chr($i) ^ chr(128));
based on LsUYI
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "�" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) " " string(1) " " string(1) " " string(1) " " string(1) " " string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) " " string(1) "!" string(1) """ string(1) "#" string(1) "$" string(1) "%" string(1) "&" string(1) "'" string(1) "(" string(1) ")" string(1) "*" string(1) "+" string(1) "," string(1) "-" string(1) "." string(1) "/" string(1) "0" string(1) "1" string(1) "2" string(1) "3" string(1) "4" string(1) "5" string(1) "6" string(1) "7" string(1) "8" string(1) "9" string(1) ":" string(1) ";" string(1) "<" string(1) "=" string(1) ">" string(1) "?" string(1) "@" string(1) "A" string(1) "B" string(1) "C" string(1) "D" string(1) "E" string(1) "F" string(1) "G" string(1) "H" string(1) "I" string(1) "J" string(1) "K" string(1) "L" string(1) "M" string(1) "N" string(1) "O" string(1) "P" string(1) "Q" string(1) "R" string(1) "S" string(1) "T" string(1) "U" string(1) "V" string(1) "W" string(1) "X" string(1) "Y" string(1) "Z" string(1) "[" string(1) "\" string(1) "]" string(1) "^" string(1) "_" string(1) "`" string(1) "a" string(1) "b" string(1) "c" string(1) "d" string(1) "e" string(1) "f" string(1) "g" string(1) "h" string(1) "i" string(1) "j" string(1) "k" string(1) "l" string(1) "m" string(1) "n" string(1) "o" string(1) "p" string(1) "q" string(1) "r" string(1) "s" string(1) "t" string(1) "u" string(1) "v" string(1) "w" string(1) "x" string(1) "y" string(1) "z" string(1) "{" string(1) "|" string(1) "}" string(1) "~" string(1) ""
Output for hhvm-3.10.0

Process exited with code 153.