3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<!DOCTYPE html> <html> <head> <title>Панель администратора</title> </head> <body> <?php var $rightPassword = '12345'; if(isset($_POST["password"])){ var $password = $_POST["password"]; } echo ($password); if($password == null){ echo ""+ "<form id='passwordForm'>"+ "<input type='password' name='password'>"+ "<input type='submit' value='Отправить'>"+ "</form>"+ ""; } ?> </body> </html>
based on q1hGY
Output for 7.0.0 - 7.0.1
Parse error: syntax error, unexpected 'var' (T_VAR), expecting end of file in /in/UL0eT on line 8
Process exited with code 255.
Output for 5.4.11 - 5.6.16
Parse error: syntax error, unexpected 'var' (T_VAR) in /in/UL0eT on line 8
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected T_VAR in /in/UL0eT on line 8
Process exited with code 255.