3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(function_exists('filter_var')) { $check = filter_var('info@lindsey-dominique.be', FILTER_VALIDATE_EMAIL); } else { $check = preg_match('/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[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_]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/', 'info@lindsey-dominique.be'); var_dump($check);
Output for 5.4.18
Parse error: syntax error, unexpected end of file in /in/Zt45E on line 6
Process exited with code 255.
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected end of file in /in/N60Rv on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected $end in /in/N60Rv on line 6
Process exited with code 255.

preferences:
166.11 ms | 1395 KiB | 54 Q