3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html> <html> <head> <title>Панель администратора</title> </head> <body> <?php $rightPassword = "12345"; if(isset($_POST["password"])){ $password = $_POST["password"]; } echo ($password); if($password == null){ echo ""+ "<form id='passwordForm'>"+ "<input type='password' name='password'>"+ "<input type='submit' value='Отправить'>"+ "</form>"+ ""; } ?> </body> </html>
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
<!DOCTYPE html> <html> <head> <title>Панель администратора</title> </head> <body> Warning: Undefined variable $password in /in/aKOgJ on line 12 Warning: Undefined variable $password in /in/aKOgJ on line 13 Fatal error: Uncaught TypeError: Unsupported operand types: string + string in /in/aKOgJ:15 Stack trace: #0 {main} thrown in /in/aKOgJ on line 15
Process exited with code 255.
Output for 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.31, 7.4.0 - 7.4.33
<!DOCTYPE html> <html> <head> <title>Панель администратора</title> </head> <body> Notice: Undefined variable: password in /in/aKOgJ on line 12 Notice: Undefined variable: password in /in/aKOgJ on line 13 Warning: A non-numeric value encountered in /in/aKOgJ on line 15 Warning: A non-numeric value encountered in /in/aKOgJ on line 15 Warning: A non-numeric value encountered in /in/aKOgJ on line 16 Warning: A non-numeric value encountered in /in/aKOgJ on line 17 Warning: A non-numeric value encountered in /in/aKOgJ on line 18 Warning: A non-numeric value encountered in /in/aKOgJ on line 19 0 </body> </html>
Output for 7.3.32 - 7.3.33
<!DOCTYPE html> <html> <head> <title>Панель администратора</title> </head> <body> Warning: A non-numeric value encountered in /in/aKOgJ on line 15 Warning: A non-numeric value encountered in /in/aKOgJ on line 15 Warning: A non-numeric value encountered in /in/aKOgJ on line 16 Warning: A non-numeric value encountered in /in/aKOgJ on line 17 Warning: A non-numeric value encountered in /in/aKOgJ on line 18 Warning: A non-numeric value encountered in /in/aKOgJ on line 19 0 </body> </html>
Output for 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20
<!DOCTYPE html> <html> <head> <title>Панель администратора</title> </head> <body> Notice: Undefined variable: password in /in/aKOgJ on line 12 Notice: Undefined variable: password in /in/aKOgJ on line 13 0 </body> </html>

preferences:
200.67 ms | 402 KiB | 240 Q