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.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.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.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:
24.4 ms | 403 KiB | 5 Q