3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = 'بيتر هو صبي.'; // arabic 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 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/icr1b
function name:  (null)
number of ops:  10
compiled vars:  !0 = $text
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%D8%A8%D9%8A%D8%AA%D8%B1+%D9%87%D9%88+%D8%B5%D8%A8%D9%8A.'
    3     1        INIT_FCALL                                               'mb_ereg'
          2        SEND_VAL                                                 '%5B%5Cx%7B0600%7D-%5Cx%7B06FF%7D%5D'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5      > JMPZ                                                     $2, ->8
    6     6    >   ECHO                                                     'Text+has+some+arabic%2Fhebrew+characters.'
          7      > JMP                                                      ->9
   10     8    >   ECHO                                                     'Text+doesnt+have+arabic%2Fhebrew+characters.'
   11     9    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.72 ms | 1394 KiB | 15 Q