3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $email = "dannimoring@yahoo.com"; $checked = filter_var($email, FILTER_VALIDATE_EMAIL); if($checked) echo "valid" else echo "sorry, email ga valid tuh"
Output for 5.4.0 - 5.4.20
Parse error: syntax error, unexpected 'else' (T_ELSE), expecting ',' or ';' in /in/cVYKe on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_ELSE, expecting ',' or ';' in /in/cVYKe on line 6
Process exited with code 255.