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.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.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

preferences:
31.78 ms | 403 KiB | 5 Q