3v4l.org

run code in 300+ PHP versions simultaneously
<?php $strtest = “yyg中文字符yyg”; $pregstr = "/[\x{4e00}-\x{9fa5}]+/u"; if(preg_match($pregstr,$strtest,$matchArray)){ echo $matchArray[0]; } ?>

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.0090.00616.75
8.3.50.0150.00621.90
8.3.40.0070.00718.97
8.3.30.0000.01418.84
8.3.20.0070.00020.34
8.3.10.0080.00021.60
8.3.00.0030.00619.14
8.2.180.0150.00718.41
8.2.170.0070.01022.96
8.2.160.0140.00020.39
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0000.00919.05
8.2.120.0040.00426.35
8.2.110.0090.00022.31
8.2.100.0110.00017.93
8.2.90.0000.00818.99
8.2.80.0050.00317.97
8.2.70.0080.00017.63
8.2.60.0050.00318.04
8.2.50.0040.00418.07
8.2.40.0060.00319.39
8.2.30.0000.00720.71
8.2.20.0040.00417.85
8.2.10.0040.00418.05
8.2.00.0000.00817.93
8.1.280.0110.00425.92
8.1.270.0070.00323.67
8.1.260.0000.00728.09
8.1.250.0070.00028.09
8.1.240.0100.00019.19
8.1.230.0080.00417.55
8.1.220.0050.00317.74
8.1.210.0120.00018.77
8.1.200.0000.01117.22
8.1.190.0050.00317.21
8.1.180.0060.00318.10
8.1.170.0000.00818.78
8.1.160.0040.00422.07
8.1.150.0080.00018.82
8.1.140.0030.00619.55
8.1.130.0050.00317.62
8.1.120.0030.00517.40
8.1.110.0000.00717.34
8.1.100.0000.00817.37
8.1.90.0000.00717.44
8.1.80.0000.00817.37
8.1.70.0000.00717.40
8.1.60.0000.00817.41
8.1.50.0040.00417.47
8.1.40.0050.00317.50
8.1.30.0000.00817.47
8.1.20.0080.00017.55
8.1.10.0000.00817.52
8.1.00.0080.00017.34
8.0.300.0080.00018.77
8.0.290.0030.00616.75
8.0.280.0000.00718.38
8.0.270.0030.00317.12
8.0.260.0070.00017.28
8.0.250.0000.00717.02
8.0.240.0030.00517.00
8.0.230.0030.00616.94
8.0.220.0000.00716.98
8.0.210.0040.00416.96
8.0.200.0000.00616.97
8.0.190.0000.00717.01
8.0.180.0040.00416.93
8.0.170.0070.00316.98
8.0.160.0040.00416.86
8.0.150.0000.00716.91
8.0.140.0050.00216.85
8.0.130.0000.00613.31
8.0.120.0000.00816.95
8.0.110.0000.00716.83
8.0.100.0040.00416.83
8.0.90.0040.00416.99
8.0.80.0100.00616.98
8.0.70.0000.00716.79
8.0.60.0060.00316.89
8.0.50.0040.00416.96
8.0.30.0070.01216.97
8.0.20.0070.01117.40
8.0.10.0040.00416.98
8.0.00.0050.01316.68
7.4.330.0000.00516.80
7.4.320.0000.00616.78
7.4.300.0060.00016.81
7.4.290.0040.00416.64
7.4.280.0040.00416.82
7.4.270.0000.00816.64
7.4.260.0000.00716.55
7.4.250.0080.00016.62
7.4.240.0040.00316.81
7.4.230.0030.00316.89
7.4.220.0130.00716.84
7.4.210.0030.01116.90
7.4.200.0030.00316.84
7.4.160.0060.00916.63
7.4.150.0130.00617.40
7.4.140.0120.00717.86
7.4.130.0130.00617.01
7.4.120.0050.01516.77
7.4.110.0150.00316.88
7.4.100.0240.00016.81
7.4.90.0070.01516.68
7.4.80.0130.01019.39
7.4.70.0000.01816.70
7.4.60.0060.01016.79
7.4.50.0110.00416.70
7.4.40.0060.01016.56
7.4.30.0060.01316.64
7.4.00.0040.01115.27
7.3.330.0030.00313.20
7.3.320.0030.00513.35
7.3.310.0030.00316.32
7.3.300.0070.00016.50
7.3.290.0110.00416.45
7.3.280.0070.01016.51
7.3.270.0140.00317.40
7.3.260.0090.00916.64
7.3.240.0130.00816.59
7.3.230.0060.01016.56
7.3.210.0180.00716.60
7.3.200.0160.00916.32
7.3.190.0120.00616.82
7.3.180.0000.01716.43
7.3.170.0060.00916.72
7.3.160.0040.01216.43
7.2.330.0120.00616.67
7.2.320.0100.00616.77
7.2.310.0030.01316.64
7.2.300.0190.00016.63
7.2.290.0100.00716.71
7.2.60.0030.01016.94
7.2.00.0130.00319.76
7.1.200.0040.00815.94
7.1.100.0030.00818.56
7.1.70.0000.01017.43
7.1.60.0100.01319.48
7.1.50.0060.01617.20
7.1.00.0070.07322.55
7.0.200.0410.00314.89
7.0.60.0000.04719.96
7.0.50.0100.07717.80
7.0.40.0070.04020.30
7.0.30.0400.05020.21
7.0.20.0330.03720.23
7.0.10.0100.04020.21
7.0.00.0000.04320.03
5.6.280.0070.05721.10
5.6.210.0130.08020.70
5.6.200.0130.06718.23
5.6.190.0070.08320.61
5.6.180.0130.05720.56
5.6.170.0230.07720.37
5.6.160.0100.07020.38
5.6.150.0100.03318.07
5.6.140.0070.05718.11
5.6.130.0070.06718.18
5.6.120.0100.07020.87
5.6.110.0170.08020.98
5.6.100.0000.07321.00
5.6.90.0070.09020.96
5.6.80.0130.07320.53
5.5.350.4200.04320.42
5.5.340.0100.06317.98
5.5.330.0030.05320.59
5.5.320.0130.07020.28
5.5.310.0400.05320.26
5.5.300.0030.08317.98
5.5.290.0030.09017.91
5.5.280.0070.06720.89
5.5.270.0030.08320.76
5.5.260.0030.08320.75
5.5.250.0100.07320.61
5.5.240.0330.05020.18

preferences:
49.07 ms | 401 KiB | 5 Q