3v4l.org

run code in 300+ PHP versions simultaneously
<?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);
Output for 5.5.0 - 5.5.36, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.25, 8.0.0 - 8.0.12, 8.1rc1 - rc3
Array ( [0] => first #с؀ [1] => second one )

preferences:
51.92 ms | 461 KiB | 5 Q