3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $url = "على ذهب الى من طول فى يشسيشيشي مصطفى حسني"; $regex = array("على","من","فى","مع"); $url = preg_replace($regex, '', $url); echo $url;
based on 8LAF0
Output for 5.2.5 - 7.2.0
Warning: preg_replace(): No ending delimiter '�' found in /in/QsEtB on line 5
Output for 4.3.11 - 5.2.4
Warning: preg_replace(): No ending delimiter '�' found in /in/QsEtB on line 5 Warning: preg_replace(): Unknown modifier '�' in /in/QsEtB on line 5 Warning: preg_replace(): Unknown modifier '�' in /in/QsEtB on line 5 Warning: preg_replace(): No ending delimiter '�' found in /in/QsEtB on line 5 على ذهب الى من طول فى يشسيشيشي مصطفى حسني
Output for 4.3.0 - 4.3.10
Warning: No ending delimiter '�' found in /in/QsEtB on line 5 Warning: Unknown modifier '�' in /in/QsEtB on line 5 Warning: Unknown modifier '�' in /in/QsEtB on line 5 Warning: No ending delimiter '�' found in /in/QsEtB on line 5 على ذهب الى من طول فى يشسيشيشي مصطفى حسني