3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Maier warnt Müller vor „Harter Debatte“'; $value = strtolower(trim($str)); $find = ["?", "[", "]", "/", "\\", "=", "<", ">", ":", ";", ",", "'", "\"", "&", "$", "#", "*", "(", ")", "|", "~", "`", "!", "{", "}", "%", "+", "“", "„", " ", chr(0)]; $value = str_replace($find, '-', $value); $find = ['ä', 'ö', 'ü', 'ß', 'Ä', 'Ö', 'Ü']; $replace = ['ae', 'oe', 'ue', 'ss', 'Ae', 'Oe', 'Ue']; echo str_replace($find, $replace, $value);
Output for git.master, git.master_jit, rfc.property-hooks
maier-warnt-mueller-vor--harter-debatte-

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:
198.66 ms | 405 KiB | 5 Q