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();
Output for 5.2.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
4
Output for 5.0.0 - 5.1.6
°Freenew°�ɮ  Fatal error: Call to undefined function preg_last_error() in /in/Tjc6M on line 5
Process exited with code 255.
Output for 4.4.5 - 4.4.9
°Freenew°�ɮ  Fatal error: Call to undefined function: preg_last_error() in /in/Tjc6M on line 5
Process exited with code 255.
Output for 4.3.5 - 4.4.4
°Freenew°�ɮ  Fatal error: Call to undefined function: preg_last_error() in /in/Tjc6M on line 5
Process exited with code 255.
Output for 4.3.3 - 4.3.4
°Freenew°�ɮ Fatal error: Call to undefined function: preg_last_error() in /in/Tjc6M on line 5
Process exited with code 255.
Output for 4.3.2
°Freenew°ɮ Fatal error: Call to undefined function: preg_last_error() in /in/Tjc6M on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
°Freenew°ɮ Fatal error: Call to undefined function: preg_last_error() in /in/Tjc6M on line 5