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('TURKEY') 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.01016.88
8.3.50.0100.00922.04
8.3.40.0110.00418.54
8.3.30.0090.00618.67
8.3.20.0030.00520.36
8.3.10.0020.00523.53
8.3.00.0060.00319.66
8.2.180.0150.00616.75
8.2.170.0110.00322.96
8.2.160.0030.01220.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00319.21
8.2.120.0000.00826.35
8.2.110.0060.00320.57
8.2.100.0090.00318.04
8.2.90.0000.00819.22
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0040.00418.05
8.2.50.0040.00818.07
8.2.40.0060.00322.35
8.2.30.0030.00520.70
8.2.20.0040.00417.73
8.2.10.0080.00018.01
8.2.00.0000.00718.07
8.1.280.0100.01025.92
8.1.270.0040.01120.24
8.1.260.0080.00028.09
8.1.250.0120.00328.09
8.1.240.0060.00322.01
8.1.230.0040.00717.76
8.1.220.0030.00617.78
8.1.210.0000.00818.77
8.1.200.0000.00917.35
8.1.190.0050.00317.13
8.1.180.0000.00818.10
8.1.170.0040.00418.66
8.1.160.0000.00720.68
8.1.150.0000.00818.82
8.1.140.0050.00319.53
8.1.130.0070.00317.77
8.1.120.0000.00717.38
8.1.110.0080.00017.50
8.1.100.0030.00517.47
8.1.90.0020.00517.50
8.1.80.0000.00717.43
8.1.70.0000.00717.39
8.1.60.0040.00417.51
8.1.50.0030.00517.50
8.1.40.0030.00717.59
8.1.30.0050.00317.55
8.1.20.0000.00817.65
8.1.10.0040.00417.37
8.1.00.0040.00417.44
8.0.300.0050.00318.77
8.0.290.0020.00516.75
8.0.280.0050.00318.49
8.0.270.0050.00217.28
8.0.260.0050.00317.34
8.0.250.0000.00716.93
8.0.240.0000.00717.05
8.0.230.0030.00316.92
8.0.220.0040.00416.95
8.0.210.0080.00016.83
8.0.200.0000.00617.04
8.0.190.0080.00316.90
8.0.180.0030.00517.01
8.0.170.0000.00716.98
8.0.160.0040.00416.95
8.0.150.0000.00716.87
8.0.140.0030.00516.88
8.0.130.0050.00013.44
8.0.120.0030.00617.14
8.0.110.0000.00817.20
8.0.100.0060.00317.15
8.0.90.0060.00317.03
8.0.80.0100.01017.11
8.0.70.0090.00017.18
8.0.60.0030.00616.99
8.0.50.0090.00016.94
8.0.30.0060.01317.19
8.0.20.0090.01117.41
8.0.10.0000.00917.29
8.0.00.0110.00816.93
7.4.330.0030.00316.66
7.4.320.0000.00616.52
7.4.300.0030.00316.57
7.4.290.0000.00716.57
7.4.280.0030.00516.51
7.4.270.0000.00716.49
7.4.260.0070.00016.51
7.4.250.0000.00917.34
7.4.240.0040.00517.31
7.4.230.0000.00817.45
7.4.220.0090.00917.43
7.4.210.0070.01017.25
7.4.200.0050.00317.40
7.4.160.0140.01017.32
7.4.150.0140.01917.50
7.4.140.0110.01117.86
7.4.130.0130.01117.36
7.4.120.0090.01617.28
7.4.110.0110.00917.41
7.4.100.0120.00917.38
7.4.90.0150.01117.36
7.4.80.0070.01819.39
7.4.70.0060.01517.19
7.4.60.0050.01917.16
7.4.50.0090.01217.20
7.4.40.0100.01217.07
7.4.30.0090.01216.90
7.4.20.0200.00317.03
7.4.10.0110.01315.99
7.4.00.0090.01316.09
7.3.330.0050.00013.29
7.3.320.0000.00613.32
7.3.310.0030.00517.33
7.3.300.0030.00617.12
7.3.290.0060.01317.19
7.3.280.0060.01417.10
7.3.270.0080.01617.48
7.3.260.0120.00917.16
7.3.250.0100.01017.20
7.3.240.0130.00617.22
7.3.230.0120.00917.38
7.3.210.0080.01217.40
7.3.200.0100.01717.59
7.3.190.0080.01217.25
7.3.180.0140.01417.45
7.3.170.0070.01417.27
7.3.160.0110.01017.35
7.3.150.0090.01417.45
7.3.140.0080.01216.98
7.3.130.0150.00716.16
7.3.120.0090.01316.09
7.3.110.0130.01015.90
7.3.100.0090.01016.08
7.3.90.0090.00816.07
7.3.80.0090.01016.00
7.3.70.0100.00616.04
7.3.60.0100.00916.05
7.3.50.0100.01115.99
7.3.40.0040.01615.92
7.3.30.0040.01316.03
7.3.20.0120.00917.36
7.3.10.0280.00817.31
7.3.00.0080.01017.27
7.2.330.0090.01217.28
7.2.320.0070.01317.61
7.2.310.0140.00517.51
7.2.300.0050.01517.37
7.2.290.0130.00617.47
7.2.280.0080.01417.50
7.2.270.0060.01617.47
7.2.260.0090.01516.37
7.2.250.0150.01016.15
7.2.240.0120.00716.30
7.2.230.0060.01416.14
7.2.220.0090.01316.19
7.2.210.0080.01116.38
7.2.200.0050.01016.28
7.2.190.0060.01216.12
7.2.180.0040.01316.23
7.2.170.0080.00916.24
7.2.160.0090.00916.33
7.2.150.0090.00917.49
7.2.140.0130.00917.38
7.2.130.0080.00717.47
7.2.120.0070.01217.56
7.2.110.0120.00417.39
7.2.100.0090.00817.45
7.2.90.0050.01117.47
7.2.80.0060.01217.54
7.2.70.0100.01117.47
7.2.60.0050.01417.46
7.2.50.0140.00517.54
7.2.40.0090.01017.56
7.2.30.0060.01117.60
7.2.20.0100.00617.64
7.2.10.0070.01217.45
7.2.00.0070.01117.48
7.1.330.0080.01016.59
7.1.320.0060.01416.38
7.1.310.0060.01216.48
7.1.300.0140.00916.59
7.1.290.0110.01116.48
7.1.280.0110.00916.52
7.1.270.0140.00916.42
7.1.260.0080.01116.51
7.1.250.0110.01116.45
7.1.240.0080.00716.40
7.1.230.0060.00816.48
7.1.220.0130.00916.61
7.1.210.0060.01016.58
7.1.200.0080.00916.62
7.1.190.0160.00816.46
7.1.180.0140.00916.59
7.1.170.0060.01016.48
7.1.160.0130.00816.48
7.1.150.0080.01016.48
7.1.140.0180.01316.38
7.1.130.0110.00916.45
7.1.120.0060.01016.55
7.1.110.0100.00916.43
7.1.100.0110.01016.53
7.1.90.0140.00716.46
7.1.80.0130.00716.50
7.1.70.0090.01016.96
7.1.60.0130.01117.34
7.1.50.0080.01321.16
7.1.40.0090.00916.57
7.1.30.0130.00716.34
7.1.20.0100.00916.29
7.1.10.0090.01116.42
7.1.00.0100.02618.21
7.0.330.0150.00716.13
7.0.320.0110.01016.11
7.0.310.0060.00816.17
7.0.300.1270.00516.14
7.0.290.0120.00816.10
7.0.280.0100.00815.91
7.0.270.0350.00816.14
7.0.260.0070.01316.11
7.0.250.0090.00916.23
7.0.240.0110.00816.27
7.0.230.0120.00916.16
7.0.220.0090.01016.03
7.0.210.0060.01016.24
7.0.200.0070.00816.55
7.0.190.0070.01016.27
7.0.180.0100.01116.03
7.0.170.0100.01016.14
7.0.160.0110.01016.12
7.0.150.0100.01316.13
7.0.140.0100.00916.12
7.0.130.0140.00816.24
7.0.120.0110.01216.22
7.0.110.0100.00716.11
7.0.100.0110.00916.16
7.0.90.0130.00916.02
7.0.80.0070.01216.09
7.0.70.0380.00916.18
7.0.60.0330.02716.99
7.0.50.0120.02816.65
7.0.40.0130.01916.45
7.0.30.0150.02216.34
7.0.20.0290.02916.21
7.0.10.0190.02216.39
7.0.00.0100.01916.35
5.6.400.0070.01515.14
5.6.390.0080.01215.14
5.6.380.0100.01215.12
5.6.370.0040.01215.22
5.6.360.0110.01215.26
5.6.350.0120.00715.07
5.6.340.0050.01615.07
5.6.330.0140.00715.08
5.6.320.0110.00715.18
5.6.310.0070.00815.16
5.6.300.0100.01215.07
5.6.290.0130.00915.18
5.6.280.0080.02616.53
5.6.270.0090.01315.31
5.6.260.0110.00715.11
5.6.250.0110.00914.97
5.6.240.0130.01015.26
5.6.230.0090.01014.98
5.6.220.0120.00715.11
5.6.210.0060.03216.39
5.6.200.0090.01715.75
5.6.190.0090.02016.46
5.6.180.0120.01716.44
5.6.170.0160.02616.47
5.6.160.0080.03216.37
5.6.150.0080.01815.85
5.6.140.0100.01715.88
5.6.130.0110.02815.89
5.6.120.0130.02616.59
5.6.110.0090.02616.51
5.6.100.0120.02316.38
5.6.90.0100.02016.63
5.6.80.0120.02616.38
5.6.70.0120.00915.00
5.6.60.0100.01314.93
5.6.50.0130.00714.97
5.6.40.0080.01315.00
5.6.30.0110.01214.91
5.6.20.0100.01414.75
5.6.10.0110.01015.00
5.6.00.0090.01515.22
5.5.380.0080.01415.11
5.5.370.0100.01215.11
5.5.360.0100.01015.14
5.5.350.0130.02716.33
5.5.340.0110.02715.82
5.5.330.0080.03116.33
5.5.320.0100.02116.30
5.5.310.0130.02316.33
5.5.300.0080.02315.81
5.5.290.0080.02215.76
5.5.280.0100.01916.46
5.5.270.0110.01716.43
5.5.260.0130.02816.25
5.5.250.0090.01916.43
5.5.240.0110.03016.18
5.5.230.0100.00715.08
5.5.220.0090.01314.91
5.5.210.0140.00915.00
5.5.200.0090.01314.75
5.5.190.0110.01114.89
5.5.180.0100.00915.11
5.5.170.0120.01214.84
5.5.160.0110.01015.06
5.5.150.0100.01314.81
5.5.140.0080.01514.67
5.5.130.0100.00914.88
5.5.120.0090.01114.89
5.5.110.0120.01015.08
5.5.100.0150.00914.88
5.5.90.0090.01315.02
5.5.80.0110.01114.88
5.5.70.0140.00715.03
5.5.60.0100.00914.84
5.5.50.0090.01114.87
5.5.40.0070.01114.90
5.5.30.0070.01215.07
5.5.20.0080.01314.89
5.5.10.0060.01314.90
5.5.00.0120.00914.87

preferences:
53.33 ms | 401 KiB | 5 Q