3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string1 = "sqrtpdrt"; // matched $string2 = "qwntfschrprtkjs"; // not matched (contains chr group) $regex = '/^(?= .*[bcdfghjklmnpqrstvwxz]{4} )(?!.*chr)/ix'; var_dump(preg_match($regex, $string1)); var_dump(preg_match($regex, $string2));

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.70.0110.00418.55
8.3.60.0100.01016.63
8.3.50.0130.00822.13
8.3.40.0070.00718.59
8.3.30.0080.00618.96
8.3.20.0040.00420.33
8.3.10.0050.00223.66
8.3.00.0080.00020.95
8.2.180.0140.00316.38
8.2.170.0140.00022.96
8.2.160.0030.01420.44
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0150.00626.16
8.2.120.0040.00419.73
8.2.110.0060.00322.24
8.2.100.0040.00720.38
8.2.90.0030.00619.21
8.2.80.0000.00817.97
8.2.70.0120.00017.59
8.2.60.0090.00017.91
8.2.50.0030.00618.07
8.2.40.0030.00619.89
8.2.30.0000.00818.09
8.2.20.0080.00017.81
8.2.10.0040.00418.09
8.2.00.0000.00917.71
8.1.280.0150.00625.92
8.1.270.0070.00323.97
8.1.260.0070.00026.35
8.1.250.0000.00828.09
8.1.240.0090.00023.85
8.1.230.0040.00819.10
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.47
8.1.190.0040.00417.13
8.1.180.0020.00518.10
8.1.170.0040.00418.60
8.1.160.0040.00422.02
8.1.150.0040.00418.60
8.1.140.0050.00217.50
8.1.130.0070.00017.77
8.1.120.0040.00317.57
8.1.110.0040.00417.50
8.1.100.0000.00717.54
8.1.90.0040.00317.45
8.1.80.0080.00017.46
8.1.70.0070.00017.50
8.1.60.0080.00017.60
8.1.50.0080.00017.52
8.1.40.0050.00517.60
8.1.30.0060.00317.68
8.1.20.0060.00317.68
8.1.10.0000.00717.51
8.1.00.0030.00617.51
8.0.300.0000.00718.77
8.0.290.0040.00416.88
8.0.280.0040.00418.35
8.0.270.0000.00717.13
8.0.260.0060.00017.21
8.0.250.0030.00517.13
8.0.240.0030.00516.97
8.0.230.0000.00717.09
8.0.220.0030.00317.00
8.0.210.0070.00017.03
8.0.200.0000.00617.10
8.0.190.0060.00317.14
8.0.180.0060.00317.07
8.0.170.0080.00017.02
8.0.160.0030.00317.03
8.0.150.0000.00716.90
8.0.140.0090.00016.98
8.0.130.0050.00013.40
8.0.120.0000.00817.02
8.0.110.0000.00817.11
8.0.100.0000.00717.03
8.0.90.0050.00317.06
8.0.80.0100.00516.98
8.0.70.0040.00416.93
8.0.60.0000.00716.93
8.0.50.0040.00417.01
8.0.30.0100.01417.13
8.0.20.0150.00817.40
8.0.10.0000.00717.14
8.0.00.0030.01717.00
7.4.330.0000.00515.05
7.4.320.0030.00316.76
7.4.300.0000.00616.75
7.4.290.0060.00316.66
7.4.280.0080.00016.64
7.4.270.0040.00416.66
7.4.260.0030.00316.64
7.4.250.0000.00816.72
7.4.240.0020.00516.64
7.4.230.0060.00316.82
7.4.220.0100.00716.66
7.4.210.0100.00716.56
7.4.200.0050.00316.77
7.4.160.0140.00316.50
7.4.150.0120.00617.40
7.4.140.0090.00817.86
7.4.130.0090.00916.57
7.4.120.0100.00716.63
7.4.110.0030.01316.51
7.4.100.0030.01316.63
7.4.90.0100.01116.82
7.4.80.0120.00919.39
7.4.70.0060.01216.89
7.4.60.0090.00616.74
7.4.50.0080.00016.50
7.4.40.0100.01316.57
7.4.30.0080.00816.46
7.4.00.0030.00914.79
7.3.330.0030.00313.11
7.3.320.0030.00313.03
7.3.310.0030.00316.21
7.3.300.0000.00716.35
7.3.290.0110.00316.46
7.3.280.0130.00616.38
7.3.270.0090.00917.40
7.3.260.0090.00916.32
7.3.250.0030.01416.66
7.3.240.0130.00316.34
7.3.230.0060.01016.56
7.3.210.0070.01016.58
7.3.200.0160.00019.39
7.3.190.0080.00816.48
7.3.180.0120.00316.64
7.3.170.0120.01216.60
7.3.160.0100.00716.36
7.3.120.0060.00915.18
7.2.330.0100.01216.72
7.2.320.0090.00616.62
7.2.310.0100.00716.59
7.2.300.0120.00616.67
7.2.290.0150.00616.57
7.2.00.0030.01319.43
7.1.100.0070.00318.15
7.1.70.0030.00917.26
7.1.60.0170.00719.70
7.1.50.0100.01316.56
7.1.00.0000.08022.47
7.0.200.0050.00216.67
7.0.140.0000.07722.09
7.0.100.0170.07719.83
7.0.90.0070.05019.95
7.0.80.0070.08319.79
7.0.70.0030.07719.96
7.0.60.0130.08019.91
7.0.50.0030.04720.25
7.0.40.0200.05720.03
7.0.30.0100.07320.15
7.0.20.0170.07020.11
7.0.10.0170.07720.13
7.0.00.0070.05720.07
5.6.280.0070.06720.82
5.6.250.0030.07720.47
5.6.240.0000.08720.54
5.6.230.0100.08020.60
5.6.220.0100.07720.64
5.6.210.0100.08020.39
5.6.200.0030.07021.04
5.6.190.0100.04020.96
5.6.180.0200.07021.07
5.6.170.0130.04321.05
5.6.160.0100.07721.06
5.6.150.0100.08321.04
5.6.140.0130.07320.95
5.6.130.0100.05020.95
5.6.120.0070.05321.05
5.6.110.0130.06020.93
5.6.100.0130.07321.01
5.6.90.0070.08721.05
5.6.80.0170.07020.45
5.6.70.0070.07320.30
5.6.60.0100.08020.39
5.6.50.0170.04320.33
5.6.40.0170.06720.35
5.6.30.0170.03020.46
5.6.20.0100.07320.40
5.6.10.0030.04720.43
5.6.00.0200.04020.30
5.5.380.0100.07720.36
5.5.370.0100.08020.45
5.5.360.0200.06720.34
5.5.350.0170.06720.34
5.5.340.0170.07320.88
5.5.330.0100.07020.86
5.5.320.0000.05320.76
5.5.310.0100.03720.88
5.5.300.0130.06020.79
5.5.290.0100.08020.77
5.5.280.0170.04720.90
5.5.270.0100.08320.89
5.5.260.0000.07720.90
5.5.250.0070.05020.73
5.5.240.0000.08720.26
5.5.230.0070.06020.13
5.5.220.0130.05720.14
5.5.210.0030.04720.27
5.5.200.0100.07320.08
5.5.190.0100.06320.24
5.5.180.0100.07719.98
5.5.160.0100.07720.21
5.5.150.0170.06720.24
5.5.140.0130.07720.26
5.5.130.0030.06720.07
5.5.120.0070.04320.11
5.5.110.0030.08320.26
5.5.100.0130.07320.06
5.5.90.0000.08020.06
5.5.80.0030.07720.10
5.5.70.0100.06320.14
5.5.60.0030.07020.05
5.5.50.0100.07320.14
5.5.40.0170.05720.05
5.5.30.0070.07719.92
5.5.20.0030.04320.07
5.5.10.0130.07320.03
5.5.00.0070.06020.08
5.4.450.0130.05019.42
5.4.440.0130.07319.44
5.4.430.0130.07719.55
5.4.420.0030.07719.34
5.4.410.0000.06318.98
5.4.400.0070.07319.04
5.4.390.0100.06719.07
5.4.380.0130.05318.84
5.4.370.0200.06019.09
5.4.360.0070.07019.05
5.4.350.0100.07319.04
5.4.340.0070.07019.02
5.4.320.0130.07019.13
5.4.310.0270.04719.05
5.4.300.0230.05718.81
5.4.290.0100.06019.23
5.4.280.0070.08019.05
5.4.270.0100.06019.23
5.4.260.0130.04319.11
5.4.250.0170.04319.13
5.4.240.0130.08019.11
5.4.230.0100.07718.95
5.4.220.0100.06319.03
5.4.210.0030.04718.80
5.4.200.0070.07319.11
5.4.190.0200.06018.88
5.4.180.0030.03718.87
5.4.170.0000.05718.95
5.4.160.0100.06018.92
5.4.150.0070.06318.89
5.4.140.0070.05016.32
5.4.130.0030.08316.30
5.4.120.0100.04716.26
5.4.110.0000.06016.42
5.4.100.0000.07716.43
5.4.90.0030.03716.45
5.4.80.0000.04716.36
5.4.70.0100.07016.29
5.4.60.0030.06316.18
5.4.50.0030.05316.38
5.4.40.0130.06316.36
5.4.30.0000.07716.32
5.4.20.0100.05716.27
5.4.10.0130.08016.18
5.4.00.0030.04015.75
5.3.290.0130.07014.57
5.3.280.0070.04014.43
5.3.270.0000.04714.51
5.3.260.0030.06014.56
5.3.250.0030.04314.42
5.3.240.0070.04014.61
5.3.230.0030.04314.55
5.3.220.0030.07714.38
5.3.210.0000.07714.55
5.3.200.0030.03314.50
5.3.190.0030.08014.55
5.3.180.0030.04014.38
5.3.170.0070.07714.56
5.3.160.0030.05314.39
5.3.150.0130.06014.46
5.3.140.0100.08314.54
5.3.130.0030.05014.45
5.3.120.0070.06014.52
5.3.110.0100.04314.36
5.3.100.0030.07713.90
5.3.90.0030.07313.97
5.3.80.0100.04313.78
5.3.70.0200.06013.86
5.3.60.0100.03713.91
5.3.50.0070.06713.93
5.3.40.0100.06313.93
5.3.30.0000.07313.89
5.3.20.0000.06013.69
5.3.10.0100.05713.56
5.3.00.0000.06713.43
5.2.170.0000.04311.00
5.2.160.0000.06711.09
5.2.150.0030.03711.10
5.2.140.0100.03710.97
5.2.130.0000.05011.02
5.2.120.0070.04710.98
5.2.110.0030.06011.14
5.2.100.0000.04010.95
5.2.90.0030.05711.05
5.2.80.0030.06010.92
5.2.70.0000.06310.92
5.2.60.0000.03710.84
5.2.50.0070.04010.99
5.2.40.0100.04311.04
5.2.30.0130.05311.03
5.2.20.0000.06310.92
5.2.10.0030.06310.93
5.2.00.0000.05710.60
5.1.60.0030.02710.00
5.1.50.0100.04710.04
5.1.40.0100.0479.96
5.1.30.0030.04310.36
5.1.20.0030.05010.37
5.1.10.0030.04710.14
5.1.00.0000.03010.11
5.0.50.0000.0238.76
5.0.40.0030.0208.76
5.0.30.0000.0308.76
5.0.20.0030.0178.76
5.0.10.0070.0138.76
5.0.00.0030.0308.76
4.4.90.0070.0338.76
4.4.80.0070.0178.76
4.4.70.0000.0378.76
4.4.60.0070.0138.76
4.4.50.0000.0308.76
4.4.40.0000.0438.76
4.4.30.0030.0308.76
4.4.20.0070.0338.76
4.4.10.0030.0178.76
4.4.00.0000.0278.76
4.3.110.0000.0178.76
4.3.100.0030.0138.76
4.3.90.0030.0178.76
4.3.80.0000.0278.76
4.3.70.0030.0138.76
4.3.60.0030.0108.76
4.3.50.0030.0138.76
4.3.40.0000.0308.76
4.3.30.0000.0178.76
4.3.20.0000.0178.76
4.3.10.0000.0138.76
4.3.00.0000.0138.76

preferences:
54.69 ms | 401 KiB | 5 Q