3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <head> <title>Панель администратора</title> </head> <body> <?php 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>"+ ""; } var $rightPassword = "12345"; ?> </body> </html>
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16, 7.0.0 - 7.0.1
Parse error: syntax error, unexpected 'var' (T_VAR) in /in/WSPdv on line 9
Process exited with code 255.

preferences:
165.84 ms | 1395 KiB | 25 Q