3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = mb_convert_encoding( "test ääöö", "ISO-8859-15", "UTF-8" ); $b = mb_substr( $a, 0, null, "UTF-8" ); $c = mb_convert_encoding( $b, "UTF-8", "ISO-8859-15" ); var_dump($a, $b, $c);

preferences:
83.26 ms | 406 KiB | 5 Q