3v4l.org

run code in 300+ PHP versions simultaneously
<?php $allIntlCharConstants = array_flip((new ReflectionClass('IntlChar'))->getConstants()); $constants = array_filter($allIntlCharConstants, function($name){ return strpos($name, 'CHAR_CATEGORY_') === 0; }); var_dump($constants); 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.60.0040.01618.80
8.3.50.0180.00621.20
8.3.40.0070.01118.79
8.3.30.0100.01618.79
8.3.20.0030.00620.53
8.3.10.0070.00323.77
8.3.00.0070.00322.56
8.2.180.0230.00317.13
8.2.170.0080.01122.96
8.2.160.0190.00322.37
8.2.150.0100.00024.18
8.2.140.0110.00724.66
8.2.130.0030.00626.16
8.2.120.0110.00017.88
8.2.110.0040.00822.38
8.2.100.0030.01018.28
8.2.90.0060.00317.88
8.2.80.0030.00617.97
8.2.70.0000.00818.30
8.2.60.0030.00518.30
8.2.50.0040.00418.18
8.2.40.0040.00420.83
8.2.30.0030.00620.05
8.2.20.0000.00918.03
8.2.10.0040.00418.29
8.2.00.0030.00518.37
8.1.280.0100.00725.92
8.1.270.0100.00020.60
8.1.260.0090.00026.35
8.1.250.0000.01028.09
8.1.240.0070.01524.21
8.1.230.0150.00519.41
8.1.220.0030.00617.91
8.1.210.0000.00818.77
8.1.200.0070.00317.60
8.1.190.0030.00617.72
8.1.180.0000.00818.10
8.1.170.0050.00518.77
8.1.160.0000.00822.26
8.1.150.0000.00819.29
8.1.140.0080.00017.86
8.1.130.0030.00518.03
8.1.120.0030.00517.80
8.1.110.0070.00017.63
8.1.100.0030.00517.82
8.1.90.0040.00417.74
8.1.80.0040.00417.85
8.1.70.0000.00817.70
8.1.60.0040.00417.81
8.1.50.0050.00517.82
8.1.40.0100.00317.90
8.1.30.0040.00417.89
8.1.20.0070.00317.92
8.1.10.0060.00617.89
8.1.00.0060.00317.73
8.0.300.0040.00420.05
8.0.290.0090.00016.88
8.0.280.0060.00318.71
8.0.270.0040.00417.48
8.0.260.0060.00317.52
8.0.250.0060.00317.28
8.0.240.0090.00017.20
8.0.230.0030.00717.36
8.0.220.0040.00417.14
8.0.210.0060.00317.21
8.0.200.0030.00517.14
8.0.190.0030.00617.40
8.0.180.0040.00417.32
8.0.170.0000.00817.14
8.0.160.0000.00917.23
8.0.150.0040.00417.31
8.0.140.0000.00817.17
8.0.130.0050.00313.25
8.0.120.0040.00417.00
8.0.110.0000.00817.05
8.0.100.0030.00517.22
8.0.90.0030.00516.96
8.0.80.0070.01317.04
8.0.70.0040.00416.96
8.0.60.0000.00917.14
8.0.50.0050.00316.99
8.0.30.0200.01417.30
8.0.20.0200.01817.40
8.0.10.0030.00617.22
8.0.00.0110.01616.97
7.4.330.0000.00515.08
7.4.320.0000.00716.64
7.4.300.0040.00416.66
7.4.290.0050.00316.73
7.4.280.0040.00416.66
7.4.270.0000.00816.81
7.4.260.0000.00816.64
7.4.250.0070.00316.75
7.4.240.0020.00616.76
7.4.230.0000.00916.82
7.4.220.0070.01816.84
7.4.210.0080.01316.77
7.4.200.0000.00816.58
7.4.160.0110.01116.85
7.4.150.0400.01217.40
7.4.140.0240.01317.86
7.4.130.0260.01416.86
7.4.120.0320.01116.74
7.4.110.0240.02016.67
7.4.100.0490.02216.74
7.4.90.0250.02216.79
7.4.80.0300.00319.39
7.4.70.0360.00416.73
7.4.60.0370.01916.90
7.4.50.0050.00516.68
7.4.40.0230.01116.88
7.4.30.0280.00916.72
7.4.00.0100.01015.13
7.3.330.0000.00713.08
7.3.320.0060.00013.33
7.3.310.0000.00716.34
7.3.300.0040.00416.40
7.3.290.0030.00516.63
7.3.280.0120.02016.51
7.3.270.0130.01917.40
7.3.260.0100.03016.49
7.3.250.0230.01416.59
7.3.240.0200.00916.50
7.3.230.0130.01216.69
7.3.210.0180.02116.76
7.3.200.0220.03219.39
7.3.190.0170.00616.79
7.3.180.0350.01316.38
7.3.170.0220.01416.70
7.3.160.0160.03416.62
7.2.330.0410.00916.95
7.2.320.0570.02116.70
7.2.310.0150.01816.84
7.2.300.0070.01117.00
7.2.290.0330.01416.86
7.2.60.0090.00617.30
7.1.200.0050.00516.11
7.1.70.0060.00617.25
7.1.60.0040.00820.03
7.1.50.0100.01617.43
7.1.00.0130.06722.46
7.0.200.0120.00416.99
7.0.120.0030.05722.27
7.0.110.0100.07322.29
7.0.100.0030.07322.37
7.0.90.0100.07322.25
7.0.80.0070.05322.29
7.0.70.0070.07022.22
7.0.60.0070.06722.34
7.0.50.0030.07022.28
7.0.40.0000.07722.34
7.0.30.0130.06722.23
7.0.20.0070.07022.35
7.0.10.0030.07322.29
7.0.00.0100.07022.38
5.6.280.0070.06320.92
5.6.260.0030.07021.06
5.6.250.0070.07020.78
5.6.240.0000.08021.05
5.6.230.0000.08020.88
5.6.220.0000.07721.04
5.6.210.0030.07320.63
5.6.200.0070.07320.81
5.6.190.0070.06021.02
5.6.180.0000.07720.84
5.6.170.0030.07320.80
5.6.160.0000.06320.95
5.6.150.0100.07020.75
5.6.140.0100.07021.01
5.6.130.0100.06721.01
5.6.120.0070.07321.09
5.6.110.0000.08020.94
5.6.100.0030.06720.88
5.6.90.0130.06320.84
5.6.80.0030.07020.33
5.6.70.0030.07020.23
5.6.60.0070.07020.41
5.6.50.0070.06720.22
5.6.40.0000.07320.19
5.6.30.0030.07320.20
5.6.20.0070.07020.21
5.6.10.0070.06720.45
5.6.00.0100.06320.37
5.5.380.0070.07017.61
5.5.370.0030.05717.52
5.5.360.0030.06317.51
5.5.350.0070.06717.53
5.5.340.0000.07318.13
5.5.330.0100.06017.93
5.5.320.0030.07318.05
5.5.310.0070.07017.91
5.5.300.0100.05718.23
5.5.290.0000.08017.93
5.5.280.0070.07017.96
5.5.270.0070.06318.08
5.5.260.0000.08017.92
5.5.250.0030.07317.65
5.5.240.0030.06717.46
5.5.230.0000.07317.48
5.5.220.0030.07017.43
5.5.210.0030.06717.21
5.5.200.0000.07017.46
5.5.190.0070.06317.43
5.5.180.0000.07317.19
5.5.160.0030.06017.48
5.5.150.0000.07017.44
5.5.140.0030.07017.27
5.5.130.0030.06717.32
5.5.120.0000.07017.28
5.5.110.0000.07017.27
5.5.100.0030.06317.49
5.5.90.0070.06317.48
5.5.80.0030.06717.35
5.5.70.0000.07317.51
5.5.60.0000.07017.20
5.5.50.0070.05717.20
5.5.40.0000.04717.49
5.5.30.0100.06317.34
5.5.20.0030.07017.17
5.5.10.0030.07017.46
5.5.00.0000.07317.33
5.4.450.0000.07719.42
5.4.440.0030.06319.51
5.4.430.0070.07019.30
5.4.420.0000.07319.63
5.4.410.0130.06019.20
5.4.400.0030.06319.00
5.4.390.0070.07019.00
5.4.380.0030.06719.13
5.4.370.0100.06019.16
5.4.360.0130.06019.15
5.4.350.0000.07318.94
5.4.340.0030.06019.03
5.4.320.0030.05718.98
5.4.310.0070.06319.33
5.4.300.0070.06019.17
5.4.290.0070.06319.32
5.4.280.0000.07018.97
5.4.270.0070.06319.17
5.4.260.0000.07018.99
5.4.250.0030.05719.23
5.4.240.0000.07019.02
5.4.230.0070.05719.32
5.4.220.0070.06719.17
5.4.210.0030.05718.98
5.4.200.0030.06719.13
5.4.190.0000.06319.29
5.4.180.0030.07019.20
5.4.170.0000.06719.00
5.4.160.0030.06319.24
5.4.150.0070.06719.16
5.4.140.0030.06716.55
5.4.130.0070.06016.58
5.4.120.0030.06316.52
5.4.110.0030.06716.35
5.4.100.0070.05716.41
5.4.90.0070.06016.31
5.4.80.0000.06316.45
5.4.70.0000.06316.63
5.4.60.0100.05716.41
5.4.50.0030.05316.28
5.4.40.0030.06316.59
5.4.30.0000.05716.40
5.4.20.0030.04316.54
5.4.10.0030.05016.51
5.4.00.0030.06316.00

preferences:
32.47 ms | 401 KiB | 5 Q