3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $pattern = '/^[^@]+@[^@]*toyota[^@]*\.[^@]+/'; $emails = { 'asd@abctoyotacsl.ca', 'asd@abclexuscsl.com', 'asd@toyo.com', 'asd@lexis.ca', }; foreach($emails as $e){ echo preg_match($pattern, $e); }
Output for 5.3.0 - 5.4.27
Parse error: syntax error, unexpected '{' in /in/Y2M5P on line 4
Process exited with code 255.