3v4l.org

run code in 500+ PHP versions simultaneously
<?php $str = "noël"; echo $str, "\n"; echo implode(array_reverse(grapheme_str_split($str))),"\n"; echo grapheme_substr($str, 0,3),"\n"; echo grapheme_strlen($str),"\n";
Output for 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.5.0 - 8.5.3
noël Fatal error: Uncaught Error: Call to undefined function grapheme_str_split() in /in/p9g8b:4 Stack trace: #0 {main} thrown in /in/p9g8b on line 4
Process exited with code 255.
Output for 8.4.1 - 8.4.18
noël lëon noë 4

preferences:
56.36 ms | 848 KiB | 4 Q