3v4l.org

run code in 500+ 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.70.0050.00516.79
8.5.60.0050.00316.91
8.5.50.0100.00816.42
8.5.30.0130.00418.12
8.5.20.0070.01119.92
8.5.10.0110.00716.54
8.5.00.0090.01222.94
8.4.220.0040.00721.18
8.4.210.0080.00621.35
8.4.180.0100.01121.95
8.4.170.0160.00624.00
8.4.160.0110.00923.88
8.4.150.0060.00616.84
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.310.0130.00618.45
8.3.300.0100.01118.51
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.310.0070.00318.00
8.2.300.0120.01117.94
8.1.340.0110.00919.93

preferences:
53.73 ms | 616 KiB | 5 Q