3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(preg_match('~[\pL\p{Cyrillic}]~u', 'test')); var_dump(preg_match('~[\pL\p{Cyrillic}]~u', 'testЛ')); var_dump(preg_match('~[\pL]~u', 'testЛ')); var_dump(preg_match('~[\p{Cyrillic}]~u', 'testЛ')); var_dump(preg_match('~[\pL]~u', 'test')); var_dump(preg_match('~[\p{Cyrillic}]~u', 'Л')); var_dump(preg_match('~\pL~u', 'Л')); var_dump(preg_match('~\p{Cyrillic}~u', 'testЛ')); var_dump(preg_match('~\pL\p{Cyrillic}~u', 'testЛ'));

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.4.120.0110.00924.10
8.4.110.0070.00418.71
8.4.100.0130.00817.82
8.4.90.0090.00617.99
8.4.80.0100.00620.67
8.4.70.0110.00917.81
8.4.60.0070.00918.91
8.4.50.0130.00517.98
8.4.40.0120.00322.57
8.4.30.0160.00318.55
8.4.20.0120.00919.01
8.4.10.0130.00617.69
8.3.250.0120.00718.90
8.3.240.0100.01016.98
8.3.230.0110.00916.67
8.3.220.0060.00316.67
8.3.210.0090.00316.64
8.3.200.0070.00216.98
8.3.190.0100.00917.23
8.3.180.0120.00716.87
8.3.170.0130.00618.93
8.3.160.0150.00316.75
8.3.150.0060.01320.57
8.3.140.0070.01116.75
8.3.130.0060.00318.72
8.3.120.0030.00618.88
8.3.110.0000.00820.94
8.3.100.0080.00024.06
8.3.90.0200.00026.77
8.3.80.0030.00617.00
8.3.70.0110.00716.48
8.3.60.0160.00618.55
8.3.50.0150.00517.57
8.3.40.0030.01218.96
8.3.30.0100.01018.79
8.3.20.0060.00322.46
8.3.10.0000.00820.31
8.3.00.0040.00423.66
8.2.290.0110.00720.55
8.2.280.0070.00818.59
8.2.270.0030.00617.35
8.2.260.0060.00918.98
8.2.250.0000.00816.82
8.2.240.0090.00017.18
8.2.230.0000.00822.58
8.2.220.0060.00337.54
8.2.210.0110.00726.77
8.2.200.0040.00416.63
8.2.190.0150.00716.75
8.2.180.0080.00818.54
8.2.170.0140.00722.96
8.2.160.0100.00320.47
8.2.150.0060.00324.18
8.2.140.0030.00524.66
8.2.130.0000.00726.16
8.2.120.0040.00420.95
8.2.110.0080.00322.33
8.2.100.0080.00318.03
8.2.90.0030.00617.63
8.2.80.0080.00018.92
8.2.70.0040.00417.91
8.2.60.0050.00317.68
8.2.50.0050.00317.80
8.2.40.0040.00419.78
8.2.30.0080.00017.73
8.2.20.0040.00418.02
8.2.10.0080.00019.24
8.2.00.0040.00419.16
8.1.330.0160.00321.84
8.1.320.0080.01216.43
8.1.310.0000.00916.50
8.1.300.0000.00917.92
8.1.290.0060.00318.88
8.1.280.0070.00725.92
8.1.270.0000.00820.64
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0090.00022.35
8.1.230.0080.00419.04
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00917.35
8.1.190.0080.00017.35
8.1.180.0060.00318.10
8.1.170.0060.00317.62
8.1.160.0060.00319.11
8.1.150.0050.00218.98
8.1.140.0040.00420.80
8.1.130.0000.00720.12
8.1.120.0000.00917.47
8.1.110.0030.00617.42
8.1.100.0040.00717.53
8.1.90.0050.00217.51
8.1.80.0000.00817.55
8.1.70.0070.00017.55
8.1.60.0090.00017.56
8.1.50.0030.00517.52
8.1.40.0000.00817.54
8.1.30.0060.00317.59
8.1.20.0000.00817.73
8.1.10.0040.00417.49
8.1.00.0040.00417.50
8.0.300.0000.00719.91
8.0.290.0040.00416.75
8.0.280.0040.00418.61
8.0.270.0000.00718.11
8.0.260.0000.00820.06
8.0.250.0030.00317.02
8.0.240.0040.00417.03
8.0.230.0000.00716.91
8.0.220.0000.00717.07
8.0.210.0000.00717.04
8.0.200.0030.00517.14
8.0.190.0030.00617.00
8.0.180.0060.00317.09
8.0.170.0000.00916.93
8.0.160.0040.00416.97
8.0.150.0040.00416.80
8.0.140.0040.00416.84
8.0.130.0030.00313.40
8.0.120.0000.00716.93
8.0.110.0040.00416.95
8.0.100.0040.00416.95
8.0.90.0040.00417.09
8.0.80.0070.00716.94
8.0.70.0040.00417.16
8.0.60.0000.00717.09
8.0.50.0030.00517.05
8.0.30.0030.01717.36
8.0.20.0070.01217.19
8.0.10.0080.00017.06
8.0.00.0110.01316.90
7.4.330.0000.00515.55
7.4.320.0030.00316.66
7.4.300.0060.00016.67
7.4.290.0030.00916.80
7.4.280.0030.00516.60
7.4.270.0000.00716.76
7.4.260.0000.00613.33
7.4.250.0040.00416.68
7.4.240.0030.00316.75
7.4.230.0040.00416.56
7.4.220.0020.00616.66
7.4.210.0030.01316.69
7.4.200.0030.00316.83
7.4.130.0150.00716.56
7.4.120.0100.00716.74
7.4.110.0070.01416.61
7.4.100.0140.00416.59
7.4.90.0040.01616.78
7.4.80.0130.00319.39
7.4.70.0070.01016.70
7.4.60.0140.00716.66
7.4.50.0100.00616.65
7.4.40.0060.01016.59
7.4.00.0070.00715.26
7.3.330.0080.00016.32
7.3.320.0000.00513.19
7.3.310.0000.00716.45
7.3.300.0030.00316.33
7.3.290.0000.00716.22
7.3.280.0160.00016.36
7.3.260.0080.01216.50
7.3.240.0100.01116.60
7.3.230.0030.01416.59
7.3.210.0140.00316.57
7.3.200.0140.00716.46
7.3.190.0030.01216.47
7.3.180.0040.01216.43
7.3.170.0150.00716.36
7.3.160.0060.01216.57
7.3.80.0080.00514.81
7.3.70.0050.01114.90
7.3.60.0080.00314.94
7.3.50.0130.00314.77
7.3.40.0060.01015.07
7.3.30.0040.01114.75
7.3.20.0090.01216.66
7.3.10.0030.01316.81
7.3.00.0150.00016.46
7.2.330.0090.00916.70
7.2.320.0070.01416.57
7.2.310.0070.01016.52
7.2.300.0100.01016.49
7.2.290.0110.00816.40
7.2.210.0060.00914.93
7.2.200.0070.00414.95
7.2.190.0030.00914.89
7.2.180.0030.01015.02
7.2.170.0110.00814.84
7.2.160.0040.00814.71
7.2.150.0070.01016.69
7.2.140.0030.01016.87
7.2.130.0110.00716.93
7.2.120.0060.00916.71
7.2.110.0060.01016.63
7.2.100.0080.00316.98
7.2.90.0090.00616.89
7.2.80.0110.01116.74
7.2.70.0110.00516.63
7.2.60.0060.00916.80
7.2.50.0060.00616.68
7.2.40.0100.00716.79
7.2.30.0030.00917.02
7.2.20.0090.00616.64
7.2.10.0030.01216.78
7.2.00.0130.00016.87
7.1.310.0100.00715.84
7.1.300.0030.01315.75
7.1.290.0130.00315.95
7.1.280.0070.00415.79
7.1.270.0140.00015.43
7.1.260.0000.01615.74
7.1.250.0080.00315.38

preferences:
21.63 ms | 403 KiB | 5 Q