3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!isset($_POST["password"])) { $target = htmlspecialchars($_SERVER['PHP_SELF'] ?? ""); $form = '<html><head><title>testing</title></head><body><form action="'.$target.'" method="post"><input type="password" name="password"></form></body></html>'; echo($form); } else { if ($_POST["password"] === "TestersAndDevs0nly") { session_start(); $_SESSION["logged"] = true; } } ?>
Output for 8.3.5 - 8.3.28, 8.4.9 - 8.4.14, 8.5.0
<html><head><title>testing</title></head><body><form action="/in/jlrdA" method="post"><input type="password" name="password"></form></body></html>
Output for 8.4.15
/bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libm.so.6: version `GLIBC_2.35' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.34' not found (required by /bin/php-8.4.15) /bin/php-8.4.15: /usr/lib/libc.so.6: version `GLIBC_2.38' not found (required by /bin/php-8.4.15)
Process exited with code 1.

preferences:
77.34 ms | 407 KiB | 5 Q