3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "hello, my, name, is, az"; echo substr($string, 0, strpos(','));

preferences:
54.09 ms | 402 KiB | 5 Q