3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text= "#h #gg #مصر"; $get_hash = preg_match_all("/(^|\s)#(\w*[a-zA-Z-أ-إ-آ-ا-ب-ت-ث-ج-ح-خ-د-ذ-ر-ز-س-ش-ص-ض-ط-ظ-ع-غ-ف-ق-ك-ل-م-ن-ه-و-لا-لا-لآ-لأ-لإ-ى-ي-ئ-ة-ء-ؤ_]+\w*)/", $text, $matches); $array_hash = implode("",$matches[0]).""; $hash = str_replace('#', ', ', $array_hash); echo "hash (".$hash.")<br />"; echo $text;
Output for git.master, git.master_jit, rfc.property-hooks
hash (, h , gg , مصر)<br />#h #gg #مصر

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:
41.22 ms | 401 KiB | 8 Q