3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $examples = array( 'Valid 2 Octet Sequence' => "\x80" ); foreach ($examples as $k => $v) { echo "{$k}\n"; echo var_dump((bool)preg_match("//u", $v)); echo "\n"; }
based on iH0B3
Output for 4.3.5 - 7.2.0
Valid 2 Octet Sequence bool(false)
Output for 4.3.0 - 4.3.4
Valid 2 Octet Sequence bool(true)