3v4l.org

run code in 300+ PHP versions simultaneously
<?php $title = 'Rotterdam'; $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.110.0030.00718.18
8.3.100.0040.00424.06
8.3.90.0080.00026.77
8.3.80.0070.00318.43
8.3.70.0110.00416.75
8.3.60.0150.00418.13
8.3.50.0120.00817.47
8.3.40.0000.01518.46
8.3.30.0040.01118.58
8.3.20.0040.00420.29
8.3.10.0040.00420.91
8.3.00.0060.00320.84
8.2.230.0060.00320.94
8.2.220.0030.00637.54
8.2.210.0040.01526.77
8.2.200.0090.00016.38
8.2.190.0090.00616.58
8.2.180.0090.01216.72
8.2.170.0070.00722.96
8.2.160.0130.00019.21
8.2.150.0000.00924.18
8.2.140.0000.00824.66
8.2.130.0000.00819.59
8.2.120.0070.00026.35
8.2.110.0000.00822.29
8.2.100.0000.01217.78
8.2.90.0000.00819.21
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0040.00417.80
8.2.50.0040.00418.10
8.2.40.0040.00422.36
8.2.30.0000.00819.31
8.2.20.0030.00517.93
8.2.10.0040.00318.17
8.2.00.0030.00318.03
8.1.290.0000.00930.84
8.1.280.0120.00625.92
8.1.270.0040.00421.91
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0060.00320.94
8.1.230.0070.00319.02
8.1.220.0000.00817.79
8.1.210.0000.00918.77
8.1.200.0000.00817.35
8.1.190.0040.00417.38
8.1.180.0020.00518.10
8.1.170.0080.00018.66
8.1.160.0040.00418.95
8.1.150.0030.00618.88
8.1.140.0000.00719.57
8.1.130.0030.00318.89
8.1.120.0040.00417.43
8.1.110.0000.00717.48
8.1.100.0000.00817.33
8.1.90.0000.00717.52
8.1.80.0040.00417.45
8.1.70.0050.00317.50
8.1.60.0000.00817.56
8.1.50.0050.00517.49
8.1.40.0040.00417.33
8.1.30.0040.00417.60
8.1.20.0040.00417.54
8.1.10.0000.00717.54
8.1.00.0000.00917.44
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0030.00318.44
8.0.270.0000.00717.30
8.0.260.0070.00020.67
8.0.250.0030.00316.96
8.0.240.0040.00416.98
8.0.230.0050.00316.90
8.0.220.0000.00816.77
8.0.210.0080.00316.58
8.0.200.0040.00416.95
8.0.190.0000.00816.84
8.0.180.0000.00716.93
8.0.170.0040.00416.93
8.0.160.0030.00616.93
8.0.150.0000.00816.89
8.0.140.0000.00716.86
8.0.130.0050.00013.24
8.0.120.0000.00716.82
8.0.110.0000.00716.73
8.0.100.0040.00416.86
8.0.90.0060.00316.66
8.0.80.0090.00616.83
8.0.70.0070.00016.94
8.0.60.0080.00016.91
8.0.50.0000.00716.88
8.0.30.0100.00717.08
8.0.20.0080.01117.40
8.0.10.0050.00216.86
8.0.00.0070.01016.69
7.4.330.0050.00015.55
7.4.320.0030.00316.52
7.4.300.0030.00316.47
7.4.290.0000.00816.51
7.4.280.0040.00416.56
7.4.270.0000.00716.52
7.4.260.0070.00016.57
7.4.250.0050.00316.55
7.4.240.0000.00716.50
7.4.230.0040.00416.66
7.4.220.0100.00916.50
7.4.210.0100.00816.55
7.4.200.0000.00716.40
7.4.160.0090.00816.52
7.4.150.0090.01617.40
7.4.140.0110.00917.86
7.4.130.0100.00716.66
7.4.120.0110.00716.49
7.4.110.0190.00316.55
7.4.100.0060.01116.50
7.4.90.0070.01016.67
7.4.80.0100.01319.39
7.4.70.0030.01416.34
7.4.60.0080.00716.50
7.4.50.0070.01116.57
7.4.40.0100.01016.66
7.4.30.0030.01616.36
7.4.00.0110.00415.03
7.3.330.0060.00013.34
7.3.320.0000.00513.32
7.3.310.0070.00016.19
7.3.300.0000.00816.34
7.3.290.0110.00516.29
7.3.280.0090.00916.26
7.3.270.0150.00317.40
7.3.260.0110.00916.51
7.3.250.0100.00616.42
7.3.240.0080.00816.43
7.3.230.0080.00816.30
7.3.210.0040.01216.37
7.3.200.0090.00616.33
7.3.190.0130.01016.63
7.3.180.0060.01116.43
7.3.170.0130.01016.63
7.3.160.0070.01016.30
7.2.330.0150.00516.61
7.2.320.0110.00816.64
7.2.310.0110.00516.64
7.2.300.0120.00616.59
7.2.290.0140.00316.54
7.2.60.0040.00716.54
7.2.50.0130.00316.74
7.1.200.0060.00615.73
7.1.70.0060.01417.13
7.1.60.0260.02035.02
7.1.50.0340.01334.88
7.1.40.0310.01034.52
7.1.30.4170.02032.70
7.1.20.4080.01732.91
7.1.10.3240.00814.68
7.1.00.0100.01016.76
7.0.200.0100.00916.79
7.0.190.0060.01316.72
7.0.180.0070.01316.37
7.0.170.0140.00916.00
7.0.160.0060.01316.40
7.0.150.0100.01016.28
7.0.140.0100.01016.38
7.0.130.0030.01616.46
7.0.120.0100.01016.42
7.0.110.0100.00916.41
7.0.100.0070.01116.45
7.0.90.0070.01116.34
7.0.80.0120.00916.35
7.0.70.0060.01516.39
7.0.60.0070.01316.25
7.0.50.0140.00316.63
7.0.40.0110.00716.45
7.0.30.0000.01916.57
7.0.20.0100.00916.33
7.0.10.0090.00916.36
7.0.00.0070.01416.22

preferences:
51.04 ms | 403 KiB | 5 Q