3v4l.org

run code in 300+ PHP versions simultaneously
<?php function splitIntoWords(string $strText, string $strLocale) { $iterator = \IntlBreakIterator::createWordInstance($strLocale); $iterator->setText($strText); $words = array(); foreach ($iterator->getPartsIterator() as $part) { if ($iterator->getRuleStatus() !== \IntlBreakIterator::WORD_NONE) { $words[] = $part; } } return $words; } var_dump(splitIntoWords('Foƶ bar baz', 'de'));

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.0150.00717.88
8.3.50.0150.00617.60
8.3.40.0110.01119.78
8.3.30.0070.00719.90
8.3.20.0040.00419.77
8.3.10.0090.00022.67
8.3.00.0000.00822.87
8.2.180.0060.01017.88
8.2.170.0040.01122.96
8.2.160.0110.00420.08
8.2.150.0070.00025.66
8.2.140.0050.00324.66
8.2.130.0050.00322.00
8.2.120.0040.00426.35
8.2.110.0060.00323.23
8.2.100.0110.00018.91
8.2.90.0080.00018.97
8.2.80.0000.00918.75
8.2.70.0040.00419.14
8.2.60.0040.00419.34
8.2.50.0050.00518.63
8.2.40.0000.00920.61
8.2.30.0000.00820.45
8.2.20.0030.00619.18
8.2.10.0040.00419.43
8.2.00.0100.00018.72
8.1.280.0130.00925.92
8.1.270.0080.00021.38
8.1.260.0060.00326.35
8.1.250.0080.00028.09
8.1.240.0030.00723.21
8.1.230.0170.00021.94
8.1.220.0040.00418.89
8.1.210.0060.00620.02
8.1.200.0050.00518.35
8.1.190.0000.01018.23
8.1.180.0060.00318.65
8.1.170.0080.00019.71
8.1.160.0050.00220.02
8.1.150.0000.00719.89
8.1.140.0020.00521.23
8.1.130.0000.00921.10
8.1.120.0040.00418.46
8.1.110.0070.00218.45
8.1.100.0070.00218.45
8.1.90.0060.00618.36
8.1.80.0050.00518.37
8.1.70.0060.00318.47
8.1.60.0090.00318.46
8.1.50.0060.00618.49
8.1.40.0050.00518.41
8.1.30.0040.00818.58
8.1.20.0030.00618.57
8.1.10.0030.00518.59
8.1.00.0030.00918.44
8.0.300.0040.00421.14
8.0.290.0100.00017.74
8.0.280.0000.00719.43
8.0.270.0070.00018.25
8.0.260.0080.00021.33
8.0.250.0000.00917.86
8.0.240.0060.00217.88
8.0.230.0050.00517.84
8.0.220.0040.00417.68
8.0.210.0050.00517.79
8.0.200.0090.00017.87
8.0.190.0030.00617.91
8.0.180.0060.00617.75
8.0.170.0040.00817.70
8.0.160.0050.00517.89
8.0.150.0090.00017.77
8.0.140.0070.00417.86
8.0.130.0040.00413.32
8.0.120.0080.00317.70
8.0.110.0000.00917.94
8.0.100.0030.00617.86
8.0.90.0080.00018.00
8.0.80.0080.00917.96
8.0.70.0080.00017.76
8.0.60.0000.00818.03
8.0.50.0000.00818.00
8.0.30.0110.01218.08
8.0.20.0180.00318.05
8.0.10.0040.00417.98
8.0.00.0120.01117.80
7.4.330.0000.00415.55
7.4.320.0050.00317.59
7.4.300.0050.00317.47
7.4.290.0050.00517.52
7.4.280.0060.00617.52
7.4.270.0030.00717.61
7.4.260.0040.00817.56
7.4.250.0000.00717.45
7.4.240.0040.00417.42
7.4.230.0040.00417.62
7.4.220.0000.00817.34
7.4.210.0110.00817.45
7.4.200.0030.00317.57
7.4.160.0110.00817.50
7.4.140.0120.00817.86
7.4.130.0170.00717.36
7.4.120.0080.01217.48
7.4.110.0130.00917.46
7.4.100.0170.00917.46
7.4.90.0100.01017.41
7.4.80.0170.01019.39
7.4.70.0130.00717.42
7.4.60.0070.01117.41
7.4.50.0060.01017.48
7.4.40.0090.00917.59
7.4.10.0080.01215.93
7.4.00.0050.01315.80
7.3.330.0050.00013.30
7.3.320.0030.00313.12
7.3.310.0000.00717.40
7.3.300.0030.00417.32
7.3.290.0070.00017.31
7.3.280.0060.01217.34
7.3.260.0150.00617.41
7.3.240.0120.00717.45
7.3.230.0220.00617.54
7.3.210.0110.01117.38
7.3.200.0120.01217.50
7.3.190.0070.01717.55
7.3.180.0140.01417.44
7.3.170.0120.01317.45
7.3.160.0130.00717.47
7.3.130.0080.01015.80
7.3.120.0080.01115.84
7.3.110.0080.01015.82
7.3.100.0100.00315.78
7.3.90.0050.00915.79
7.3.80.0070.00615.99
7.3.70.0020.00815.83
7.3.60.0070.00715.88
7.3.50.0020.00915.58
7.3.40.0070.00515.71
7.3.30.0030.01015.66
7.3.20.0050.01017.73
7.3.10.0080.00417.76
7.3.00.0030.01117.74
7.2.330.0100.01017.51
7.2.320.0060.01117.84
7.2.310.0220.00717.66
7.2.300.0130.00317.74
7.2.290.0160.00617.73
7.2.260.0050.01516.16
7.2.250.0040.01516.01
7.2.240.0110.00516.07
7.2.230.0040.01316.00
7.2.220.0060.00616.29
7.2.210.0060.00615.90
7.2.200.0080.00616.16
7.2.190.0030.01316.12
7.2.180.0020.01016.05
7.2.170.0080.00615.93
7.2.160.0060.00815.86
7.2.150.0090.00717.68
7.2.140.0070.00617.72
7.2.130.0050.01117.94
7.2.120.0030.01217.69
7.2.110.0370.00317.17
7.2.100.0090.00617.05
7.2.90.0150.00817.17
7.2.80.0310.00517.17
7.2.70.0150.00617.27
7.2.60.0100.00717.17
7.2.50.0300.01117.23
7.2.40.0090.01117.25
7.2.30.0330.00517.27
7.2.20.0480.00817.20
7.2.10.0340.00817.21
7.2.00.0270.00717.26
7.1.330.0120.00316.71
7.1.320.0050.01216.78
7.1.310.0040.01016.58
7.1.300.0070.01116.48
7.1.290.0040.00616.72
7.1.280.0080.00716.74
7.1.270.0020.01016.62
7.1.260.0070.00516.75
7.1.250.0060.00816.54
7.1.240.0050.00916.79
7.1.230.0340.00816.13
7.1.220.0310.00715.99
7.1.210.0300.00715.97
7.1.200.0220.00415.96
7.1.190.0300.00816.05
7.1.180.0320.00516.02
7.1.170.0320.00815.98
7.1.160.0280.00516.05
7.1.150.0240.00716.12
7.1.140.0270.01016.04
7.1.130.0300.00415.98
7.1.120.0280.01016.15
7.1.110.0280.00916.22
7.1.100.0300.00716.02
7.1.90.0200.00616.07
7.1.80.0340.00616.24
7.1.70.0280.00316.13
7.1.60.0490.01021.88
7.1.50.0390.01121.70
7.1.40.0150.00821.82
7.1.30.0110.01221.82
7.1.20.0450.00621.85
7.1.10.0110.00416.04
7.1.00.0360.00915.75
7.0.330.0060.00916.48
7.0.320.0030.01216.55
7.0.310.0070.00816.30
7.0.300.0080.00516.56
7.0.290.0050.00716.27
7.0.280.0050.00516.22
7.0.270.0020.01016.38
7.0.260.0060.00316.26
7.0.250.0040.00816.28
7.0.240.0000.01116.54
7.0.230.0070.00716.49
7.0.220.0050.00616.40
7.0.210.0110.00216.40
7.0.200.0030.00916.47
7.0.190.0020.01116.39
7.0.180.0100.00516.57
7.0.170.0030.01016.24
7.0.160.0040.00816.44
7.0.150.0020.01416.40
7.0.140.0040.00716.37
7.0.130.0050.01116.54
7.0.120.0050.00716.40
7.0.110.0000.01216.47
7.0.100.0060.00616.47
7.0.90.0030.01116.47
7.0.80.0040.00816.58
7.0.70.0110.00516.27
7.0.60.0040.01116.43
7.0.50.0050.00716.51
7.0.40.0050.00914.51
7.0.30.0050.01014.32
7.0.20.0030.00814.40
7.0.10.0020.01114.37
7.0.00.0000.00914.50
5.6.400.0050.01014.04
5.6.390.0020.01314.04
5.6.380.0060.00914.04
5.6.370.0030.00813.93
5.6.360.0070.00914.09
5.6.350.0050.00514.03
5.6.340.0060.00714.21
5.6.330.0090.00514.07
5.6.320.0050.00814.08
5.6.310.0060.00514.21
5.6.300.0050.00714.22
5.6.290.0040.00914.25
5.6.280.0030.01214.13
5.6.270.0040.00714.04
5.6.260.0050.00914.20
5.6.250.0030.00814.23
5.6.240.0060.00814.21
5.6.230.0030.01013.97
5.6.220.0050.00814.24
5.6.210.0010.01014.09
5.6.200.0070.00614.23
5.6.190.0040.01013.93
5.6.180.0050.00814.12
5.6.170.0080.00614.26
5.6.160.0030.00714.13
5.6.150.0040.00914.15
5.6.140.0070.00414.16
5.6.130.0070.00514.17
5.6.120.0060.00714.15
5.6.110.0060.00614.03
5.6.100.0090.00514.01
5.6.90.0050.00814.14
5.6.80.0030.01114.02
5.6.70.0040.00613.95
5.6.60.0030.01214.06
5.6.50.0070.00514.11
5.6.40.0060.00814.03
5.6.30.0040.00813.99
5.6.20.0080.00614.02
5.6.10.0010.01014.04
5.6.00.0030.00614.11

preferences:
53.14 ms | 400 KiB | 5 Q