3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(get_defined_constants(true)); $constants = array_filter(get_defined_constants(true)['intl'], 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, $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.0160.01218.53
8.3.50.0250.00721.38
8.3.40.0160.01318.96
8.3.30.0100.01418.54
8.3.20.0050.01020.41
8.3.10.0140.00023.81
8.3.00.0060.00622.37
8.2.180.0310.01917.00
8.2.170.0110.01122.96
8.2.160.0230.01622.20
8.2.150.0160.00024.18
8.2.140.0100.00324.66
8.2.130.0190.01126.16
8.2.120.0070.00718.00
8.2.110.0040.01222.45
8.2.100.0070.01517.66
8.2.90.0070.00318.22
8.2.80.0030.00719.19
8.2.70.0030.00617.38
8.2.60.0080.00317.88
8.2.50.0070.00318.07
8.2.40.0080.00321.30
8.2.30.0040.00720.17
8.2.20.0030.00718.20
8.2.10.0030.00718.33
8.2.00.0050.00818.51
8.1.280.0130.02025.92
8.1.270.0090.00620.42
8.1.260.0140.00026.35
8.1.250.0030.01028.09
8.1.240.0090.00619.31
8.1.230.0090.00918.19
8.1.220.0070.00318.02
8.1.210.0090.00318.77
8.1.200.0050.00517.73
8.1.190.0120.00317.73
8.1.180.0070.00718.10
8.1.170.0030.00818.87
8.1.160.0100.00022.28
8.1.150.0000.01019.20
8.1.140.0030.00617.44
8.1.130.0070.00417.92
8.1.120.0100.00017.79
8.1.110.0030.00817.78
8.1.100.0000.00917.86
8.1.90.0040.00717.81
8.1.80.0060.00317.44
8.1.70.0060.00317.75
8.1.60.0000.01017.55
8.1.50.0040.00717.84
8.1.40.0130.00317.79
8.1.30.0040.00717.91
8.1.20.0030.00717.86
8.1.10.0050.00417.57
8.1.00.0060.00617.72
8.0.300.0060.00318.77
8.0.290.0070.00316.88
8.0.280.0000.00918.52
8.0.270.0050.00517.20
8.0.260.0030.00717.38
8.0.250.0030.00717.25
8.0.240.0030.00716.80
8.0.230.0140.00017.19
8.0.220.0090.00016.66
8.0.210.0040.00817.06
8.0.200.0060.00316.72
8.0.190.0110.00417.17
8.0.180.0030.00717.29
8.0.170.0060.00617.25
8.0.160.0030.00716.69
8.0.150.0000.01017.04
8.0.140.0070.00317.19
8.0.130.0060.00613.39
8.0.120.0030.00917.09
8.0.110.0070.00317.07
8.0.100.0050.00517.10
8.0.90.0030.00717.10
8.0.80.0130.01316.77
8.0.70.0060.00317.07
8.0.60.0030.00617.06
8.0.50.0000.01016.98
8.0.30.0370.01317.12
8.0.20.0480.01717.47
8.0.10.0030.00617.08
8.0.00.0340.01716.97
7.4.330.0000.00915.14
7.4.320.0100.00016.63
7.4.300.0030.00516.33
7.4.290.0050.00516.56
7.4.280.0070.00416.62
7.4.270.0060.00316.61
7.4.260.0080.00316.48
7.4.250.0000.01016.34
7.4.240.0030.00616.45
7.4.230.0060.00316.55
7.4.220.0220.02216.66
7.4.210.0220.02216.60
7.4.200.0030.00616.82
7.4.160.0240.01816.70
7.4.150.0200.01717.40
7.4.140.0250.01817.86
7.4.130.0360.01216.57
7.4.120.0360.01816.76
7.4.110.0260.01316.61
7.4.100.0580.02016.76
7.4.90.0410.02116.65
7.4.80.0360.01419.39
7.4.70.0220.00616.37
7.4.60.0190.02016.78
7.4.50.0050.00516.46
7.4.40.0360.01816.59
7.4.30.0780.04816.66
7.3.330.0060.00313.27
7.3.320.0060.00613.23
7.3.310.0030.00716.46
7.3.300.0060.00316.40
7.3.290.0060.00316.49
7.3.280.0190.02016.54
7.3.270.0390.02817.40
7.3.260.0520.02316.59
7.3.250.0380.02016.55
7.3.240.0320.01616.45
7.3.230.0480.01816.57
7.3.210.0910.00816.58
7.3.200.0370.02119.39
7.3.190.0610.04216.47
7.3.180.0290.02416.56
7.3.170.0100.01916.27
7.3.160.0370.01616.56
7.2.330.0700.01816.73
7.2.320.0230.01316.41
7.2.310.0110.02516.91
7.2.300.0210.02616.75
7.2.290.0440.01916.82
7.2.100.0830.01114.76
7.2.90.0310.01615.05
7.2.80.1920.00614.71
7.2.70.1650.01615.28
7.2.60.1480.00315.11
7.2.50.1490.01215.43
7.2.40.1560.00715.06
7.1.220.1900.00714.26
7.1.210.1050.00313.78
7.1.200.1740.01014.02
7.1.190.1350.01613.77
7.1.180.0440.00413.60
7.1.170.1230.00913.98
7.1.160.1630.00314.09
7.0.310.1620.00913.52
7.0.300.0120.01413.68
7.0.290.1360.00313.63
5.6.380.0140.00714.20
5.6.370.0100.02014.38
5.6.360.0170.00714.09

preferences:
40.22 ms | 401 KiB | 5 Q