3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "ʪ֣ãÅìÐÄš³·¿­ÉÁÊ¡¸Ší¿ÃÐÁ®›¶œ¸˜Ï¹¥ç"; $esc = preg_replace( '~([^a-z0-9])~u','\\\$1',$str ); var_dump( $esc );
Output for 4.3.3 - 7.2.0
string(106) "\Ê\ª\Ö\£\ã\Å\ì\Ð\Ä\š\³\·\¿\­\É\Á\Ê\¡\¸\Š\í\¿\Ã\Ð\Á\®\›\¶\œ\¸\˜\Ï\¹\¥\ç"
Output for 4.3.0 - 4.3.2
string(107) "\Ê\ª\Ö\£\ã\Å\ì\Ð\Ä�\�\³\·\¿\­\É\Á\Ê\¡\¸�\�\í\¿\Ã\Ð\Á\®�\�\�\¶�\�\¸�\�\Ï\¹\¥\ç"