3v4l.org

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

preferences:
43.15 ms | 402 KiB | 5 Q