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; } } ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.10.0110.00716.54
8.5.00.0090.01222.94
8.4.160.0110.00923.88
8.4.150.0020.00114.05
8.4.140.0080.01217.37
8.4.130.0120.01019.61
8.4.120.0380.01317.64
8.4.110.0120.00917.70
8.4.90.0120.00917.80
8.3.290.0110.00418.55
8.3.280.0160.00518.50
8.3.270.0120.00816.64
8.3.260.0080.00616.45
8.3.250.0130.00616.13
8.3.240.0090.00916.84
8.3.180.0120.00716.39
8.3.50.0130.00716.54
8.2.300.0120.01117.94
8.1.340.0110.00919.93

preferences:
29.68 ms | 403 KiB | 5 Q