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) use ($constants) { 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.70.0100.01616.75
8.3.60.0200.00318.55
8.3.50.0370.00721.27
8.3.40.0120.00418.96
8.3.30.0080.00818.89
8.3.20.0040.00420.64
8.3.10.0050.00323.77
8.3.00.0090.00022.52
8.2.180.0160.00618.41
8.2.170.0090.00622.96
8.2.160.0120.00922.25
8.2.150.0080.00025.66
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0100.00018.00
8.2.110.0040.00722.36
8.2.100.0090.00317.97
8.2.90.0080.00018.09
8.2.80.0030.00619.23
8.2.70.0040.00417.75
8.2.60.0040.00417.88
8.2.50.0040.00417.75
8.2.40.0040.00420.64
8.2.30.0000.00819.99
8.2.20.0040.00418.02
8.2.10.0040.00418.27
8.2.00.0040.00418.38
8.1.280.0070.01125.92
8.1.270.0080.00020.63
8.1.260.0040.00426.35
8.1.250.0030.00628.09
8.1.240.0060.00323.98
8.1.230.0040.00821.27
8.1.220.0000.00917.90
8.1.210.0060.00319.00
8.1.200.0050.00317.61
8.1.190.0030.00617.60
8.1.180.0030.00618.10
8.1.170.0050.00318.82
8.1.160.0000.00722.39
8.1.150.0040.00419.09
8.1.140.0030.00617.73
8.1.130.0040.00417.96
8.1.120.0050.00317.79
8.1.110.0040.00417.68
8.1.100.0040.00417.87
8.1.90.0000.00717.84
8.1.80.0050.00317.84
8.1.70.0000.00717.78
8.1.60.0060.00317.82
8.1.50.0040.00417.75
8.1.40.0000.01017.76
8.1.30.0040.00417.78
8.1.20.0040.00417.94
8.1.10.0050.00317.92
8.1.00.0080.00017.89
8.0.300.0080.00020.33
8.0.290.0050.00317.00
8.0.280.0000.00718.65
8.0.270.0040.00417.43
8.0.260.0030.00317.41
8.0.250.0070.00017.26
8.0.240.0040.00417.21
8.0.230.0110.00017.00
8.0.220.0000.00717.17
8.0.210.0000.00717.19
8.0.200.0000.00717.07
8.0.190.0060.00317.00
8.0.180.0030.00617.09
8.0.170.0000.00917.03
8.0.160.0000.00717.08
8.0.150.0000.00817.11
8.0.140.0070.00017.07
8.0.130.0030.00313.28
8.0.120.0040.00417.13
8.0.110.0000.00716.93
8.0.100.0040.00416.92
8.0.90.0040.00417.18
8.0.80.0000.01717.09
8.0.70.0030.00517.06
8.0.60.0050.00317.03
8.0.50.0030.00617.06
8.0.30.0180.01017.23
8.0.20.0180.00517.48
8.0.10.0040.00417.04
8.0.00.0140.00816.95
7.4.330.0000.00515.08
7.4.320.0000.00616.36
7.4.300.0000.00716.45
7.4.290.0040.00416.47
7.4.280.0050.00316.45
7.4.270.0030.00316.54
7.4.260.0030.00316.45
7.4.250.0000.00716.52
7.4.240.0070.00016.53
7.4.230.0000.00716.46
7.4.220.0140.00616.62
7.4.210.0090.01116.60
7.4.200.0000.00716.36
7.4.160.0090.00916.48
7.4.150.0160.00317.40
7.4.140.0090.01117.86
7.4.130.0120.01016.33
7.4.120.0160.00516.41
7.4.110.0100.01016.56
7.4.100.0040.01616.50
7.4.90.0120.00616.46
7.4.80.0080.01219.39
7.4.70.0140.00316.28
7.4.60.0080.01516.46
7.4.50.0000.00516.48
7.4.40.0090.01116.52
7.4.30.0090.00916.39
7.4.00.0090.00614.90
7.3.330.0030.00313.11
7.3.320.0040.00313.12
7.3.310.0040.00416.21
7.3.300.0000.00816.25
7.3.290.0070.00016.18
7.3.280.0140.00516.22
7.3.270.0060.01417.40
7.3.260.0130.00716.47
7.3.250.0130.00916.40
7.3.240.0100.00716.23
7.3.230.0130.00716.39
7.3.210.0120.01216.18
7.3.200.0150.00519.39
7.3.190.0030.01416.23
7.3.180.0110.01116.37
7.3.170.0070.01316.27
7.3.160.0140.00516.55
7.2.330.0130.00916.80
7.2.320.0090.01116.65
7.2.310.0120.01716.71
7.2.300.0150.00716.97
7.2.290.0180.00916.73
7.2.60.0100.00716.96
7.2.00.0060.00619.70
7.1.200.0100.00615.83
7.1.100.0290.00718.16
7.1.70.0050.00217.46
7.1.60.0100.00619.24
7.1.50.0070.01717.27
7.1.00.0030.09322.53
7.0.200.0110.00617.01
7.0.120.0100.07022.23
7.0.110.0100.07022.32
7.0.100.0030.07322.21
7.0.90.0070.06322.24
7.0.80.0100.06722.25
7.0.70.0030.07322.15
7.0.60.0030.06022.13
7.0.50.0030.07322.34
7.0.40.0030.07322.37
7.0.30.0000.07722.41
7.0.20.0030.07322.24
7.0.10.0070.07022.35
7.0.00.0030.07022.26
5.6.280.0000.07720.79
5.6.260.0030.07321.13
5.6.250.0100.06321.08
5.6.240.0030.07720.84
5.6.230.0000.08021.04
5.6.220.0100.06321.09
5.6.210.0070.06320.96
5.6.200.0000.05721.04
5.6.190.0070.07320.83
5.6.180.0130.06320.84
5.6.170.0070.06721.02
5.6.160.0000.07720.83
5.6.150.0130.06720.86
5.6.140.0000.08020.80
5.6.130.0000.07320.83
5.6.120.0000.08021.05
5.6.110.0070.07720.82
5.6.100.0070.07321.03
5.6.90.0070.06720.82
5.6.80.0000.07020.14
5.6.70.0000.07020.43
5.6.60.0030.07320.44
5.6.50.0030.07020.45
5.6.40.0070.06020.20
5.6.30.0000.07720.19
5.6.20.0100.06320.19
5.6.10.0030.05720.18
5.6.00.0070.06720.42
5.5.380.0070.06717.47
5.5.370.0070.06717.60
5.5.360.0000.07717.62
5.5.350.0000.07317.62
5.5.340.0070.07018.22
5.5.330.0000.07318.14
5.5.320.0070.06718.21
5.5.310.0070.06718.24
5.5.300.0070.06718.13
5.5.290.0000.07718.07
5.5.280.0030.06318.21
5.5.270.0070.07018.09
5.5.260.0000.07718.21
5.5.250.0070.07317.90
5.5.240.0000.07317.66
5.5.230.0070.07017.51
5.5.220.0000.07017.51
5.5.210.0000.07017.61
5.5.200.0070.05317.45
5.5.190.0070.07017.59
5.5.180.0100.06317.25
5.5.160.0000.07017.18
5.5.150.0070.06317.27
5.5.140.0030.06717.44
5.5.130.0000.07017.60
5.5.120.0030.06017.27
5.5.110.0000.06017.17
5.5.100.0070.06717.18
5.5.90.0000.07017.47
5.5.80.0000.05317.32
5.5.70.0000.06317.15
5.5.60.0000.06717.31
5.5.50.0030.06717.29
5.5.40.0000.06717.37
5.5.30.0000.07017.45
5.5.20.0030.07017.28
5.5.10.0030.06717.33
5.5.00.0070.06717.48
5.4.450.0070.07019.32
5.4.440.0000.07719.33
5.4.430.0070.06319.30
5.4.420.0000.07319.26
5.4.410.0030.07019.20
5.4.400.0030.06719.14
5.4.390.0100.06719.18
5.4.380.0000.07018.97
5.4.370.0030.06319.16
5.4.360.0000.06719.32
5.4.350.0030.06718.99
5.4.340.0070.06719.25
5.4.320.0000.07319.00
5.4.310.0030.06718.93
5.4.300.0030.06719.16
5.4.290.0100.06019.23
5.4.280.0000.07018.97
5.4.270.0030.06718.99
5.4.260.0030.06719.21
5.4.250.0030.06718.98
5.4.240.0000.06018.97
5.4.230.0000.06719.00
5.4.220.0030.07018.99
5.4.210.0030.06718.96
5.4.200.0000.06719.30
5.4.190.0030.06719.14
5.4.180.0000.06718.96
5.4.170.0070.06718.99
5.4.160.0100.06018.99
5.4.150.0000.07018.95
5.4.140.0030.06316.64
5.4.130.0030.05316.58
5.4.120.0000.06716.63
5.4.110.0070.06316.55
5.4.100.0030.06316.41
5.4.90.0030.05316.50
5.4.80.0030.06316.29
5.4.70.0000.06016.53
5.4.60.0030.06016.56
5.4.50.0000.06716.47
5.4.40.0000.06716.27
5.4.30.0030.06316.28
5.4.20.0070.06016.50
5.4.10.0000.05716.50
5.4.00.0000.05016.03

preferences:
52.12 ms | 401 KiB | 5 Q