3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = '[^A-Za-z\r\n@£$¥èéùìòÇØøÅå\u0394\u03A6\u0393\u039B\u03A9\u03A0\u03A8\u03A3\u0398\u039EÆæßÉ!"#$%&amp;\'()*+,\-./:;<>&lt;=&gt;?¡ÄÖÑܧ¿äöñüà^{}\\\[~\]]'; $data = 'asdf‘‼asdf'; $tmp = []; $result = mb_ereg($x,$data,$tmp); var_dump($tmp); /* $result = preg_match_all($x,$data,$tmp); var_dump($tmp); $z = $tmp[0][1]; $y = strpos($data,$z); $q = substr($data,$y,3); var_dump($q); */
Output for 7.1.7
Warning: mb_ereg(): mbregex compile err: premature end of char-class in /in/KXLkH on line 7 array(0) { }