3v4l.org

run code in 300+ PHP versions simultaneously
<?php // \u{...} syntax is only allowed in PHP 7+ version_compare(PHP_VERSION, "7.0", ">=") || die; $RegularExpression = "/^[a-z\u{0430}-\u{044F}]+$/iu"; $TestStrArray = array('ABC', 'abc', "\u{0410}\u{0411}\u{0412}", "\u{0430}\u{0431}\u{0432}"); foreach ($TestStrArray as $TestStr) { $Result = preg_match($RegularExpression, $TestStr); echo $TestStr; if ($Result === false) { echo ' - Error'."\r\n"; } else { echo ' - '.($Result === 0 ? 'not found' : 'found')."\r\n"; } } // foreach ?>

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.90.0050.00326.77
8.3.80.0070.00316.63
8.3.70.0130.00816.75
8.3.60.0090.00616.74
8.3.50.0140.00622.17
8.3.40.0090.00618.71
8.3.30.0040.01118.92
8.3.20.0040.00419.11
8.3.10.0030.00521.77
8.3.00.0000.00920.96
8.2.210.0080.00826.77
8.2.200.0030.00616.88
8.2.190.0080.00816.75
8.2.180.0070.00725.92
8.2.170.0140.00719.04
8.2.160.0110.00422.96
8.2.150.0080.00025.66
8.2.140.0050.00324.66
8.2.130.0040.00421.13
8.2.120.0000.00826.35
8.2.110.0090.00021.15
8.2.100.0090.00317.82
8.2.90.0030.00618.16
8.2.80.0060.00317.97
8.2.70.0050.00317.93
8.2.60.0060.00317.97
8.2.50.0040.00418.10
8.2.40.0000.00720.63
8.2.30.0050.00319.33
8.2.20.0040.00418.14
8.2.10.0050.00218.21
8.2.00.0040.00418.00
8.1.290.0060.00318.88
8.1.280.0070.01425.92
8.1.270.0080.00022.02
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0080.00022.06
8.1.230.0110.00021.05
8.1.220.0080.00017.91
8.1.210.0040.00418.82
8.1.200.0040.00417.48
8.1.190.0060.00317.48
8.1.180.0030.00518.10
8.1.170.0000.00818.89
8.1.160.0030.00518.98
8.1.150.0040.00420.30
8.1.140.0020.00519.66
8.1.130.0040.00417.70
8.1.120.0040.00417.63
8.1.110.0000.00817.51
8.1.100.0050.00317.57
8.1.90.0080.00017.62
8.1.80.0000.00817.51
8.1.70.0000.00717.56
8.1.60.0050.00317.71
8.1.50.0060.00317.68
8.1.40.0000.00817.53
8.1.30.0000.00817.74
8.1.20.0080.00017.68
8.1.10.0000.00817.70
8.1.00.0000.00817.65
8.0.300.0000.00720.02
8.0.290.0040.00416.88
8.0.280.0040.00418.42
8.0.270.0070.00017.24
8.0.260.0050.00317.22
8.0.250.0020.00517.29
8.0.240.0030.00317.09
8.0.230.0040.00417.05
8.0.220.0070.00017.15
8.0.210.0000.00717.15
8.0.200.0000.00717.20
8.0.190.0030.01117.23
8.0.180.0040.00417.22
8.0.170.0060.00317.14
8.0.160.0060.00317.12
8.0.150.0050.00217.11
8.0.140.0000.00817.03
8.0.130.0000.00613.54
8.0.120.0090.00017.03
8.0.110.0000.00717.00
8.0.100.0070.00017.23
8.0.90.0000.00717.04
8.0.80.0090.00617.18
8.0.70.0050.00217.20
8.0.60.0050.00216.98
8.0.50.0000.00816.96
8.0.30.0150.00517.21
8.0.20.0130.00517.40
8.0.10.0040.00417.20
8.0.00.0090.01517.15
7.4.330.0000.00615.55
7.4.320.0060.00016.79
7.4.300.0030.00316.72
7.4.290.0040.00416.86
7.4.280.0040.00416.73
7.4.270.0030.00516.85
7.4.260.0000.00716.75
7.4.250.0030.00516.73
7.4.240.0040.00416.71
7.4.230.0050.00316.93
7.4.220.0090.00916.98
7.4.210.0050.00916.80
7.4.200.0030.00316.68
7.4.160.0090.01016.70
7.4.150.0120.00617.40
7.4.140.0090.00917.86
7.4.130.0070.01016.81
7.4.120.0090.01216.75
7.4.110.0140.00716.75
7.4.100.0100.00916.71
7.4.90.0140.00416.92
7.4.80.0030.01319.39
7.4.70.0030.01316.93
7.4.60.0090.00916.88
7.4.50.0040.01116.72
7.4.40.0090.00616.64
7.4.30.0070.01016.85
7.4.00.0100.00615.13
7.3.330.0050.00013.29
7.3.320.0000.00613.38
7.3.310.0040.00416.63
7.3.300.0000.00716.65
7.3.290.0090.00516.52
7.3.280.0110.00716.52
7.3.270.0130.00317.40
7.3.260.0110.00716.82
7.3.250.0050.01116.65
7.3.240.0040.01516.61
7.3.230.0040.01216.48
7.3.210.0090.00616.58
7.3.200.0110.00716.61
7.3.190.0110.00716.83
7.3.180.0110.00516.66
7.3.170.0080.00816.57
7.3.160.0060.00916.75
7.3.10.0000.01416.85
7.3.00.0080.00616.61
7.2.330.0000.01716.86
7.2.320.0170.00316.88
7.2.310.0070.01416.88
7.2.300.0100.00716.66
7.2.290.0000.01616.75
7.2.130.0030.01016.95
7.2.120.0060.01017.17
7.2.110.0060.00916.97
7.2.100.0060.00616.96
7.2.90.0090.00617.05
7.2.80.0120.00317.13
7.2.70.0070.00417.15
7.2.60.0060.00817.11
7.2.50.0090.00717.22
7.2.40.0030.01017.07
7.2.30.0080.00617.05
7.2.20.0100.00617.04
7.2.10.0070.00717.12
7.2.00.0110.00016.95
7.1.250.0030.01015.79
7.1.200.0040.01116.17
7.1.70.0030.00717.27
7.1.60.0040.00717.50
7.1.50.0090.01217.29
7.1.00.0030.08722.38
7.0.200.0040.00416.98
7.0.130.0070.05722.10
7.0.120.0130.05722.09
7.0.110.0030.06322.11
7.0.100.0000.06722.09
7.0.90.0100.06022.12
7.0.80.0100.05322.07
7.0.70.0100.05722.06
7.0.60.0130.05022.01
7.0.50.0070.06022.21
7.0.40.0170.05322.12
7.0.30.0100.06022.07
7.0.20.0070.06322.11
7.0.10.0200.04322.11
7.0.00.0070.06022.07
5.6.280.0100.05020.91
5.6.270.0030.05720.97
5.6.260.0100.05321.07
5.6.250.0100.05720.88
5.6.240.0130.05720.88
5.6.230.0130.06020.98
5.6.220.0100.06021.01
5.6.210.0170.05020.95
5.6.200.0100.05721.00
5.6.190.0070.06021.06
5.6.180.0070.08020.93
5.6.170.0030.07320.88
5.6.160.0100.06020.75
5.6.150.0100.06020.76
5.6.140.0070.05321.03
5.6.130.0100.05321.03
5.6.120.0030.06021.00
5.6.110.0070.05720.92
5.6.100.0100.05721.02
5.6.90.0030.05720.84
5.6.80.0130.06320.32
5.6.70.0030.05320.43
5.6.60.0070.05320.21
5.6.50.0030.05320.47
5.6.40.0130.04320.16
5.6.30.0070.05020.21
5.6.20.0070.05020.17
5.6.10.0070.05020.29
5.6.00.0130.04320.41

preferences:
60.08 ms | 401 KiB | 5 Q