3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "\x2F\xC0\xAE\x2E\x2F"; $converted = mb_convert_encoding($str, 'UTF-8', 'UTF-8'); var_dump(bin2hex($str), $converted, bin2hex($converted), preg_match('//u', $str));
Output for 5.4.0 - 5.6.21, hhvm-3.12.0, 7.0.0 - 7.1.0
string(10) "2fc0ae2e2f" string(5) "/??./" string(10) "2f3f3f2e2f" bool(false)
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.4 - 5.3.29
string(10) "2fc0ae2e2f" string(3) "/./" string(6) "2f2e2f" bool(false)
Output for 4.3.5 - 5.3.3
string(10) "2fc0ae2e2f" string(3) "/./" string(6) "2f2e2f" int(0)
Output for 4.3.0 - 4.3.4
string(10) "2fc0ae2e2f" string(3) "/./" string(6) "2f2e2f" int(1)