3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "Some test text string with stop-words: stw stw2 stopword stw3stw stopword2c"; $stopwords = array( 'stw', 'stopword' ); $regexp = '/'; $regexp.= '(' . implode('|', $stopwords) . ')' . '/'; var_dump($regexp); mb_ereg_search_init($some_long_text); $totalResult = mb_ereg_search($regexp, "imz"); var_dump($totalResult);
Output for git.master, git.master_jit, rfc.property-hooks
string(16) "/(stw|stopword)/" Warning: Undefined variable $some_long_text in /in/XHehS on line 15 Deprecated: mb_ereg_search_init(): Passing null to parameter #1 ($string) of type string is deprecated in /in/XHehS on line 15 bool(false)

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
44.82 ms | 402 KiB | 8 Q