3v4l.org

run code in 300+ PHP versions simultaneously
<?php function replace_old_chrs_utf8($str) { $vd = strtoupper('ð'); $old = array('æ', 'Æ', 'è', 'È', 'ð', $vd); $new = array('ć', 'Ć', 'č', 'Č', 'đ', 'Đ'); $fin = str_replace($old, $new, $str); return $fin; } $testString = 'æ-Æ bananna è moose Èð'; var_dump(replace_old_chrs_utf8($testString));
Output for git.master, git.master_jit, rfc.property-hooks
string(27) "ć-Ć bananna č moose Čđ"

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