3v4l.org

run code in 300+ PHP versions simultaneously
<?php $title = 'Rotterdam'; $id = ''; $id = array_reduce(str_split($title), function($id, $character) { return $id . (string) ord ($character); }, $id); echo $id;

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.60.0110.00718.43
8.3.50.0090.00918.16
8.3.40.0110.00418.62
8.3.30.0110.00418.72
8.3.20.0000.00820.29
8.3.10.0050.00320.86
8.3.00.0030.00520.96
8.2.180.0030.01716.63
8.2.170.0060.01222.96
8.2.160.0040.01119.29
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0090.00019.85
8.2.120.0070.00026.35
8.2.110.0000.00922.26
8.2.100.0040.00817.78
8.2.90.0040.00419.28
8.2.80.0040.00418.03
8.2.70.0100.00017.63
8.2.60.0000.00818.03
8.2.50.0040.00418.10
8.2.40.0040.00422.32
8.2.30.0040.00419.12
8.2.20.0020.00518.04
8.2.10.0020.00518.13
8.2.00.0080.00017.99
8.1.280.0120.00625.92
8.1.270.0080.00022.12
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0060.00320.86
8.1.230.0060.00619.20
8.1.220.0050.00317.76
8.1.210.0000.00818.77
8.1.200.0060.00317.36
8.1.190.0000.00917.48
8.1.180.0050.00218.10
8.1.170.0050.00518.71
8.1.160.0000.00819.01
8.1.150.0020.00518.80
8.1.140.0060.00319.48
8.1.130.0030.00318.93
8.1.120.0000.00817.44
8.1.110.0040.00417.50
8.1.100.0030.00617.50
8.1.90.0000.00717.50
8.1.80.0040.00417.34
8.1.70.0040.00417.42
8.1.60.0040.00417.60
8.1.50.0030.00717.56
8.1.40.0070.00017.44
8.1.30.0040.00417.60
8.1.20.0040.00417.65
8.1.10.0070.00017.57
8.1.00.0000.00817.42
8.0.300.0080.00018.77
8.0.290.0040.00416.58
8.0.280.0030.00318.34
8.0.270.0050.00317.21
8.0.260.0000.00720.78
8.0.250.0000.00716.98
8.0.240.0030.00316.82
8.0.230.0030.00316.89
8.0.220.0070.00016.75
8.0.210.0000.01116.88
8.0.200.0030.00316.95
8.0.190.0000.00816.91
8.0.180.0020.00516.87
8.0.170.0040.00416.86
8.0.160.0110.00016.88
8.0.150.0040.00416.90
8.0.140.0040.00416.86
8.0.130.0050.00013.33
8.0.120.0000.00716.85
8.0.110.0050.00216.72
8.0.100.0040.00416.76
8.0.90.0070.00316.77
8.0.80.0000.01416.84
8.0.70.0040.00416.91
8.0.60.0000.00716.70
8.0.50.0040.00416.70
8.0.30.0090.00917.11
8.0.20.0150.00617.40
8.0.10.0030.00516.89
8.0.00.0150.00316.88
7.4.330.0000.00515.55
7.4.320.0030.00316.50
7.4.300.0000.00616.59
7.4.290.0070.00016.39
7.4.280.0000.01016.57
7.4.270.0040.00416.59
7.4.260.0030.00316.49
7.4.250.0030.00516.36
7.4.240.0030.00316.57
7.4.230.0030.00316.42
7.4.220.0100.00716.54
7.4.210.0070.00716.51
7.4.200.0040.00216.59
7.4.160.0080.01016.37
7.4.150.0090.00917.40
7.4.140.0120.00717.86
7.4.130.0060.01216.45
7.4.120.0140.00416.54
7.4.110.0130.00616.36
7.4.100.0090.00916.42
7.4.90.0090.01116.75
7.4.80.0160.00619.39
7.4.70.0130.00316.51
7.4.60.0060.01716.36
7.4.50.0070.00716.48
7.4.40.0120.00916.64
7.4.30.0130.00316.55
7.4.00.0040.01414.94
7.3.330.0000.00513.31
7.3.320.0000.00513.02
7.3.310.0040.00416.29
7.3.300.0040.00416.16
7.3.290.0100.00616.27
7.3.280.0100.00716.30
7.3.270.0060.01517.40
7.3.260.0130.00316.32
7.3.250.0060.01116.46
7.3.240.0130.00416.47
7.3.230.0170.00016.37
7.3.210.0100.00716.21
7.3.200.0070.01016.35
7.3.190.0140.02816.27
7.3.180.0090.00916.47
7.3.170.0080.00816.37
7.3.160.0090.00616.56
7.2.330.0090.00916.58
7.2.320.0060.01316.40
7.2.310.0090.00916.84
7.2.300.0130.00716.58
7.2.290.0060.00916.49
7.2.60.0130.00316.95
7.1.200.0000.01415.46
7.1.70.0080.01017.33
7.1.60.0290.01435.09
7.1.50.0270.01334.79
7.1.40.0250.00934.45
7.1.30.0230.01434.70
7.1.20.0210.01834.61
7.1.10.0100.00716.49
7.1.00.0100.01016.62
7.0.200.0050.01416.69
7.0.190.0000.01916.60
7.0.180.0110.00616.22
7.0.170.0080.00816.45
7.0.160.0030.01416.27
7.0.150.0100.00616.29
7.0.140.0040.01316.30
7.0.130.0030.01516.40
7.0.120.0080.00816.48
7.0.110.0080.00916.41
7.0.100.0100.00716.23
7.0.90.0070.01016.59
7.0.80.0060.01216.48
7.0.70.0030.01716.34
7.0.60.0070.01416.09
7.0.50.0030.01716.52
7.0.40.0060.01516.47
7.0.30.0070.01316.49
7.0.20.0060.00916.59
7.0.10.0030.01216.59
7.0.00.0070.01316.50

preferences:
60.08 ms | 400 KiB | 5 Q