3v4l.org

run code in 300+ PHP versions simultaneously
<?php $shortfn = fn($message) => (function($message){ $multi = 'I now have'; return $multi . ' ' . $message; })($message); echo $shortfn('multiple lines!');

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.3.140.0050.00317.01
8.3.130.0000.00818.43
8.3.120.0100.00018.95
8.3.110.0090.00020.94
8.3.100.0000.00924.06
8.3.90.0070.00026.77
8.3.80.0090.00018.18
8.3.70.0100.01016.38
8.3.60.0040.01118.30
8.3.50.0100.00716.47
8.3.40.0070.00721.76
8.3.30.0070.00719.09
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0080.00026.16
8.2.250.0050.00318.46
8.2.240.0070.00717.12
8.2.230.0060.00322.58
8.2.220.0070.00737.54
8.2.210.0130.00726.77
8.2.200.0090.00018.88
8.2.190.0120.00316.63
8.2.180.0090.00618.18
8.2.170.0120.00318.81
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0070.00024.66
8.2.130.0070.00026.16
8.2.120.0070.00019.76
8.2.110.0000.01022.26
8.2.100.0190.00418.90
8.1.300.0030.00618.48
8.1.290.0090.00030.84
8.1.280.0070.01025.92
8.1.270.0040.00420.67
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00618.54
8.1.230.0030.00720.35

preferences:
15.96 ms | 403 KiB | 5 Q