3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'info@sample.com'; preg_match('/\A[a-zA-Z0-9.!#$%&\'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*\z/i' . e, $str);

preferences:
36.56 ms | 404 KiB | 5 Q