3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_regex_encoding('UTF-8'); mb_internal_encoding('UTF-8'); $arr = mb_split('\B', "你好"); # Array ( [0] => 你 [1] => 好 ) ## Okay! print_r($arr); $arr = mb_split('\B', "abc"); # Array ( [0] => 你 [1] => 你 ) ## Expected Result print_r($arr); ## Instead, this message appears: ## Warning: mb_split(): mbregex search failure in mbsplit(): ## no support in this configuration in /dir/foo.php on line 22 $arr = mb_split('\B', '隨著劇情的推進'); print_r($arr);

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.0280.00016.50
8.3.50.0080.01321.37
8.3.40.0030.01018.65
8.3.30.0100.01019.05
8.3.20.0000.00820.20
8.3.10.0090.00921.87
8.3.00.0120.00621.11
8.2.180.0170.00716.75
8.2.170.0110.00422.96
8.2.160.0120.00321.99
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0070.01026.16
8.2.120.0040.00419.66
8.2.110.0090.00022.38
8.2.100.0040.00817.63
8.2.90.0040.00419.36
8.2.80.0060.00317.97
8.2.70.0000.00817.63
8.2.60.0060.00318.04
8.2.50.0000.01118.07
8.2.40.0040.00419.95
8.2.30.0040.00418.17
8.2.20.0070.00017.78
8.2.10.0040.00418.11
8.2.00.0070.00017.61
8.1.280.0070.01025.92
8.1.270.0110.00320.73
8.1.260.0080.00026.35
8.1.250.0090.00928.09
8.1.240.0080.00024.11
8.1.230.0070.00719.14
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00917.35
8.1.190.0040.00417.38
8.1.180.0030.00618.10
8.1.170.0030.00518.73
8.1.160.0030.00522.18
8.1.150.0000.00718.88
8.1.140.0080.00019.37
8.1.130.0040.00417.82
8.1.120.0040.00417.61
8.1.110.0050.00317.57
8.1.100.0040.00417.52
8.1.90.0040.00417.61
8.1.80.0040.00417.54
8.1.70.0000.00717.60
8.1.60.0030.00617.70
8.1.50.0000.00717.68
8.1.40.0040.00417.54
8.1.30.0050.00317.73
8.1.20.0040.00417.65
8.1.10.0000.00717.50
8.1.00.0030.00517.42
8.0.300.0040.00418.77
8.0.290.0050.00316.88
8.0.280.0040.00418.57
8.0.270.0030.00317.31
8.0.260.0000.00617.44
8.0.250.0000.00717.04
8.0.240.0070.00016.96
8.0.230.0060.00317.13
8.0.220.0000.00816.92
8.0.210.0000.00717.03
8.0.200.0030.00317.13
8.0.190.0000.00717.04
8.0.180.0000.00716.99
8.0.170.0030.00517.02
8.0.160.0060.00316.98
8.0.150.0030.00516.97
8.0.140.0000.00816.91
8.0.130.0060.00013.50
8.0.120.0040.00416.98
8.0.110.0000.00717.02
8.0.100.0030.00316.95
8.0.90.0040.00416.89
8.0.80.0100.00717.01
8.0.70.0080.00016.89
8.0.60.0070.00016.90
8.0.50.0020.00516.96
8.0.30.0160.01017.15
8.0.20.0120.01317.40
8.0.10.0000.00717.19
8.0.00.0060.01216.93
7.4.330.0000.00515.20
7.4.320.0040.00416.76
7.4.300.0030.00316.73
7.4.290.0030.00316.51
7.4.280.0070.00016.70
7.4.270.0040.00416.55
7.4.260.0040.00416.68
7.4.250.0070.00016.60
7.4.240.0070.00216.68
7.4.230.0040.00416.75
7.4.220.0060.01216.79
7.4.210.0000.01416.66
7.4.200.0030.00516.70
7.4.160.0040.01116.59
7.4.150.0160.01217.40
7.4.140.0100.01017.86
7.4.130.0080.01116.63
7.4.120.0060.01216.49
7.4.110.0090.00916.62
7.4.100.0110.00616.53
7.4.90.0140.00416.85
7.4.80.0070.01016.40
7.4.70.0140.00416.57
7.4.60.0090.00616.56
7.4.50.0060.00016.66
7.4.40.0100.00716.56
7.4.30.0120.00816.54
7.4.00.0080.00414.97
7.3.330.0000.00513.00
7.3.320.0060.00613.12
7.3.310.0030.00316.26
7.3.300.0060.00016.18
7.3.290.0110.00616.27
7.3.280.0120.00616.31
7.3.270.0100.00917.40
7.3.260.0100.01016.42
7.3.250.0110.00616.29
7.3.240.0130.00916.22
7.3.230.0060.01216.43
7.3.210.0150.00716.27
7.3.200.0100.01019.39
7.3.190.0280.02116.31
7.3.180.0060.00916.46
7.3.170.0060.00916.47
7.3.160.0030.01316.36
7.3.10.0000.01016.45
7.3.00.0070.00716.51
7.2.330.0070.01116.63
7.2.320.0120.00616.57
7.2.310.0090.01416.69
7.2.300.0000.01516.50
7.2.290.0070.01116.42
7.2.130.0100.00316.77
7.2.120.0050.00216.94
7.2.110.0030.00516.88
7.2.100.0000.01116.86
7.2.90.0040.00416.98
7.2.80.0030.01016.68
7.2.70.0100.00016.81
7.2.60.0100.00416.85
7.2.50.0060.01216.94
7.2.40.0030.01016.97
7.2.30.0030.01316.97
7.2.20.0060.00616.85
7.2.10.0040.01116.72
7.2.00.0050.00818.09
7.1.250.0040.01115.53
7.1.200.0030.00715.86
7.1.100.0060.00618.07
7.1.70.0070.00016.86
7.1.60.0100.00619.46
7.1.50.0100.01016.69
7.1.00.0070.07322.54
7.0.200.0040.00416.43
7.0.140.0070.03022.00
7.0.60.0100.06319.97
7.0.50.0030.05717.90
7.0.40.0070.08720.09
7.0.30.0170.04720.06
7.0.20.0200.06020.05
7.0.10.0170.06320.06
7.0.00.0070.08320.25
5.6.280.0130.06320.91
5.6.210.0100.04720.64
5.6.200.0030.05018.14
5.6.190.0070.07320.67
5.6.180.0500.06020.47
5.6.170.0200.03720.39
5.6.160.0130.08720.43
5.6.150.0030.08318.26
5.6.140.0170.05718.24
5.6.130.0100.08318.15
5.6.120.0070.08020.98
5.6.110.0100.06021.13
5.6.100.0030.05721.11
5.6.90.0270.06720.97
5.6.80.0030.07720.38
5.5.350.0300.08020.46
5.5.340.0070.03718.08
5.5.330.0100.07720.21
5.5.320.0030.04720.27
5.5.310.0300.06320.41
5.5.300.0070.07318.04
5.5.290.0070.05317.98
5.5.280.0130.05320.89
5.5.270.0030.07020.74
5.5.260.0100.08320.67
5.5.250.0070.07720.53
5.5.240.0070.04720.12
5.4.450.0500.06019.41
5.4.440.1070.06319.16
5.4.430.1100.04319.19
5.4.420.0970.04719.64
5.4.410.1170.05019.06
5.4.400.0700.05718.84
5.4.390.0930.05018.69
5.4.380.0900.05318.73
5.4.370.1170.07318.53
5.4.360.1100.05318.80
5.4.350.1030.05318.80
5.4.340.1230.04018.53
5.4.320.1030.05718.50
5.4.310.1000.06018.75
5.4.300.1230.04018.50
5.4.290.1070.05018.71
5.4.280.1170.06018.70
5.4.270.0900.05018.50
5.4.260.0930.05018.70
5.4.250.0970.06018.77
5.4.240.0930.06018.73
5.4.230.1170.05718.74
5.4.220.0970.05318.75
5.4.210.1100.05318.77
5.4.200.1170.04016.55
5.4.190.1000.05018.44
5.4.180.1100.05718.48
5.4.170.0900.06018.72
5.4.160.0900.07318.54
5.4.150.0930.07018.61
5.4.140.0900.05016.36
5.4.130.0900.04316.22
5.4.120.0970.05016.20
5.4.110.0800.05716.43
5.4.100.0870.05316.28
5.4.90.0970.06716.24
5.4.80.1130.06716.20
5.4.70.1030.04316.14
5.4.60.1030.06016.16
5.4.50.0870.05016.25
5.4.40.1070.04316.28
5.4.30.1100.05316.19
5.4.20.0970.05016.19
5.4.10.0900.05716.16
5.4.00.0970.05315.63
5.3.290.0970.05714.76
5.3.280.0900.05014.80
5.3.270.0930.05014.62
5.3.260.0900.05714.63
5.3.250.1000.05714.70
5.3.240.1070.06714.73
5.3.230.1100.07014.64
5.3.220.1070.05014.78
5.3.210.0930.05314.74
5.3.200.0970.06014.78
5.3.190.0870.06014.61
5.3.180.0870.05014.61
5.3.170.0930.04714.58
5.3.160.0770.06014.59
5.3.150.1130.08014.76
5.3.140.0930.06014.64
5.3.130.0830.06014.58
5.3.120.0830.06014.54
5.3.110.1000.04714.71
5.3.100.0870.05014.07
5.3.90.0870.05314.07
5.3.80.0830.06014.11
5.3.70.0970.04314.05
5.3.60.0930.05014.02
5.3.50.0800.06314.01
5.3.40.1000.06014.00
5.3.30.1230.06314.04
5.3.20.1030.05013.72
5.3.10.1100.04313.70
5.3.00.1070.05313.73
5.2.170.0870.04311.26
5.2.160.0800.05311.16
5.2.150.0770.04011.18
5.2.140.0870.05011.25
5.2.130.0970.04011.22
5.2.120.0730.04011.16
5.2.110.0870.03711.23
5.2.100.0800.03711.15
5.2.90.0770.05011.20
5.2.80.0870.03711.09
5.2.70.0730.04311.31
5.2.60.0700.06011.06
5.2.50.0930.05711.03
5.2.40.0530.04011.01
5.2.30.0500.05011.07
5.2.20.0630.04011.06
5.2.10.0700.03311.07
5.2.00.0500.04710.84
5.1.60.0600.0379.99
5.1.50.0700.04010.13
5.1.40.0670.03710.03
5.1.30.0630.04710.37
5.1.20.0530.04310.34
5.1.10.0600.03310.13
5.1.00.0570.04010.08
5.0.50.0330.0308.64
5.0.40.0330.0308.43
5.0.30.0370.0438.25
5.0.20.0300.0278.23
5.0.10.0370.0338.20
5.0.00.0370.0378.27
4.4.90.0370.0335.94
4.4.80.0400.0275.91
4.4.70.0370.0205.87
4.4.60.0470.0235.86
4.4.50.0330.0235.88
4.4.40.0330.0375.87
4.4.30.0470.0275.91
4.4.20.0330.0175.88
4.4.10.0300.0205.91
4.4.00.0300.0335.92
4.3.110.0230.0275.80
4.3.100.0370.0175.85
4.3.90.0330.0205.80
4.3.80.0400.0275.80
4.3.70.0300.0235.77
4.3.60.0330.0205.82
4.3.50.0270.0335.82
4.3.40.0330.0375.75
4.3.30.0130.0235.18
4.3.20.0170.0205.18
4.3.10.0130.0235.18
4.3.00.0270.02314.62

preferences:
44.45 ms | 401 KiB | 5 Q