3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = "test"; echo array_reduce( str_split($data), fn($sum, $char) => $sum + ord($char) - 96, );

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.120.0110.01020.52
8.4.110.0130.00722.54
8.4.100.0090.01218.53
8.4.90.0120.00818.77
8.4.80.0140.00618.71
8.4.70.0110.00817.88
8.4.60.0080.00619.05
8.4.50.0120.00718.82
8.4.40.0130.00717.60
8.4.30.0000.00818.57
8.4.20.0100.01017.61
8.4.10.0040.00419.36
8.3.250.0100.00618.83
8.3.240.0140.00416.85
8.3.230.0110.00916.68
8.3.220.0100.00818.81
8.3.210.0130.00616.67
8.3.200.0070.00216.39
8.3.190.0140.00717.19
8.3.180.0100.00917.21
8.3.170.0130.00319.12
8.3.160.0160.00320.27
8.3.150.0040.01118.34
8.3.140.0000.01818.94
8.3.130.0080.00018.38
8.3.120.0090.00020.68
8.3.110.0040.00420.94
8.3.100.0120.00624.06
8.3.90.0000.00726.77
8.3.80.0000.00917.97
8.3.70.0120.00916.37
8.3.60.0110.01118.33
8.3.50.0110.01118.36
8.3.40.0070.00720.11
8.3.30.0120.00620.34
8.3.20.0080.00024.18
8.3.10.0000.00824.66
8.3.00.0120.00528.09
8.2.290.0130.00520.50
8.2.280.0110.00818.44
8.2.270.0070.01118.54
8.2.260.0140.00418.17
8.2.250.0040.00418.35
8.2.240.0060.00317.23
8.2.230.0170.00022.58
8.2.220.0050.00537.54
8.2.210.0080.00026.77
8.2.200.0060.00316.75
8.2.190.0090.00916.72
8.2.180.0130.00618.41
8.2.170.0100.00718.91
8.2.160.0070.01022.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0120.00728.09
8.2.120.0100.00828.09
8.2.110.0140.00428.09
8.2.100.0080.00928.09
8.2.90.0100.00528.09
8.2.80.0100.00528.09
8.2.70.0040.01028.09
8.2.60.0070.00728.09
8.2.50.0110.00628.09
8.2.40.0090.00728.09
8.2.30.0090.00628.09
8.2.20.0080.00428.09
8.2.10.0060.00628.09
8.2.00.0080.00728.09
8.1.330.0130.00621.73
8.1.320.0120.00715.99
8.1.310.0100.01018.40
8.1.300.0130.00716.23
8.1.290.0000.01030.84
8.1.280.0140.00025.92
8.1.270.0040.00422.00
8.1.260.0070.00728.09
8.1.250.0040.00828.09
8.1.240.0110.00428.09
8.1.230.0070.00728.09
8.1.220.0070.00728.09
8.1.210.0050.00528.09
8.1.200.0090.00228.09
8.1.190.0050.00528.09
8.1.180.0040.00728.09
8.1.170.0040.00428.09
8.1.160.0020.00628.09
8.1.150.0070.00128.09
8.1.140.0070.00328.09
8.1.130.0040.00328.09
8.1.120.0050.00328.09
8.1.110.0070.00228.09
8.1.100.0040.00428.09
8.1.90.0050.00328.09
8.1.80.0050.00328.09
8.1.70.0040.00428.09
8.1.60.0040.00428.09
8.1.50.0040.00428.09
8.1.40.0070.00328.09
8.1.30.0040.00428.09
8.1.20.0060.00328.09
8.1.10.0040.00528.09
8.1.00.0050.00528.09

preferences:
26.91 ms | 403 KiB | 5 Q