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.5.20.0110.01020.21
8.5.10.0090.00916.51
8.5.00.0080.01419.90
8.4.170.0100.01123.99
8.4.160.0150.01222.02
8.4.150.0020.00014.05
8.4.140.0150.00917.70
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.300.0140.00620.56
8.3.290.0110.00920.84
8.3.280.0110.00920.81
8.3.270.0140.00616.52
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.300.0060.00320.30
8.2.290.0110.00820.59
8.1.340.0100.01019.93

preferences:
47.16 ms | 403 KiB | 5 Q