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($constants, $type)); });

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.0100.00618.93
8.3.50.0090.01421.38
8.3.40.0150.00919.04
8.3.30.0120.00419.01
8.3.20.0040.00420.55
8.3.10.0000.00823.91
8.3.00.0040.00422.48
8.2.180.0130.00917.13
8.2.170.0070.00722.96
8.2.160.0030.01722.25
8.2.150.0130.00624.18
8.2.140.0090.00024.66
8.2.130.0090.00026.16
8.2.120.0000.00820.08
8.2.110.0070.00322.37
8.2.100.0060.00617.88
8.2.90.0000.00819.60
8.2.80.0000.00817.97
8.2.70.0060.00317.88
8.2.60.0000.00818.05
8.2.50.0040.00418.07
8.2.40.0080.00021.36
8.2.30.0000.00820.03
8.2.20.0000.00817.89
8.2.10.0040.00418.27
8.2.00.0000.00718.25
8.1.280.0180.00025.92
8.1.270.0030.00520.63
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0100.00022.63
8.1.230.0090.00318.01
8.1.220.0040.00418.04
8.1.210.0070.00418.77
8.1.200.0040.00717.73
8.1.190.0050.00317.60
8.1.180.0050.00318.10
8.1.170.0090.00018.89
8.1.160.0030.00622.33
8.1.150.0040.00419.11
8.1.140.0040.00417.68
8.1.130.0000.00718.07
8.1.120.0040.00317.58
8.1.110.0040.00417.72
8.1.100.0020.00517.68
8.1.90.0040.00417.64
8.1.80.0000.00717.68
8.1.70.0050.00217.77
8.1.60.0030.00517.82
8.1.50.0040.00417.85
8.1.40.0120.00017.61
8.1.30.0030.00517.80
8.1.20.0000.00817.93
8.1.10.0050.00317.73
8.1.00.0030.00517.82
8.0.300.0000.00718.77
8.0.290.0040.00417.00
8.0.280.0050.00218.57
8.0.270.0000.00717.07
8.0.260.0030.00317.44
8.0.250.0000.00717.21
8.0.240.0020.00517.18
8.0.230.0060.00317.24
8.0.220.0030.00317.22
8.0.210.0070.00017.18
8.0.200.0030.00317.27
8.0.190.0060.00617.38
8.0.180.0000.00717.20
8.0.170.0040.00417.31
8.0.160.0040.00417.16
8.0.150.0070.00017.27
8.0.140.0070.00017.18
8.0.130.0000.00613.36
8.0.120.0000.00817.02
8.0.110.0050.00317.26
8.0.100.0000.00717.26
8.0.90.0070.00017.05
8.0.80.0060.00917.19
8.0.70.0030.00517.18
8.0.60.0000.00817.07
8.0.50.0000.00717.29
8.0.30.0110.00717.31
8.0.20.0060.01417.40
8.0.10.0040.00417.29
8.0.00.0090.01016.97
7.4.330.0050.00015.08
7.4.320.0060.00016.55
7.4.300.0000.00616.55
7.4.290.0000.00716.60
7.4.280.0030.00616.44
7.4.270.0070.00016.47
7.4.260.0070.00016.55
7.4.250.0030.00716.32
7.4.240.0020.00516.52
7.4.230.0030.00316.54
7.4.220.0130.00616.48
7.4.210.0060.00816.50
7.4.200.0000.00716.37
7.4.150.0100.01017.40
7.4.140.0100.01217.86
7.4.130.0140.00816.45
7.4.120.0130.00616.55
7.4.110.0100.01416.58
7.4.100.0160.00616.47
7.4.90.0030.01616.42
7.4.80.0140.00719.39
7.4.70.0100.00716.49
7.4.60.0270.00416.41
7.4.50.0030.00616.38
7.4.40.0110.00716.32
7.4.30.0070.01116.45
7.3.330.0050.00313.18
7.3.320.0000.00813.31
7.3.310.0000.00716.21
7.3.300.0000.00716.27
7.3.290.0000.00716.12
7.3.280.0100.00916.28
7.3.270.0080.01217.40
7.3.260.0140.00616.38
7.3.250.0120.01416.41
7.3.240.0050.01416.32
7.3.230.0100.01616.39
7.3.210.0140.00716.24
7.3.200.0610.02119.39
7.3.190.0070.01016.29
7.3.180.0070.01016.56
7.3.170.0090.00816.29
7.3.160.0100.01316.32
7.2.330.0420.02516.80
7.2.320.0810.04016.79
7.2.310.0300.01416.84
7.2.300.0370.00616.75
7.2.290.0140.01116.82
7.2.120.0090.00016.75
7.2.110.0040.01216.84
7.2.100.0110.00316.89
7.2.90.0120.00616.63
7.2.80.0040.01116.62
7.2.70.0070.01016.83
7.2.60.0090.00616.83
7.2.50.0060.00717.16
7.2.40.0030.01217.13
7.2.30.0050.00516.92
7.2.20.0030.00916.76
7.2.10.0100.00717.13
7.2.00.0090.00418.28
7.1.240.0040.01116.11
7.1.230.0060.00915.80
7.1.220.0150.00015.86
7.1.210.0000.01515.87
7.1.200.0050.00815.86
7.1.190.0030.00715.91
7.1.180.0090.00015.73
7.1.170.0000.01315.73
7.1.160.0030.00916.03
7.1.150.0740.00715.98
7.1.140.0040.01215.88
7.1.130.1900.01315.82
7.1.120.0040.01115.69
7.1.110.0150.00316.04
7.1.100.0250.00316.77
7.1.90.0240.00315.86
7.1.80.0180.01115.77
7.1.70.0140.00616.35
7.1.60.0060.01617.54
7.1.50.0090.00716.52
7.1.40.0100.00515.59
7.1.30.0230.00815.98
7.1.20.0130.00315.86
7.1.10.0170.00415.84
7.1.00.0100.04219.10
7.0.320.0050.01015.78
7.0.310.0060.00315.57
7.0.300.0120.00015.53
7.0.290.0000.01315.70
7.0.280.0000.01015.52
7.0.270.0120.00215.24
7.0.260.0100.00515.42
7.0.250.0090.00415.60
7.0.240.0250.00615.28
7.0.230.0230.00415.71
7.0.220.0090.00815.71
7.0.210.0220.00715.33
7.0.200.0190.00616.20
7.0.190.0280.00415.37
7.0.180.0160.00215.53
7.0.170.0090.01215.46
7.0.160.0340.00615.60
7.0.150.0050.01315.70
7.0.140.0270.00315.67
7.0.130.0150.00715.68
7.0.120.0150.00815.73
7.0.110.0280.00415.47
7.0.100.0080.02617.73
7.0.90.0110.02717.80
7.0.80.0060.02417.86
7.0.70.0140.04217.91
7.0.60.0200.04717.87
7.0.50.0140.04218.05
7.0.40.0110.03816.85
7.0.30.0090.02816.90
7.0.20.0120.02216.93
7.0.10.0020.03016.88
7.0.00.0040.04716.96
5.6.380.0000.01414.16
5.6.370.0070.00714.49
5.6.360.0070.00314.21
5.6.350.0060.00614.13
5.6.340.0030.00614.08
5.6.330.0060.00614.29
5.6.320.0060.00914.09
5.6.310.0130.00614.26
5.6.300.0100.00714.03
5.6.290.0040.01214.41
5.6.280.0090.03217.68
5.6.270.0150.00014.28
5.6.260.0060.00614.11
5.6.250.0080.02417.37
5.6.240.0060.02517.58
5.6.230.0070.02517.38
5.6.220.0060.04817.56
5.6.210.0080.04017.44
5.6.200.0090.04017.61
5.6.190.0120.03317.70
5.6.180.0110.04117.65
5.6.170.0120.04517.53
5.6.160.0100.04117.84
5.6.150.0170.02317.73
5.6.140.0120.04417.59
5.6.130.0070.03217.75
5.6.120.0130.04017.65
5.6.110.0200.03417.57
5.6.100.0080.02917.56
5.6.90.0090.04617.55
5.6.80.0100.04217.14
5.6.70.0160.03717.38
5.6.60.0100.04817.20
5.6.50.0080.02417.38
5.6.40.0030.04817.28
5.6.30.0110.04217.34
5.6.20.0090.03817.14
5.6.10.0140.03717.25
5.6.00.0080.02617.15
5.5.380.0070.02115.80
5.5.370.0080.02115.64
5.5.360.0100.03515.66
5.5.350.0090.04015.70
5.5.340.0080.04115.86
5.5.330.0070.04315.94
5.5.320.0090.03915.91
5.5.310.0150.03515.90
5.5.300.0050.04115.95
5.5.290.0070.04115.93
5.5.280.0050.04516.01
5.5.270.0160.03316.06
5.5.260.0080.03516.02
5.5.250.0110.04115.74
5.5.240.0170.03215.57
5.5.230.0070.02315.62
5.5.220.0070.02315.67
5.5.210.0070.03715.59
5.5.200.0110.01915.60
5.5.190.0050.03415.50
5.5.180.0070.02315.63
5.5.170.0090.00614.10
5.5.160.0090.02115.74
5.5.150.0100.03715.70
5.5.140.0110.03815.64
5.5.130.0150.02315.46
5.5.120.0110.04315.59
5.5.110.0060.04115.45
5.5.100.0030.03415.53
5.5.90.0100.03615.54
5.5.80.0120.03315.61
5.5.70.0080.03715.50
5.5.60.0090.04215.52
5.5.50.0040.04415.53
5.5.40.0090.03515.51
5.5.30.0070.02115.51
5.5.20.0070.04015.53
5.5.10.0100.04115.54
5.5.00.0110.03615.45
5.4.450.0070.04515.04
5.4.440.0040.02915.06
5.4.430.0050.04315.17
5.4.420.0020.04515.22
5.4.410.0090.02715.01
5.4.400.0060.04015.01
5.4.390.0050.03214.91
5.4.380.0140.03015.05
5.4.370.0050.04315.02
5.4.360.0080.03614.97
5.4.350.0090.02915.12
5.4.340.0050.04615.07
5.4.330.0030.00610.94
5.4.320.0070.03514.93
5.4.310.0060.02415.04
5.4.300.0050.02514.92
5.4.290.0090.03514.98
5.4.280.0070.04214.90
5.4.270.0100.02515.00
5.4.260.0090.04215.04
5.4.250.0070.03715.02
5.4.240.0090.03814.92
5.4.230.0060.04115.07
5.4.220.0080.03814.99
5.4.210.0090.03815.02
5.4.200.0070.03614.89
5.4.190.0080.03115.06
5.4.180.0080.03214.89
5.4.170.0070.04115.00
5.4.160.0070.02714.88
5.4.150.0090.03914.87
5.4.140.0060.03913.70
5.4.130.0020.03913.62
5.4.120.0090.03513.76
5.4.110.0050.04313.71
5.4.100.0100.02113.62
5.4.90.0040.03613.65
5.4.80.0090.02913.59
5.4.70.0040.03813.67
5.4.60.0090.03913.72
5.4.50.0050.02213.64
5.4.40.0050.04113.74
5.4.30.0090.03713.63
5.4.20.0030.02713.73
5.4.10.0100.03213.70
5.4.00.0060.03813.39

preferences:
50.71 ms | 401 KiB | 5 Q