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('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.40.0120.00318.55
8.3.30.0110.00418.89
8.3.20.0070.00020.16
8.3.10.0040.00423.66
8.3.00.0030.00519.72
8.2.170.0110.00422.96
8.2.160.0000.01420.47
8.2.150.0070.00024.18
8.2.140.0030.00524.66
8.2.130.0060.00321.11
8.2.120.0040.00426.35
8.2.110.0080.00022.12
8.2.100.0040.00817.91
8.2.90.0040.00419.13
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0000.00818.05
8.2.50.0040.00718.07
8.2.40.0000.00722.32
8.2.30.0070.00020.70
8.2.20.0000.00717.60
8.2.10.0040.00418.20
8.2.00.0040.00418.16
8.1.270.0110.00320.38
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00323.83
8.1.230.0000.01119.00
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0040.00417.25
8.1.180.0050.00318.10
8.1.170.0000.00818.59
8.1.160.0040.00420.82
8.1.150.0040.00418.78
8.1.140.0030.00519.50
8.1.130.0070.00017.72
8.1.120.0070.00017.48
8.1.110.0050.00217.52
8.1.100.0000.00717.45
8.1.90.0030.00717.39
8.1.80.0000.00817.41
8.1.70.0000.00717.31
8.1.60.0050.00217.58
8.1.50.0040.00417.53
8.1.40.0080.00017.53
8.1.30.0000.00917.50
8.1.20.0040.00417.65
8.1.10.0000.00817.40
8.1.00.0040.00417.48
8.0.300.0040.00418.77
8.0.290.0030.00616.88
8.0.280.0030.00318.52
8.0.270.0000.00717.21
8.0.260.0000.00617.27
8.0.250.0030.00316.97
8.0.240.0000.00817.05
8.0.230.0000.00817.10
8.0.220.0040.00416.90
8.0.210.0050.00216.93
8.0.200.0070.00017.00
8.0.190.0080.00516.99
8.0.180.0000.00717.04
8.0.170.0040.00416.88
8.0.160.0000.00816.90
8.0.150.0040.00416.94
8.0.140.0070.00016.92
8.0.130.0050.00013.46
8.0.120.0060.00317.09
8.0.110.0000.00917.07
8.0.100.0030.00617.00
8.0.90.0000.00917.02
8.0.80.0120.01317.13
8.0.70.0090.00017.09
8.0.60.0000.00916.92
8.0.50.0060.00317.03
8.0.30.0070.01317.42
8.0.20.0100.01117.40
8.0.10.0050.00517.30
8.0.00.0100.00816.91
7.4.330.0060.00016.80
7.4.320.0000.00616.43
7.4.300.0040.00416.61
7.4.290.0070.00016.62
7.4.280.0000.00816.60
7.4.270.0030.00316.48
7.4.260.0040.00416.64
7.4.250.0000.00817.28
7.4.240.0030.00617.36
7.4.230.0040.00417.19
7.4.220.0090.00917.31
7.4.210.0160.00017.27
7.4.200.0030.00617.15
7.4.160.0100.01017.33
7.4.150.0060.01317.47
7.4.140.0080.01617.86
7.4.130.0120.01117.24
7.4.120.0140.01217.35
7.4.110.0090.01117.27
7.4.100.0110.01117.22
7.4.90.0060.01417.33
7.4.80.0120.01219.39
7.4.70.0070.01317.18
7.4.60.0110.01117.08
7.4.50.0090.00917.06
7.4.40.0110.01317.06
7.4.30.0170.00717.06
7.4.20.0120.01217.02
7.4.10.0090.01116.84
7.4.00.0100.00916.64
7.3.330.0060.00013.18
7.3.320.0050.00013.28
7.3.310.0080.00017.18
7.3.300.0030.00517.18
7.3.290.0060.01117.17
7.3.280.0060.01217.26
7.3.270.0140.00617.40
7.3.260.0100.00917.28
7.3.250.0100.01017.41
7.3.240.0130.00917.39
7.3.230.0040.01717.26
7.3.210.0110.00717.43
7.3.200.0100.01417.44
7.3.190.0130.00917.25
7.3.180.0100.01217.27
7.3.170.0120.00917.35
7.3.160.0100.01117.23
7.3.150.0100.01617.13
7.3.140.0050.01417.21
7.3.130.0100.01017.27
7.3.120.0150.00517.12
7.3.110.0130.00717.08
7.3.100.0080.01217.09
7.3.90.0080.01117.14
7.3.80.0170.00317.28
7.3.70.0070.01517.10
7.3.60.0080.01217.13
7.3.50.0120.00817.17
7.3.40.0100.01017.21
7.3.30.0120.01217.16
7.3.20.0650.01317.10
7.3.10.0150.00817.15
7.3.00.0180.00317.16
7.2.330.0110.00817.27
7.2.320.0200.00717.53
7.2.310.0090.01217.39
7.2.300.0100.01217.49
7.2.290.0100.00917.26
7.2.280.0120.01517.39
7.2.270.0120.00817.27
7.2.260.0060.01617.14
7.2.250.0100.01017.30
7.2.240.0040.02117.44
7.2.230.0110.00917.15
7.2.220.0070.01317.45
7.2.210.0100.01317.32
7.2.200.0030.01717.23
7.2.190.0150.00617.32
7.2.180.0080.01317.21
7.2.170.0120.00917.32
7.2.160.0030.01917.29
7.2.150.0050.02317.40
7.2.140.0070.01417.46
7.2.130.0070.01417.40
7.2.120.0110.01717.27
7.2.110.0060.01617.40
7.2.100.0140.00717.41
7.2.90.0180.00717.21
7.2.80.0180.00317.32
7.2.70.0100.01017.42
7.2.60.0260.00717.21
7.2.50.0120.01017.35
7.2.40.0070.01417.43
7.2.30.0410.00817.35
7.2.20.0110.01217.22
7.2.10.0100.01017.13
7.2.00.0090.01318.93
7.1.330.0260.00316.57
7.1.320.0220.01216.45
7.1.310.0200.00916.37
7.1.300.0260.01116.23
7.1.290.0210.00916.47
7.1.280.0250.00616.34
7.1.270.0320.00316.27
7.1.260.0200.01216.34
7.1.250.0120.01816.49
7.1.240.0650.00416.29
7.1.230.0210.00916.31
7.1.220.0240.01216.23
7.1.210.0270.00416.23
7.1.200.0170.00716.48
7.1.190.0240.01916.56
7.1.180.0280.00016.28
7.1.170.0200.00916.40
7.1.160.0170.01316.44
7.1.150.0240.00616.45
7.1.140.0810.01016.39
7.1.130.0230.00816.39
7.1.120.0200.01116.43
7.1.110.0290.00416.35
7.1.100.0180.00917.70
7.1.90.0200.01016.19
7.1.80.0160.01916.32
7.1.70.0150.01117.18
7.1.60.0210.00917.98
7.1.50.0120.01325.65
7.1.40.0150.01916.29
7.1.30.1240.01416.30
7.1.20.0240.01116.32
7.1.10.0190.01316.28
7.1.00.0170.04219.98
7.0.330.0170.01316.11
7.0.320.0190.01016.09
7.0.310.0170.01016.02
7.0.300.0200.00715.99
7.0.290.0190.01015.96
7.0.280.0140.01816.04
7.0.270.0240.00515.94
7.0.260.0140.01715.98
7.0.250.0220.00816.11
7.0.240.0170.01716.12
7.0.230.0190.01116.02
7.0.220.0300.00516.13
7.0.210.0190.01916.02
7.0.200.0270.00916.74
7.0.190.0160.01315.94
7.0.180.0210.00916.08
7.0.170.0190.01115.96
7.0.160.0190.01516.09
7.0.150.0170.01216.13
7.0.140.0120.02016.05
7.0.130.0190.01916.04
7.0.120.0220.00816.23
7.0.110.0190.02016.18
7.0.100.0350.00416.04
7.0.90.0200.01016.00
7.0.80.0230.01016.02
7.0.70.0230.00816.00
7.0.60.0200.01817.99
7.0.50.0170.04517.04
7.0.40.0410.03018.59
7.0.30.0200.04218.44
7.0.20.0240.04518.48
7.0.10.0180.04418.50
7.0.00.0360.05318.56
5.6.400.0190.01416.29
5.6.390.0240.01516.18
5.6.380.0210.00916.51
5.6.370.0140.01416.33
5.6.360.0200.01116.23
5.6.350.0180.01615.89
5.6.340.0170.01415.75
5.6.330.0170.01316.57
5.6.320.0170.01515.71
5.6.310.0180.01515.82
5.6.300.0190.01316.27
5.6.290.0180.01516.31
5.6.280.0180.04018.60
5.6.270.0160.01616.28
5.6.260.0080.02916.20
5.6.250.0150.02316.09
5.6.240.0260.00916.15
5.6.230.0200.01016.32
5.6.220.0180.01116.25
5.6.210.0110.03418.42
5.6.200.0110.02817.34
5.6.190.0160.02818.44
5.6.180.0200.02618.43
5.6.170.0310.04418.41
5.6.160.0130.03218.33
5.6.150.0140.02717.33
5.6.140.0120.02717.28
5.6.130.0100.02717.31
5.6.120.0190.04218.63
5.6.110.0140.04918.68
5.6.100.0080.03718.63
5.6.90.0140.04718.57
5.6.80.0170.03118.45
5.6.70.0250.00815.93
5.6.60.0130.02316.33
5.6.50.0250.00816.16
5.6.40.0230.01315.95
5.6.30.0120.01616.11
5.6.20.0260.01416.07
5.6.10.0260.01116.04
5.6.00.0250.01116.02
5.5.380.0180.01715.96
5.5.370.0180.01316.25
5.5.360.0190.01016.21
5.5.350.0200.04318.26
5.5.340.0120.04717.30
5.5.330.0140.02618.34
5.5.320.0140.04418.38
5.5.310.0130.03518.21
5.5.300.0100.03417.26
5.5.290.0120.04017.02
5.5.280.0080.03618.44
5.5.270.0090.03018.64
5.5.260.0130.04318.59
5.5.250.0130.05218.44
5.5.240.0180.02818.22
5.5.230.0200.01716.03
5.5.220.0220.01615.98
5.5.210.0270.00815.99
5.5.200.0180.01315.97
5.5.190.0230.01516.08
5.5.180.0260.01516.18
5.5.170.0130.01816.11
5.5.160.0080.02616.14
5.5.150.0180.01216.21
5.5.140.0200.01116.04
5.5.130.0190.01316.05
5.5.120.0250.00616.07
5.5.110.0080.02416.15
5.5.100.0190.01216.08
5.5.90.0180.01216.07
5.5.80.0260.00715.83
5.5.70.0240.00816.17
5.5.60.0290.00916.04
5.5.50.0180.01215.95
5.5.40.0150.01515.93
5.5.30.0190.01116.05
5.5.20.0100.02215.96
5.5.10.0240.01116.14
5.5.00.0220.00916.17

preferences:
43.22 ms | 400 KiB | 5 Q