3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text="ála"; for($d=0;$d<strlen($text);$d++) { echo $text[$d] . "<br>"; } $char = 'á'; $char = 'a'; $hex = dechex(mb_ord($char)); var_dump($hex);

preferences:
39.42 ms | 402 KiB | 5 Q