3v4l.org

run code in 300+ PHP versions simultaneously
<?php function sendHttpStatus(int $statusCode, string $message) { echo $statusCode. ' ' .$message; } function sendHttpStatus(string $statusCode, string $message) { echo 'string: ' .$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.08320.55
5.6.150.0070.08018.22
5.6.140.0100.03718.18
5.6.130.0030.08318.28
5.6.120.0070.07721.11
5.6.110.0070.07321.14
5.6.100.0130.07720.96
5.6.90.0100.06321.02
5.6.80.0100.08020.41
5.5.300.0030.08717.95
5.5.290.0030.08318.08
5.5.280.0070.07320.77
5.5.270.0130.08320.80
5.5.260.0100.07720.79
5.5.250.0000.04320.46
5.5.240.0070.03320.34

preferences:
142.2 ms | 1394 KiB | 7 Q