3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "hey"; var_dump(substr($string, 10));

preferences:
44.46 ms | 402 KiB | 5 Q