3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string ='華中六街';var_dump(mb_detect_encoding($string)); var_dump($without = preg_split('/\s+/', $string)); var_dump($with = preg_split('/\s+/u', $string)); var_dump($with == $without); $string ='華中 六街'; var_dump(mb_detect_encoding($string)); var_dump($without = preg_split('/\s+/', $string)); var_dump($with = preg_split('/\s+/u', $string)); var_dump($with == $without);

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.40.0180.00418.86
8.3.30.0100.00319.04
8.3.20.0000.00720.37
8.3.10.0000.00821.69
8.3.00.0050.00319.50
8.2.170.0040.01122.96
8.2.160.0070.00720.39
8.2.150.0000.00824.18
8.2.140.0000.00724.66
8.2.130.0030.00526.16
8.2.120.0030.00621.00
8.2.110.0060.00319.26
8.2.100.0030.00917.86
8.2.90.0000.00819.40
8.2.80.0030.00617.97
8.2.70.0120.00017.63
8.2.60.0000.00818.18
8.2.50.0040.00418.07
8.2.40.0070.00018.16
8.2.30.0040.00418.24
8.2.20.0000.00918.00
8.2.10.0080.00018.14
8.2.00.0060.00318.13
8.1.270.0080.00023.83
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00622.46
8.1.230.0070.00420.88
8.1.220.0050.00318.77
8.1.210.0030.00518.88
8.1.200.0030.00617.48
8.1.190.0050.00317.35
8.1.180.0000.00819.10
8.1.170.0050.00518.53
8.1.160.0040.00422.11
8.1.150.0030.00518.89
8.1.140.0040.00417.60
8.1.130.0000.00717.86
8.1.120.0050.00317.69
8.1.110.0040.00417.66
8.1.100.0040.00417.65
8.1.90.0040.00417.70
8.1.80.0000.00717.59
8.1.70.0030.00517.61
8.1.60.0060.00317.71
8.1.50.0000.00817.79
8.1.40.0080.00017.61
8.1.30.0050.00317.84
8.1.20.0000.00817.87
8.1.10.0040.00417.59
8.1.00.0000.00817.58
8.0.300.0000.00719.96
8.0.290.0000.00716.97
8.0.280.0000.00718.59
8.0.270.0000.00717.31
8.0.260.0030.00317.27
8.0.250.0030.00317.20
8.0.240.0050.00217.16
8.0.230.0070.00317.25
8.0.220.0040.00417.23
8.0.210.0000.00717.12
8.0.200.0030.00317.15
8.0.190.0040.00417.28
8.0.180.0000.00817.21
8.0.170.0040.00417.24
8.0.160.0000.00717.28
8.0.150.0070.00417.06
8.0.140.0030.00617.08
8.0.130.0060.00013.58
8.0.120.0030.00617.14
8.0.110.0000.00817.18
8.0.100.0070.00017.10
8.0.90.0000.00717.08
8.0.80.0140.00717.23
8.0.70.0040.00417.18
8.0.60.0070.00017.05
8.0.50.0000.00717.23
8.0.30.0130.00517.22
8.0.20.0100.00917.40
8.0.10.0040.00417.04
8.0.00.0140.00316.86
7.4.330.0000.00515.11
7.4.320.0050.00216.83
7.4.300.0050.00216.98
7.4.290.0000.00716.84
7.4.280.0080.00016.79
7.4.270.0070.00016.89
7.4.260.0000.00716.86
7.4.250.0030.00316.86
7.4.240.0030.00316.88
7.4.230.0000.00716.97
7.4.220.0130.00316.87
7.4.210.0110.00416.97
7.4.200.0070.00016.68
7.4.160.0030.01416.63
7.4.150.0150.00317.40
7.4.140.0140.00417.86
7.4.130.0190.00516.71
7.4.120.0130.00416.75
7.4.110.0120.00616.50
7.4.100.0090.01816.56
7.4.90.0150.00416.61
7.4.80.0120.00619.39
7.4.70.0170.00616.61
7.4.60.0090.00916.73
7.4.50.0000.00916.79
7.4.40.0110.00617.01
7.4.30.0100.00716.74
7.4.00.0110.00515.25
7.3.330.0030.00313.30
7.3.320.0030.00313.27
7.3.310.0040.00416.61
7.3.300.0070.00016.46
7.3.290.0040.01216.41
7.3.280.0080.01116.43
7.3.270.0090.00917.40
7.3.260.0140.00416.73
7.3.250.0110.00616.49
7.3.240.0130.00416.57
7.3.230.0110.00716.41
7.3.210.0040.01416.80
7.3.200.0030.01319.39
7.3.190.0000.01616.77
7.3.180.0030.01316.45
7.3.170.0060.01016.73
7.3.160.0060.01016.79
7.3.120.0070.00714.95
7.3.110.0100.01014.76
7.3.100.0030.01314.71
7.3.90.0030.00614.95
7.3.80.0060.00914.94
7.3.70.0000.01514.66
7.3.60.0060.00915.02
7.3.50.0000.01114.72
7.3.40.0030.01314.79
7.3.30.0000.01314.92
7.3.20.0120.00316.98
7.3.10.0050.00916.73
7.3.00.0090.00716.71
7.2.330.0110.00716.82
7.2.320.0150.00316.71
7.2.310.0070.01416.89
7.2.300.0110.01416.84
7.2.290.0050.01116.79
7.2.250.0090.00915.31
7.2.240.0070.01415.20
7.2.230.0090.00615.06
7.2.220.0030.00615.20
7.2.210.0060.00615.13
7.2.200.0030.01415.22
7.2.190.0130.00315.11
7.2.180.0060.00914.88
7.2.170.0110.00415.36
7.2.130.0050.00916.66
7.2.120.0080.00616.86
7.2.110.0130.00916.91
7.2.100.0090.00616.83
7.2.90.0110.00816.95
7.2.80.0080.00516.81
7.2.70.0070.00716.96
7.2.60.0060.01116.82
7.2.50.0170.00616.90
7.2.40.0100.00716.81
7.2.30.0190.00417.01
7.2.20.0070.01016.85
7.2.10.0110.00416.74
7.2.00.0060.01017.76
7.1.330.0090.00615.86
7.1.320.0100.00015.86
7.1.310.0080.00416.13
7.1.300.0160.00016.15
7.1.290.0030.01315.92
7.1.280.0070.01115.72
7.1.270.0070.00716.10
7.1.260.0060.00615.80
7.1.250.0060.00515.83
7.1.200.0150.00416.02
7.1.100.0130.00318.55
7.1.70.0040.00417.46
7.1.60.0030.01419.40
7.1.50.0060.01817.21
7.1.00.0100.07022.50
7.0.200.0000.00816.91
7.0.140.0170.06021.97
7.0.100.0270.08019.98
7.0.90.0330.07019.94
7.0.80.0230.05319.90
7.0.70.0400.06719.93
7.0.60.0330.06719.84
7.0.50.0330.07720.34
7.0.40.0170.07320.05
7.0.30.0030.06720.09
7.0.20.0170.07020.15
7.0.10.0030.05320.05
7.0.00.0100.08320.03
5.6.280.0070.07321.07
5.6.250.0130.07720.69
5.6.240.0070.06720.69
5.6.230.0070.08720.54
5.6.220.0100.07720.66
5.6.210.0100.08020.75
5.6.200.0070.08321.03
5.6.190.0200.07021.04
5.6.180.0100.08021.08
5.6.170.0030.08321.02
5.6.160.0000.08021.03
5.6.150.0070.07721.02
5.6.140.0130.07021.09
5.6.130.0130.08721.03
5.6.120.0070.04320.99
5.6.110.0070.06321.06
5.6.100.0030.09020.99
5.6.90.0100.04721.04
5.6.80.0100.06720.51
5.6.70.0170.06020.41
5.6.60.0130.07720.48
5.6.50.0100.08020.46
5.6.40.0130.05720.34
5.6.30.0170.06020.52
5.6.20.0030.08720.52
5.6.10.0100.06720.52
5.6.00.0170.06720.28
5.5.380.0100.08020.56
5.5.370.0070.04020.40
5.5.360.0070.08320.35
5.5.350.0170.07720.42
5.5.340.0100.08020.89
5.5.330.0000.09020.75
5.5.320.0200.07020.77
5.5.310.0100.04720.73
5.5.300.0100.07320.64
5.5.290.0030.08720.60
5.5.280.0030.07020.85
5.5.270.0170.07020.89
5.5.260.0100.08020.75
5.5.250.0030.07320.66
5.5.240.0130.03320.27
5.5.230.0100.07720.29
5.5.220.0030.05720.16
5.5.210.0130.06020.27
5.5.200.0200.07020.27
5.5.190.0100.07320.22
5.5.180.0170.06720.10
5.5.160.0030.08720.18
5.5.150.0100.04720.21
5.5.140.0070.07720.15
5.5.130.0070.04320.05
5.5.120.0170.07020.23
5.5.110.0070.07320.20
5.5.100.0070.08020.15
5.5.90.0030.07320.00
5.5.80.0030.08019.92
5.5.70.0100.07320.05
5.5.60.0030.07720.13
5.5.50.0030.06720.14
5.5.40.0230.06019.98
5.5.30.0070.06020.06
5.5.20.0100.08019.98
5.5.10.0100.04720.13
5.5.00.0070.07720.07
5.4.450.0000.08319.43
5.4.440.0100.07019.40
5.4.430.0070.05719.35
5.4.420.0030.08019.43
5.4.410.0100.04019.18
5.4.400.0070.05319.25
5.4.390.0130.06318.90
5.4.380.0000.08319.09
5.4.370.0070.07719.02
5.4.360.0100.05718.98
5.4.350.0130.06018.94
5.4.340.0100.06019.23
5.4.320.0100.07319.02
5.4.310.0170.07019.14
5.4.300.0100.05018.96
5.4.290.0130.07318.89
5.4.280.0070.06019.09
5.4.270.0070.07318.96
5.4.260.0130.06718.95
5.4.250.0030.05719.07
5.4.240.0030.07718.80
5.4.230.0100.04018.97
5.4.220.0130.07018.95
5.4.210.0030.08019.06
5.4.200.0100.06718.93
5.4.190.0100.07318.82
5.4.180.0030.08019.02
5.4.170.0070.07318.89
5.4.160.0100.06718.92
5.4.150.0000.08019.02
5.4.140.0070.07016.25
5.4.130.0030.07316.24
5.4.120.0070.04016.20
5.4.110.0030.04716.21
5.4.100.0030.03716.33
5.4.90.0030.03716.25
5.4.80.0000.04016.22
5.4.70.0030.03316.19
5.4.60.0030.03316.38
5.4.50.0000.03716.38
5.4.40.0070.03316.24
5.4.30.0030.03316.34
5.4.20.0030.03716.31
5.4.10.0000.05016.28
5.4.00.0000.03315.69
5.3.290.0070.07314.57
5.3.280.0100.04014.41
5.3.270.0070.07314.51
5.3.260.0130.07014.46
5.3.250.0070.07014.42
5.3.240.0070.06714.55
5.3.230.0130.07014.56
5.3.220.0000.04014.39
5.3.210.0130.06014.47
5.3.200.0000.04714.54
5.3.190.0030.04314.55
5.3.180.0070.03314.47
5.3.170.0030.03714.47
5.3.160.0130.02714.54
5.3.150.0030.03714.54
5.3.140.0030.03714.41
5.3.130.0000.04014.55
5.3.120.0130.03314.38
5.3.110.0000.04014.51
5.3.100.0030.04714.03
5.3.90.0070.03313.93
5.3.80.0000.04313.89
5.3.70.0100.05014.02
5.3.60.0030.03713.93
5.3.50.0070.03013.95
5.3.40.0030.03713.95
5.3.30.0000.03713.89
5.3.20.0070.07013.54
5.3.10.0000.03713.61
5.3.00.0070.03313.55
5.2.170.0070.05011.59
5.2.160.0070.02711.59
5.2.150.0000.03011.59
5.2.140.0000.03311.59
5.2.130.0030.03011.59
5.2.120.0070.02311.59
5.2.110.0030.02711.59
5.2.100.0000.03311.59
5.2.90.0000.03311.59
5.2.80.0070.02711.59
5.2.70.0030.02711.59
5.2.60.0000.03011.59
5.2.50.0070.02311.59
5.2.40.0030.02711.59
5.2.30.0070.02311.59
5.2.20.0070.02311.59
5.2.10.0030.02711.59
5.2.00.0000.03311.59
5.1.60.0030.02311.59
5.1.50.0000.02711.59
5.1.40.0030.02311.59
5.1.30.0000.02711.59
5.1.20.0000.03011.59
5.1.10.0000.02711.59
5.1.00.0000.02311.59
5.0.50.0030.02011.59
5.0.40.0000.02011.59
5.0.30.0000.02711.59
5.0.20.0000.02311.59
5.0.10.0000.02011.59
5.0.00.0000.03311.59
4.4.90.0000.01711.59
4.4.80.0000.01711.59
4.4.70.0000.01711.59
4.4.60.0000.01711.59
4.4.50.0000.01711.59
4.4.40.0030.02011.59
4.4.30.0030.01311.59
4.4.20.0000.01711.59
4.4.10.0000.01711.59
4.4.00.0000.02311.59
4.3.110.0000.01711.59
4.3.100.0000.01311.59
4.3.90.0000.01711.59
4.3.80.0000.02711.59
4.3.70.0000.01311.59
4.3.60.0030.01311.59
4.3.50.0030.01311.59
4.3.40.0030.02011.59
4.3.30.0000.01711.59
4.3.20.0030.01311.59
4.3.10.0000.01711.59
4.3.00.0000.01711.59

preferences:
44.32 ms | 400 KiB | 5 Q