3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "1’With the youth in ’68 and ‘86 汉语 �..."; $string = preg_replace('/[\x00-\x1F\x7F-\xFF]/', '', $string); $string = str_replace("�","", $string); print($string); print ord("�");

preferences:
77.16 ms | 405 KiB | 5 Q