3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $regex = '/^[_a-z0-9-]+(\.[_a-z0-9-]+)*@[a-z0-9-]+(\.[a-z0-9-]+)*(\.[a-z]{2,3})$/'; // Run the preg_match() function on regex against the email address if (preg_match($regex, $email)) { echo $email . \" is a valid email. We can accept it.\"; } else { echo $email . \" is an invalid email. Please try again.\"; }
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected '"', expecting identifier (T_STRING) in /in/51MXG on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected '"', expecting T_STRING in /in/51MXG on line 5
Process exited with code 255.