3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'بيتر هو صبي.'; // arabic //$text = 'פיטר הוא ילד.'; // hebrew mb_regex_encoding('UTF-8'); if(mb_ereg('[\x{0600}-\x{06FF}]', $text)) // arabic range //if(mb_ereg('[\x{0590}-\x{05FF}]', $text)) // hebrew range { echo "Text has some arabic/hebrew characters."; } else { echo "Text doesnt have arabic/hebrew characters."; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/MS2Ue
function name:  (null)
number of ops:  13
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%D8%A8%D9%8A%D8%AA%D8%B1+%D9%87%D9%88+%D8%B5%D8%A8%D9%8A.'
    6     1        INIT_FCALL                                               'mb_regex_encoding'
          2        SEND_VAL                                                 'UTF-8'
          3        DO_ICALL                                                 
    8     4        INIT_FCALL                                               'mb_ereg'
          5        SEND_VAL                                                 '%5B%5Cx%7B0600%7D-%5Cx%7B06FF%7D%5D'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $3      
          8      > JMPZ                                                     $3, ->11
   11     9    >   ECHO                                                     'Text+has+some+arabic%2Fhebrew+characters.'
         10      > JMP                                                      ->12
   15    11    >   ECHO                                                     'Text+doesnt+have+arabic%2Fhebrew+characters.'
   16    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.16 ms | 1399 KiB | 17 Q