3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var = ' '; if(empty($var)) { echo "leeg"; } else { echo "Waarde!"; } ?> <form action="/includes/user.login.inc.php" method="POST" class="login active"> <h3>Login</h3> <font color = red>&nbsp;<?PHP echo ($message); ?></font> <div> <label>Gebruikersnaam:</label> <input name="username" type="text" /> <span class="error">This is an error</span> </div> <div> <label>Wachtwoord: <a href="forgot_password.html" rel="forgot_password" class="forgot linkform">Wachtwoord vergeten?</a></label> <input name="password" type="password" /> <span class="error">This is an error</span> </div> <div class="bottom"> <input type="submit" value="Login" /> <input type="hidden" value="1" name="login" /> <a href="register.html" rel="register" class="linkform">Nog geen lid? Schrijf je hier in</a> <div class="clear"></div> </div> </form>
Output for 5.0.4 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Waarde!<form action="/includes/user.login.inc.php" method="POST" class="login active"> <h3>Login</h3> <font color = red>&nbsp; Notice: Undefined variable: message in /in/fXDVP on line 11 </font> <div> <label>Gebruikersnaam:</label> <input name="username" type="text" /> <span class="error">This is an error</span> </div> <div> <label>Wachtwoord: <a href="forgot_password.html" rel="forgot_password" class="forgot linkform">Wachtwoord vergeten?</a></label> <input name="password" type="password" /> <span class="error">This is an error</span> </div> <div class="bottom"> <input type="submit" value="Login" /> <input type="hidden" value="1" name="login" /> <a href="register.html" rel="register" class="linkform">Nog geen lid? Schrijf je hier in</a> <div class="clear"></div> </div> </form>
Output for 4.3.0 - 5.0.3
Waarde!<form action="/includes/user.login.inc.php" method="POST" class="login active"> <h3>Login</h3> <font color = red>&nbsp; Notice: Undefined variable: message in /in/fXDVP on line 11 </font> <div> <label>Gebruikersnaam:</label> <input name="username" type="text" /> <span class="error">This is an error</span> </div> <div> <label>Wachtwoord: <a href="forgot_password.html" rel="forgot_password" class="forgot linkform">Wachtwoord vergeten?</a></label> <input name="password" type="password" /> <span class="error">This is an error</span> </div> <div class="bottom"> <input type="submit" value="Login" /> <input type="hidden" value="1" name="login" /> <a href="register.html" rel="register" class="linkform">Nog geen lid? Schrijf je hier in</a> <div class="clear"></div> </div> </form>