3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string= "Hi #geeting #shortAnswer #notUseful"; preg_match_all('/#(\w+)/',$string, $matches); echo "The matches:\n"; foreach ($matches[1] as $tag) { echo $tag."\n"; } var_dump($matches);
Output for git.master, git.master_jit, rfc.property-hooks
The matches: geeting shortAnswer notUseful array(2) { [0]=> array(3) { [0]=> string(8) "#geeting" [1]=> string(12) "#shortAnswer" [2]=> string(10) "#notUseful" } [1]=> array(3) { [0]=> string(7) "geeting" [1]=> string(11) "shortAnswer" [2]=> string(9) "notUseful" } }

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:
46.94 ms | 402 KiB | 8 Q