3v4l.org

run code in 200+ php & hhvm versions
<?php $utf_1 = chr(0xD1) . chr(0x81); // U+0440; $utf_2 = chr(0xD8) . chr(0x80); // U+0600 $string = '"first #' . $utf_1 . $utf_2 . '";"second one"'; $d = str_getcsv($string, ';', '"', "#"); print_r($d);
based on eT4dD
Output for 5.5.0 - 7.2.6
Array ( [0] => first #с؀ [1] => second one )