3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = 'جام جهانی فیفا2014 فیفا تیم ملی برزیل کامرون مکزیک کرواسی اسپانیا شیلی'; $arr = explode("\n",$test); $C= new stdClass(); $C->AUTO_HASHTAG = $arr; foreach($C->AUTO_HASHTAG as &$ht){ if(strpos($ht,'ا')!==false) $C->AUTO_HASHTAG[] = str_replace('ا','آ',$ht); } var_export($C->AUTO_HASHTAG);
Output for git.master, git.master_jit, rfc.property-hooks
array ( 0 => 'جام جهانی', 1 => 'فیفا2014', 2 => 'فیفا', 3 => 'تیم ملی', 4 => 'برزیل', 5 => 'کامرون', 6 => 'مکزیک', 7 => 'کرواسی', 8 => 'اسپانیا', 9 => 'شیلی', 10 => 'جآم جهآنی', 11 => 'فیفآ2014', 12 => 'فیفآ', 13 => 'کآمرون', 14 => 'کروآسی', 15 => 'آسپآنیآ', )

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.06 ms | 402 KiB | 8 Q