3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo ' substr: ' . substr( "On the Rhône", 0, 12 ) . PHP_EOL; echo 'mb_substr: ' . mb_substr( "On the Rhône", 0, 12 ) . PHP_EOL;

preferences:
48.59 ms | 2691 KiB | 5 Q