3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $result = "°Freenew°\x90ɮ\xC2\xA0"; echo preg_replace('#[\x{0000}-\x{001F}\x{007F}-\x{00A0}]#u', '', $result); //echo preg_last_error(); echo str_replace('\x{00A0}', 'aaa', $result);
Output for 5.2.0 - 7.1.0
°Freenew°�ɮ 
Output for 4.3.5 - 5.1.6
°Freenew°�ɮ °Freenew°�ɮ 
Output for 4.3.3 - 4.3.4
°Freenew°�ɮ°Freenew°�ɮ 
Output for 4.3.0 - 4.3.2
°Freenew°ɮ°Freenew°�ɮ