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);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rrbML
function name:  (null)
number of ops:  48
compiled vars:  !0 = $is_arabic, !1 = $is_not_arabic, !2 = $is_numeric_arabic, !3 = $is_not_numeric_arabic
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%2F%5Cp%7BArabic%7D%2Fu'
          2        SEND_VAL                                                 '+sadfdasf+%D8%A3%D9%86%D8%B7%D9%88%D9%86%D9%8A%D9%88+%D8%A3%D8%B3%D9%8A%D9%81%D9%8A%D8%AF%D9%88'
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !0, $4
    3     5        INIT_FCALL                                               'var_export'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 <true>
          8        DO_ICALL                                         $6      
          9        CONCAT                                           ~7      'is_arabic%3A+', $6
         10        ECHO                                                     ~7
    4    11        ECHO                                                     '%0A'
    5    12        INIT_FCALL                                               'preg_match'
         13        SEND_VAL                                                 '%2F%5Cp%7BArabic%7D%2Fu'
         14        SEND_VAL                                                 'sadfdasf'
         15        DO_ICALL                                         $8      
         16        ASSIGN                                                   !1, $8
    6    17        INIT_FCALL                                               'var_export'
         18        SEND_VAR                                                 !1
         19        SEND_VAL                                                 <true>
         20        DO_ICALL                                         $10     
         21        CONCAT                                           ~11     'is_not_arabic%3A+', $10
         22        ECHO                                                     ~11
    7    23        ECHO                                                     '%0A'
    8    24        INIT_FCALL                                               'preg_match'
         25        SEND_VAL                                                 '%2F%5E%5Cp%7BN%7D%2B%24%2Fu'
         26        SEND_VAL                                                 '%D9%A1%D9%A2%D9%A3%D9%A4%D9%A5'
         27        DO_ICALL                                         $12     
         28        ASSIGN                                                   !2, $12
    9    29        INIT_FCALL                                               'var_export'
         30        SEND_VAR                                                 !2
         31        SEND_VAL                                                 <true>
         32        DO_ICALL                                         $14     
         33        CONCAT                                           ~15     'is_numeric_arabic%3A+', $14
         34        ECHO                                                     ~15
   10    35        ECHO                                                     '%0A'
   11    36        INIT_FCALL                                               'preg_match'
         37        SEND_VAL                                                 '%2F%5E%5Cp%7BN%7D%2B%24%2Fu'
         38        SEND_VAL                                                 '%D8%A3%D9%86%D8%B7%D9%88%D9%86%D9%8A%D9%88+%D8%A3%D8%B3%D9%8A%D9%81%D9%8A%D8%AF%D9%88'
         39        DO_ICALL                                         $16     
         40        ASSIGN                                                   !3, $16
   12    41        INIT_FCALL                                               'var_export'
         42        SEND_VAR                                                 !3
         43        SEND_VAL                                                 <true>
         44        DO_ICALL                                         $18     
         45        CONCAT                                           ~19     'is_not_numeric_arabic%3A+', $18
         46        ECHO                                                     ~19
         47      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.16 ms | 1465 KiB | 15 Q