3v4l.org

run code in 300+ PHP versions simultaneously
<?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.

preferences:
180.78 ms | 1395 KiB | 56 Q