3v4l.org

run code in 500+ 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.5.70.0080.00816.76
8.5.60.0110.00816.71
8.5.50.0070.01016.54
8.5.30.0080.00919.46
8.5.20.0090.00818.53
8.5.10.0100.01018.38
8.5.00.0110.01019.90
8.4.220.0110.00922.07
8.4.210.0120.00919.54
8.4.180.0050.00525.73
8.4.170.0120.00923.93
8.4.160.0140.00823.99
8.4.150.0050.00716.78
8.4.140.0140.00717.64
8.4.130.0060.00317.55
8.4.120.0110.00920.77
8.4.110.0110.00522.50
8.4.100.0120.00617.41
8.4.90.0100.00820.33
8.4.80.0030.00917.79
8.4.70.0080.00817.64
8.4.60.0100.01118.94
8.4.50.0060.00320.57
8.4.40.0160.00617.73
8.4.30.0160.00320.41
8.4.20.0130.00717.81
8.4.10.0100.00019.02
8.3.310.0160.00518.35
8.3.300.0130.00820.41
8.3.290.0140.00622.59
8.3.280.0160.00418.31
8.3.270.0150.00516.77
8.3.260.0090.00916.63
8.3.250.0130.00518.74
8.3.240.0060.00217.17
8.3.230.0070.00216.49
8.3.220.0040.00419.03
8.3.210.0090.00916.68
8.3.200.0030.00516.59
8.3.190.0050.00317.37
8.3.180.0100.01016.72
8.3.170.0110.00717.11
8.3.160.0040.00418.54
8.3.150.0040.01420.70
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.310.0070.00418.13
8.2.300.0120.00718.07
8.2.290.0090.01020.38
8.2.280.0130.00618.31
8.2.270.0140.00417.03
8.2.260.0100.00718.73
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.340.0100.01021.48
8.1.330.0100.00921.96
8.1.320.0140.00616.23
8.1.310.0060.00316.70
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:
72.84 ms | 870 KiB | 5 Q