3v4l.org

run code in 300+ PHP versions simultaneously
<?php $allIntlCharConstants = (new ReflectionClass('IntlChar'))->getConstants(); $constants = array_filter($allIntlCharConstants, function($name){ return strpos('CHAR_CATEGORY_', $name) !== false; }); IntlChar::enumCharTypes(function($start, $end, $type) { printf("U+%04x through U+%04x are in category %d\n", $start, $end, array_search($type, $constants)); });

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.0080.00819.14
8.3.30.0070.00718.92
8.3.20.0080.00020.47
8.3.10.0050.00323.76
8.3.00.0090.00022.69
8.2.170.0090.00622.96
8.2.160.0070.01322.38
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0070.00317.75
8.2.110.0090.00020.84
8.2.100.0060.00618.09
8.2.90.0030.00619.52
8.2.80.0080.00017.97
8.2.70.0060.00317.88
8.2.60.0000.00818.18
8.2.50.0060.00318.07
8.2.40.0000.00921.44
8.2.30.0000.00820.05
8.2.20.0030.00618.02
8.2.10.0000.00818.25
8.2.00.0080.00018.31
8.1.270.0000.00920.70
8.1.260.0090.00026.35
8.1.250.0000.00828.09
8.1.240.0000.00924.08
8.1.230.0090.00321.07
8.1.220.0040.00417.91
8.1.210.0060.00318.77
8.1.200.0060.00317.73
8.1.190.0030.00517.72
8.1.180.0000.00818.10
8.1.170.0030.00518.94
8.1.160.0040.00422.22
8.1.150.0000.00819.03
8.1.140.0080.00017.75
8.1.130.0040.00417.96
8.1.120.0040.00417.73
8.1.110.0000.00717.72
8.1.100.0000.00717.78
8.1.90.0040.00417.65
8.1.80.0000.00917.64
8.1.70.0030.00317.77
8.1.60.0030.00617.94
8.1.50.0030.00617.84
8.1.40.0040.00817.80
8.1.30.0060.00317.80
8.1.20.0050.00217.88
8.1.10.0040.00417.73
8.1.00.0000.00817.79
8.0.300.0000.00918.77
8.0.290.0080.00017.00
8.0.280.0030.00318.57
8.0.270.0000.00717.47
8.0.260.0030.00317.46
8.0.250.0060.00317.29
8.0.240.0080.00017.29
8.0.230.0000.00717.26
8.0.220.0000.00717.14
8.0.210.0000.00817.23
8.0.200.0000.00717.26
8.0.190.0030.00517.27
8.0.180.0050.00217.29
8.0.170.0000.00817.36
8.0.160.0040.00417.29
8.0.150.0040.00417.29
8.0.140.0070.00017.25
8.0.130.0080.00013.32
8.0.120.0000.00817.26
8.0.110.0000.00817.20
8.0.100.0040.00417.16
8.0.90.0080.00017.29
8.0.80.0070.00817.21
8.0.70.0000.00717.29
8.0.60.0040.00417.26
8.0.50.0050.00217.16
8.0.30.0090.00717.39
8.0.20.0120.01117.40
8.0.10.0040.00417.41
8.0.00.0080.01117.01
7.4.330.0050.00015.08
7.4.320.0030.00316.43
7.4.300.0030.00316.46
7.4.290.0000.00716.31
7.4.280.0060.00316.47
7.4.270.0030.00316.55
7.4.260.0070.00016.46
7.4.250.0030.00316.52
7.4.240.0040.00416.46
7.4.230.0000.00716.36
7.4.220.0130.00616.59
7.4.210.0090.00616.48
7.4.200.0000.00716.66
7.4.160.0130.00316.44
7.4.150.0120.00617.40
7.4.140.0130.00717.86
7.4.130.0130.01016.53
7.4.120.0120.00916.48
7.4.110.0130.00616.67
7.4.100.0120.00616.47
7.4.90.0120.00616.70
7.4.80.0130.01019.39
7.4.70.0070.01416.46
7.4.60.0060.01216.62
7.4.50.0060.00316.69
7.4.40.0080.01816.52
7.4.30.0130.00316.60
7.4.00.0030.01414.88
7.3.330.0000.00713.27
7.3.320.0000.00813.17
7.3.310.0050.00516.13
7.3.300.0070.00016.09
7.3.290.0000.00716.18
7.3.280.0120.00516.31
7.3.270.0070.01317.40
7.3.260.0080.01216.21
7.3.250.0100.01116.35
7.3.240.0030.01516.30
7.3.230.0130.00716.56
7.3.210.0130.00716.32
7.3.200.0170.00719.39
7.3.190.0070.01116.25
7.3.180.0130.00516.32
7.3.170.0040.01616.27
7.3.160.0070.01016.32
7.2.330.0500.04316.87
7.2.320.0440.04416.96
7.2.310.0200.01016.86
7.2.300.0110.01316.73
7.2.290.0420.01816.72
7.2.60.0060.01316.60
7.2.00.0060.00619.57
7.1.200.0060.00615.93
7.1.100.0160.00817.84
7.1.70.0000.01017.07
7.1.60.0060.00919.12
7.1.50.0100.00617.36
7.1.00.0030.09022.41
7.0.200.0130.01016.71
7.0.120.0130.06722.23
7.0.110.0070.06722.31
7.0.100.0070.06322.30
7.0.90.0070.07322.17
7.0.80.0070.07322.50
7.0.70.0030.06322.36
7.0.60.0030.07022.18
7.0.50.0030.07322.30
7.0.40.0030.06022.21
7.0.30.0030.07022.25
7.0.20.0070.06722.30
7.0.10.0100.06722.28
7.0.00.0070.07322.23
5.6.280.0000.03320.90
5.6.260.0030.07320.88
5.6.250.0030.07020.97
5.6.240.0030.07020.94
5.6.230.0070.07321.03
5.6.220.0030.05721.02
5.6.210.0030.06720.98
5.6.200.0070.05321.05
5.6.190.0070.07020.93
5.6.180.0000.07720.80
5.6.170.0070.05721.06
5.6.160.0130.06321.01
5.6.150.0000.07721.05
5.6.140.0070.06721.08
5.6.130.0000.07321.08
5.6.120.0030.07720.75
5.6.110.0070.07320.91
5.6.100.0000.08020.82
5.6.90.0000.07720.92
5.6.80.0070.06320.31
5.6.70.0070.06020.14
5.6.60.0000.07720.32
5.6.50.0000.07320.42
5.6.40.0070.06720.42
5.6.30.0070.07020.16
5.6.20.0000.06320.29
5.6.10.0070.05720.37
5.6.00.0000.07020.39
5.5.380.0100.06317.56
5.5.370.0030.07017.47
5.5.360.0000.07317.58
5.5.350.0030.07017.68
5.5.340.0070.06718.23
5.5.330.0000.07317.93
5.5.320.0070.06318.09
5.5.310.0100.06717.93
5.5.300.0030.07318.04
5.5.290.0030.07718.06
5.5.280.0000.07718.09
5.5.270.0030.07718.05
5.5.260.0000.07318.13
5.5.250.0000.07718.05
5.5.240.0030.06717.51
5.5.230.0030.07017.43
5.5.220.0030.07017.29
5.5.210.0070.06717.48
5.5.200.0070.05717.28
5.5.190.0000.07317.44
5.5.180.0000.06017.26
5.5.160.0070.06717.43
5.5.150.0030.05717.59
5.5.140.0070.06317.27
5.5.130.0000.07017.57
5.5.120.0070.06017.23
5.5.110.0070.06717.59
5.5.100.0030.07017.17
5.5.90.0030.06717.33
5.5.80.0070.06017.34
5.5.70.0030.06717.30
5.5.60.0030.06717.36
5.5.50.0030.07017.34
5.5.40.0000.07017.16
5.5.30.0030.06317.32
5.5.20.0030.07017.33
5.5.10.0030.07017.16
5.5.00.0070.05017.38
5.4.450.0000.07019.31
5.4.440.0070.06719.32
5.4.430.0100.06319.32
5.4.420.0100.05719.49
5.4.410.0030.06719.52
5.4.400.0030.06019.02
5.4.390.0070.07019.27
5.4.380.0070.06319.32
5.4.370.0000.06719.18
5.4.360.0030.06019.21
5.4.350.0000.06018.98
5.4.340.0000.06319.32
5.4.320.0070.06718.95
5.4.310.0000.07019.02
5.4.300.0030.06719.16
5.4.290.0000.06019.21
5.4.280.0000.07019.17
5.4.270.0000.07019.00
5.4.260.0000.07018.93
5.4.250.0030.06718.96
5.4.240.0100.06018.96
5.4.230.0000.07018.94
5.4.220.0030.07019.23
5.4.210.0030.06318.98
5.4.200.0070.06019.08
5.4.190.0070.06319.01
5.4.180.0000.07019.16
5.4.170.0070.06018.96
5.4.160.0070.06319.12
5.4.150.0070.06719.06
5.4.140.0030.06716.35
5.4.130.0030.06316.54
5.4.120.0070.05016.54
5.4.110.0030.06016.25
5.4.100.0000.06716.57
5.4.90.0070.05316.50
5.4.80.0030.06316.33
5.4.70.0070.06016.49
5.4.60.0000.06716.52
5.4.50.0000.06716.38
5.4.40.0000.05716.38
5.4.30.0070.05316.27
5.4.20.0000.06016.37
5.4.10.0100.06016.52
5.4.00.0030.06015.76

preferences:
49.61 ms | 400 KiB | 5 Q