3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strings = ['bl', 'Bl', 'Blog', 'äöü']; foreach ($strings as &$str) { $str = mb_convert_encoding($str, 'UTF-8', mb_list_encodings()); } echo '<pre>' . print_r($strings, true) . '</pre>';

preferences:
23.63 ms | 406 KiB | 5 Q