3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getUserEmail(): ?string { return 'foo@example.com'; } function sendEMail(string $email) { echo "Email address is $email"; } sendEmail( getUserEmail() ?: throw new Exception("Email required") );

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.130.0110.00918.74
8.4.120.0140.00724.11
8.4.110.0100.01017.61
8.4.100.0140.00618.44
8.4.90.0150.00517.78
8.4.80.0400.01017.54
8.4.70.0090.01017.68
8.3.260.0080.00716.62
8.3.250.0140.00619.04
8.3.240.0070.00617.17
8.3.230.0090.01016.77
8.3.220.0140.00516.97
8.3.210.0090.00916.97
8.3.180.0130.00516.97
8.3.50.0120.00716.97
8.2.290.0110.00820.59

preferences:
33.98 ms | 403 KiB | 5 Q