3v4l.org

run code in 300+ PHP versions simultaneously
<?php function escape($data='') { $a = 'ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûýýþÿ'; $b = 'aaaaaaaceeeeiiiidnoooooouuuuybsaaaaaaaceeeeiiiidnoooooouuuyyby'; $data = utf8_decode($data); $data = utf8_encode(strtr($data, utf8_decode($a), $b)); $data = strtolower($data); $arrPre[] = " a "; $arrPre[] = " ante "; $arrPre[] = " bajo "; $arrPre[] = " con "; $arrPre[] = " de "; $arrPre[] = " desde "; $arrPre[] = " durante "; $arrPre[] = " en "; $arrPre[] = " entre "; $arrPre[] = " excepto "; $arrPre[] = " hacia "; $arrPre[] = " hasta "; $arrPre[] = " mediante "; $arrPre[] = " para "; $arrPre[] = " por "; $arrPre[] = " salvo "; $arrPre[] = " según "; $arrPre[] = " sin "; $arrPre[] = " sobre "; $arrPre[] = " tras "; $data = str_replace($arrPre," ",$data); $data = str_replace(array('\\','!','¡','/','\'','"','“','â€?','‘','’','&','º','<','>','+','¿','?',':','.',',','%'), '', $data ); $data = str_replace(" " , "-", $data ); $data = preg_replace("/[^A-Z\d\_\.\:\,\-]/i","",$data); return $data; } echo escape('médicos');
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Function utf8_decode() is deprecated in /in/RTtgV on line 7 Deprecated: Function utf8_decode() is deprecated in /in/RTtgV on line 8 Deprecated: Function utf8_encode() is deprecated in /in/RTtgV on line 8 medicos

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:
42.37 ms | 402 KiB | 8 Q