3v4l.org

run code in 300+ PHP versions simultaneously
<?php $is_arabic = preg_match('/\p{Arabic}/u', " sadfdasf أنطونيو أسيفيدو"); echo "is_arabic: ".var_export($is_arabic, true); echo PHP_EOL; $is_not_arabic = preg_match('/\p{Arabic}/u', "sadfdasf"); echo "is_not_arabic: ".var_export($is_not_arabic, true); echo PHP_EOL; $is_numeric_arabic = preg_match('/^\p{N}+$/u', "١٢٣٤٥" /*Arabic numerals for "12345"*/); echo "is_numeric_arabic: ".var_export($is_numeric_arabic, true); echo PHP_EOL; $is_not_numeric_arabic = preg_match('/^\p{N}+$/u', "أنطونيو أسيفيدو"); echo "is_not_numeric_arabic: ".var_export($is_not_numeric_arabic, true);

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.140.0120.00917.77
8.4.130.0140.00717.93
8.4.120.0040.00424.10
8.4.110.0040.00719.78
8.4.100.0060.00318.02
8.4.90.0060.00418.70
8.4.80.0060.00417.92
8.4.70.0060.00218.20
8.4.60.0120.00818.61
8.4.50.0120.00819.50
8.4.40.0070.01417.80
8.4.30.0080.00020.71
8.4.20.0030.00619.81
8.4.10.0030.00519.43
8.3.270.0110.00916.70
8.3.260.0110.00916.67
8.3.250.0100.00818.83
8.3.240.0040.00416.95
8.3.230.0040.00416.71
8.3.220.0080.00217.13
8.3.210.0070.01116.73
8.3.200.0040.00516.69
8.3.190.0090.00816.90
8.3.180.0100.00818.71
8.3.170.0090.00917.30
8.3.160.0100.00718.54
8.3.150.0080.01116.91
8.3.140.0040.00416.88
8.3.130.0060.00318.47
8.3.120.0040.00420.61
8.3.110.0140.01416.58
8.3.100.0220.00417.02
8.3.90.0370.00316.72
8.3.80.0350.00616.50
8.3.70.0430.01116.63
8.3.60.0240.01216.75
8.3.50.0200.01016.86
8.3.40.0170.01217.88
8.3.30.0150.01217.59
8.3.20.0190.01017.63
8.3.10.0310.01017.50
8.3.00.0030.02317.00
8.2.290.0080.00420.27
8.2.280.0130.00620.51
8.2.270.0000.01416.95
8.2.260.0040.00416.96
8.2.250.0080.00018.73
8.2.240.0190.00017.29
8.2.230.0140.00716.48
8.2.220.0150.00616.87
8.2.210.0170.01016.93
8.2.200.0100.01016.34
8.2.190.0100.01616.75
8.2.180.0120.00616.76
8.2.170.0140.00917.75
8.2.160.0180.00917.75
8.2.150.0220.00617.88
8.2.140.0120.00817.75
8.2.130.0290.00017.75
8.2.120.0340.00417.63
8.2.110.0140.00817.59
8.2.100.0320.00417.38
8.2.90.0350.00017.75
8.2.80.0190.01117.50
8.2.70.0090.01317.54
8.2.60.0180.00617.63
8.2.50.0160.01317.38
8.2.40.0040.01917.63
8.2.30.0130.00817.73
8.2.20.0120.00017.72
8.2.10.0060.00617.75
8.2.00.0080.00417.50
8.1.330.0120.00722.04
8.1.320.0060.00216.49
8.1.310.0140.00416.51
8.1.300.0040.00418.10
8.1.290.0110.00016.22
8.1.280.0040.00816.25
8.1.270.0090.00319.26
8.1.260.0080.00417.48
8.1.250.0080.00417.50
8.1.240.0070.00517.35
8.1.230.0090.00317.50
8.1.220.0120.00017.48
8.1.210.0110.00017.38
8.1.200.0060.00617.47
8.1.190.0120.00017.35
8.1.180.0040.00817.35
8.1.170.0090.00417.35
8.1.160.0070.00517.47
8.1.150.0090.00317.47
8.1.140.0090.00317.47
8.1.130.0040.01117.38
8.1.120.0000.01017.34
8.1.110.0100.00017.35
8.1.100.0080.00317.22
8.1.90.0050.00517.35
8.1.80.0110.00017.09
8.1.70.0050.00517.34
8.1.60.0100.00017.34
8.1.50.0060.00417.38
8.1.40.0100.00017.47
8.1.30.0070.00217.60
8.1.20.0070.00417.47
8.1.10.0060.00317.47
8.1.00.0080.00317.35

preferences:
65.77 ms | 403 KiB | 5 Q