3v4l.org

run code in 300+ PHP versions simultaneously
<?php function str_emoji($str){ function empic($h){ $p=dechex(str_replace(array('&#',';'),'',$h)); return '<img src="'.$_POST['face'].$p.'.png" alt="'.$h.'" class="smiley" />'; }; $str=preg_replace('#(\&\#[0-9]{6}\;)#ie','empic("\\1")',$str); return $str; }; $com_print=str_emoji('aaa&#128027;&#128013;bbb'); var_dump($com_print);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /in/IYgn6 on line 8 NULL

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