3v4l.org

run code in 300+ PHP versions simultaneously
<?php function character_iterator ($str) { $len=strlen($str); for ($i=0;$i<$len;++$i) yield ord($str[$i]); } function code_point_iterator ($str) { $i=0; $cp=0; foreach (character_iterator(iconv('utf-8','utf-32be',$str)) as $b) { if ($i===4) { $i=0; yield $cp; $cp=0; } $cp<<=8; $cp|=$b; ++$i; } if ($i!==0) yield $cp; } foreach (code_point_iterator(mb_strtoupper('Scheiße')) as $cp) var_dump(\IntlChar::charName(\IntlChar::foldCase($cp))); ?>

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.0070.01316.88
8.3.50.0080.01221.99
8.3.40.0200.00018.79
8.3.30.0070.00718.70
8.3.20.0000.00720.21
8.3.10.0040.00423.65
8.3.00.0070.00019.85
8.2.180.0110.01116.75
8.2.170.0110.00422.96
8.2.160.0070.00720.39
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0030.00619.39
8.2.120.0070.00026.35
8.2.110.0080.00022.13
8.2.100.0090.00317.93
8.2.90.0000.00819.09
8.2.80.0040.00417.97
8.2.70.0000.00917.63
8.2.60.0080.00017.93
8.2.50.0090.00318.07
8.2.40.0030.00522.32
8.2.30.0000.00720.60
8.2.20.0000.00817.67
8.2.10.0050.00318.05
8.2.00.0040.00418.05
8.1.280.0140.00725.92
8.1.270.0100.00320.33
8.1.260.0080.00028.09
8.1.250.0000.00728.09
8.1.240.0060.00323.83
8.1.230.0040.00719.11
8.1.220.0000.00817.78
8.1.210.0060.00318.77
8.1.200.0050.00517.48
8.1.190.0000.00817.38
8.1.180.0040.00418.10
8.1.170.0040.00418.77
8.1.160.0040.00420.85
8.1.150.0000.00819.00
8.1.140.0040.00419.64
8.1.130.0030.00517.83
8.1.120.0040.00417.43
8.1.110.0040.00417.57
8.1.100.0050.00317.54
8.1.90.0000.00817.55
8.1.80.0070.00017.41
8.1.70.0040.00417.33
8.1.60.0040.00417.67
8.1.50.0000.00817.50
8.1.40.0030.00617.58
8.1.30.0030.00617.61
8.1.20.0000.00817.60
8.1.10.0080.00017.61
8.1.00.0040.00417.55
8.0.300.0040.00418.77
8.0.290.0000.00716.88
8.0.280.0000.00718.45
8.0.270.0030.00317.34
8.0.260.0030.00317.34
8.0.250.0000.00617.02
8.0.240.0000.00717.00
8.0.230.0080.00017.02
8.0.220.0030.00317.05
8.0.210.0020.00516.99
8.0.200.0000.00817.06
8.0.190.0000.01017.07
8.0.180.0050.00317.04
8.0.170.0040.00417.09
8.0.160.0000.00817.00
8.0.150.0040.00416.91
8.0.140.0050.00317.00
8.0.130.0030.00313.43
8.0.120.0030.00617.18
8.0.110.0030.00617.16
8.0.100.0000.00917.15
8.0.90.0030.00617.06
8.0.80.0100.01017.30
8.0.70.0090.00017.22
8.0.60.0000.00917.20
8.0.50.0000.00917.07
8.0.30.0100.00917.42
8.0.20.0100.01017.41
8.0.10.0030.00617.28
8.0.00.0060.01316.94
7.4.330.0020.00216.72
7.4.320.0060.00016.73
7.4.300.0040.00416.54
7.4.290.0070.00016.65
7.4.280.0040.00416.69
7.4.270.0040.00416.64
7.4.260.0000.00716.71
7.4.250.0000.00817.28
7.4.240.0020.00617.44
7.4.230.0040.00417.32
7.4.220.0110.00617.34
7.4.210.0130.00317.31
7.4.200.0000.00817.19
7.4.160.0150.00417.16
7.4.150.0110.01117.40
7.4.140.0150.00717.86
7.4.130.0090.01417.20
7.4.120.0080.01417.45
7.4.110.0090.01117.49
7.4.100.0030.01717.47
7.4.90.0100.01717.49
7.4.80.0060.01619.39
7.4.70.0150.00717.23
7.4.60.0130.00717.08
7.4.50.0090.01117.18
7.4.40.0100.01317.25
7.4.30.0140.01217.00
7.4.20.0160.01317.33
7.4.10.0210.00716.96
7.4.00.0100.00916.39
7.3.330.0000.00513.44
7.3.320.0050.00013.45
7.3.310.0000.00817.45
7.3.300.0060.00317.30
7.3.290.0090.00817.35
7.3.280.0100.01117.44
7.3.270.0120.00617.40
7.3.260.0160.01017.47
7.3.250.0140.01817.31
7.3.240.0130.00617.37
7.3.230.0060.01517.22
7.3.210.0150.00417.19
7.3.200.0100.01017.42
7.3.190.0170.00617.28
7.3.180.0090.01117.36
7.3.170.0150.01117.18
7.3.160.0110.00817.34
7.3.150.0090.01317.36
7.3.140.0110.00917.37
7.3.130.0130.01217.62
7.3.120.0070.01416.41
7.3.110.0030.01916.30
7.3.100.0140.00616.39
7.3.90.0130.00816.51
7.3.80.0080.00816.49
7.3.70.0060.00916.51
7.3.60.0090.00916.31
7.3.50.0020.01516.50
7.3.40.0060.00816.48
7.3.30.0100.01016.20
7.3.20.0530.00817.12
7.3.10.0050.01517.31
7.3.00.0070.00917.37
7.2.330.0130.00617.30
7.2.320.0100.01017.54
7.2.310.0100.01217.42
7.2.300.0090.01217.49
7.2.290.0130.00717.46
7.2.280.0060.01517.24
7.2.270.0210.01417.37
7.2.260.0140.01217.43
7.2.250.0060.01616.54
7.2.240.0130.01216.41
7.2.230.0050.01316.54
7.2.220.0090.00916.50
7.2.210.0000.01816.63
7.2.200.0070.01016.60
7.2.190.0070.01316.39
7.2.180.0050.01316.64
7.2.170.0110.00916.54
7.2.160.0070.01417.32
7.2.150.0110.01617.59
7.2.140.0060.02117.34
7.2.130.0080.01117.48
7.2.120.0860.01417.43
7.2.110.0070.01717.53
7.2.100.0110.01317.45
7.2.90.0160.01117.27
7.2.80.0110.01117.25
7.2.70.0030.01817.27
7.2.60.0200.00717.49
7.2.50.0200.00017.30
7.2.40.0200.00717.40
7.2.30.0650.01017.40
7.2.20.0680.01317.39
7.2.10.0120.00917.50
7.2.00.0100.00918.90
7.1.330.0120.01216.59
7.1.320.0120.00916.64
7.1.310.0090.01316.55
7.1.300.0110.00916.49
7.1.290.0150.01216.58
7.1.280.0120.01016.53
7.1.270.0170.00816.55
7.1.260.0100.01216.62
7.1.250.0240.00616.48
7.1.240.0200.01116.36
7.1.230.0130.01616.47
7.1.220.0260.00816.48
7.1.210.0250.01016.41
7.1.200.0180.00716.55
7.1.190.0210.00716.46
7.1.180.0130.01616.33
7.1.170.0250.01016.37
7.1.160.0160.01916.38
7.1.150.0070.02616.41
7.1.140.0210.00716.28
7.1.130.0190.00916.35
7.1.120.0260.00316.44
7.1.110.0250.00616.43
7.1.100.0150.01117.82
7.1.90.0220.01116.55
7.1.80.0240.00816.35
7.1.70.0110.00917.20
7.1.60.0160.01317.99
7.1.50.0240.01025.71
7.1.40.0220.00716.45
7.1.30.0270.00316.41
7.1.20.0170.01316.49
7.1.10.0240.00716.39
7.1.00.0120.04320.02
7.0.330.0280.00715.91
7.0.320.0230.01116.11
7.0.310.0190.01516.11
7.0.300.0210.01416.19
7.0.290.0180.01116.06
7.0.280.0250.00416.23
7.0.270.0130.01416.07
7.0.260.0120.01516.04
7.0.250.0260.00716.19
7.0.240.0280.00516.14
7.0.230.0140.02416.07
7.0.220.0180.01216.05
7.0.210.0160.01316.25
7.0.200.0360.00816.85
7.0.190.0240.00516.02
7.0.180.0200.01116.11
7.0.170.0160.01316.08
7.0.160.0260.01016.07
7.0.150.0130.01516.04
7.0.140.0200.01216.15
7.0.130.0220.00916.16
7.0.120.0400.01216.17
7.0.110.0160.01616.13
7.0.100.0190.01615.98
7.0.90.0230.01015.95
7.0.80.0230.00816.01
7.0.70.0140.01416.12
7.0.60.0180.03318.88
7.0.50.0460.02717.02
7.0.40.0090.02818.58
7.0.30.0200.04618.51
7.0.20.0250.04418.57
7.0.10.0120.02918.42
7.0.00.0140.05118.46
5.6.400.0170.01316.19
5.6.390.0190.01916.29
5.6.380.0210.01316.04
5.6.370.0150.01716.41
5.6.360.0150.01816.13
5.6.350.0280.01116.31
5.6.340.0220.00716.24
5.6.330.0160.01216.04
5.6.320.0180.02116.34
5.6.310.0150.01516.49
5.6.300.0080.02116.29
5.6.290.0210.00916.27
5.6.280.0120.04018.58
5.6.270.0130.01816.34
5.6.260.0210.01016.29
5.6.250.0270.01516.23
5.6.240.0210.01316.34
5.6.230.0150.01516.32
5.6.220.0260.00416.30
5.6.210.0140.02818.30
5.6.200.0150.04117.30
5.6.190.0100.05118.55
5.6.180.0240.04318.55
5.6.170.0220.04518.43
5.6.160.0140.02518.57
5.6.150.0100.02917.18
5.6.140.0140.04417.30
5.6.130.0140.04317.21
5.6.120.0190.03418.73
5.6.110.0160.04918.74
5.6.100.0120.03218.84
5.6.90.0130.05118.67
5.6.80.0100.02618.42
5.6.70.0150.02116.26
5.6.60.0210.01415.93
5.6.50.0180.01816.14
5.6.40.0240.00416.46
5.6.30.0110.01816.32
5.6.20.0180.00916.00
5.6.10.0140.01415.89
5.6.00.0220.00715.91
5.5.380.0200.01716.45
5.5.370.0240.00716.40
5.5.360.0160.01516.42
5.5.350.0180.03818.20
5.5.340.0080.05417.33
5.5.330.0100.05018.22
5.5.320.0250.02718.31
5.5.310.0190.02618.32
5.5.300.0110.04917.17
5.5.290.0180.02917.29
5.5.280.0170.04018.69
5.5.270.0160.03218.48
5.5.260.0290.03518.54
5.5.250.0190.04518.40
5.5.240.0210.04518.35
5.5.230.0190.01216.02
5.5.220.0130.01816.25
5.5.210.0120.02116.05
5.5.200.0200.01016.17
5.5.190.0250.00416.14
5.5.180.0140.01416.11
5.5.170.0140.01416.17
5.5.160.0190.00816.28
5.5.150.0140.01415.97
5.5.140.0150.01616.10
5.5.130.0200.01216.31
5.5.120.0240.00316.48
5.5.110.0160.01216.25
5.5.100.0170.01316.25
5.5.90.0220.00615.93
5.5.80.0210.00816.34
5.5.70.0260.00516.10
5.5.60.0200.01316.38
5.5.50.0220.00616.13
5.5.40.0200.00916.09
5.5.30.0210.01516.39
5.5.20.0200.01016.14
5.5.10.0150.01315.95
5.5.00.0180.00915.93

preferences:
35.29 ms | 401 KiB | 5 Q