3v4l.org

run code in 300+ PHP versions simultaneously
<?php function sendHttpStatus(int $statusCode, string $message) { echo ' .$statusCode. ' ' .$message; } sendHttpStatus(404, "File Not Found"); // integer and string passed sendHttpStatus("403", "OK"); // string "403" coerced to int(403)

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)
5.6.160.0070.06720.44
5.6.150.0170.03018.28
5.6.140.0070.08318.24
5.6.130.0170.05318.15
5.6.120.0070.08321.02
5.6.110.0070.06021.02
5.6.100.0030.07721.01
5.6.90.0130.07020.98
5.6.80.0100.07320.39
5.5.300.0030.04018.12
5.5.290.0130.04317.97
5.5.280.0070.04320.86
5.5.270.0100.07020.87
5.5.260.0170.08320.68
5.5.250.0070.04020.71
5.5.240.0100.04020.26

preferences:
142.14 ms | 1394 KiB | 7 Q