3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if(strlen($name) < 2 || strlen($email) < 6 || strlen($subject) < 5 || strlen($message) < 15){ $alert = "There are some problems: \n"; if(strlen($name) < 2){ $alert .= "Name is too short \n"; } if(strlen($email) < 6){ $alert .= "email is too short \n"; } if(strlen($subject) < 5){ $alert .= "The subject is too short \n"; } if(strlen($message) < 15){ $alert .= "Your message is too short \n"; } $alert .= "Please fill in te fields correctly"; echo $alert; ?> <script> alert("<?= $alert ?>"); </script> <?php } else { ... } ?>
Output for 5.3.0 - 5.4.4
Parse error: syntax error, unexpected '.' in /in/8f4tZ on line 30
Process exited with code 255.