3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "lucas.beyeler@4linux.com.br"; $substring = substr(strpos($string, '@'), 0, $string); echo $substring;

preferences:
54.05 ms | 402 KiB | 5 Q