3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $text = "Some test text string with stop-words: stw stw2 stopword stw3stw stopword2c"; $stopwords = array( 'stw', 'stopword' ); $regexp = '(' . implode('|', $stopwords) . ')'; var_dump($regexp); mb_regex_encoding('UTF-8'); var_dump(mb_regex_encoding()); $initResult = mb_ereg_search_init($text); var_dump($initResult); $totalResult = mb_ereg_search($regexp, "imz"); var_dump($totalResult); while($r = mb_ereg_search_getregs()) { var_dump($r); mb_ereg_search_setpos(mb_ereg_search_getpos()); }

Abusive script

This script was stopped while abusing our resources