3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = str_repeat("Iñtërnâtiônàlizætiøn", 100); echo strlen($string) . "\n"; $result = preg_match( '/\A(?: [\x00-\x7F]+ # ASCII | [\xC2-\xDF][\x80-\xBF] # non-overlong 2-byte | \xE0[\xA0-\xBF][\x80-\xBF] # excluding overlongs | [\xE1-\xEC\xEE\xEF][\x80-\xBF]{2} # straight 3-byte | \xED[\x80-\x9F][\x80-\xBF] # excluding surrogates | \xF0[\x90-\xBF][\x80-\xBF]{2} # planes 1-3 | [\xF1-\xF3][\x80-\xBF]{3} # planes 4-15 | \xF4[\x80-\x8F][\x80-\xBF]{2} # plane 16 )*\z/x', $string ); echo "result: "; var_dump($result); echo "pcre.jit: "; var_dump(ini_get('pcre.jit')); echo "pcre.backtrack_limit: "; var_dump(ini_get('pcre.backtrack_limit')); echo "pcre.recursion_limit: "; var_dump(ini_get('pcre.recursion_limit')); if(defined('PREG_JIT_STACKLIMIT_ERROR')){ assert(preg_last_error() === PREG_JIT_STACKLIMIT_ERROR); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 47
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 47
filename:       /in/dq5v8
function name:  (null)
number of ops:  48
compiled vars:  !0 = $string, !1 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'str_repeat'
          1        SEND_VAL                                                 'I%C3%B1t%C3%ABrn%C3%A2ti%C3%B4n%C3%A0liz%C3%A6ti%C3%B8n'
          2        SEND_VAL                                                 100
          3        DO_ICALL                                         $2      
          4        ASSIGN                                                   !0, $2
    4     5        STRLEN                                           ~4      !0
          6        CONCAT                                           ~5      ~4, '%0A'
          7        ECHO                                                     ~5
    6     8        INIT_FCALL                                               'preg_match'
    7     9        SEND_VAL                                                 '%2F%5CA%28%3F%3A%0A++++++++%5B%5Cx00-%5Cx7F%5D%2B+++++++++++++++++++++++%23+ASCII%0A++++++%7C+%5B%5CxC2-%5CxDF%5D%5B%5Cx80-%5CxBF%5D+++++++++++++%23+non-overlong+2-byte%0A++++++%7C++%5CxE0%5B%5CxA0-%5CxBF%5D%5B%5Cx80-%5CxBF%5D++++++++%23+excluding+overlongs%0A++++++%7C+%5B%5CxE1-%5CxEC%5CxEE%5CxEF%5D%5B%5Cx80-%5CxBF%5D%7B2%7D++%23+straight+3-byte%0A++++++%7C++%5CxED%5B%5Cx80-%5Cx9F%5D%5B%5Cx80-%5CxBF%5D++++++++%23+excluding+surrogates%0A++++++%7C++%5CxF0%5B%5Cx90-%5CxBF%5D%5B%5Cx80-%5CxBF%5D%7B2%7D+++++%23+planes+1-3%0A++++++%7C+%5B%5CxF1-%5CxF3%5D%5B%5Cx80-%5CxBF%5D%7B3%7D++++++++++%23+planes+4-15%0A++++++%7C++%5CxF4%5B%5Cx80-%5Cx8F%5D%5B%5Cx80-%5CxBF%5D%7B2%7D+++++%23+plane+16%0A++++%29%2A%5Cz%2Fx'
   17    10        SEND_VAR                                                 !0
    6    11        DO_ICALL                                         $6      
         12        ASSIGN                                                   !1, $6
   20    13        ECHO                                                     'result%3A+'
   21    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
   23    17        ECHO                                                     'pcre.jit%3A+'
   24    18        INIT_FCALL                                               'var_dump'
         19        INIT_FCALL                                               'ini_get'
         20        SEND_VAL                                                 'pcre.jit'
         21        DO_ICALL                                         $9      
         22        SEND_VAR                                                 $9
         23        DO_ICALL                                                 
   25    24        ECHO                                                     'pcre.backtrack_limit%3A+'
   26    25        INIT_FCALL                                               'var_dump'
         26        INIT_FCALL                                               'ini_get'
         27        SEND_VAL                                                 'pcre.backtrack_limit'
         28        DO_ICALL                                         $11     
         29        SEND_VAR                                                 $11
         30        DO_ICALL                                                 
   27    31        ECHO                                                     'pcre.recursion_limit%3A+'
   28    32        INIT_FCALL                                               'var_dump'
         33        INIT_FCALL                                               'ini_get'
         34        SEND_VAL                                                 'pcre.recursion_limit'
         35        DO_ICALL                                         $13     
         36        SEND_VAR                                                 $13
         37        DO_ICALL                                                 
   30    38      > JMPZ                                                     <true>, ->47
   31    39    >   ASSERT_CHECK                                             
         40        INIT_FCALL                                               'assert'
         41        INIT_FCALL                                               'preg_last_error'
         42        DO_ICALL                                         $15     
         43        IS_IDENTICAL                                     ~16     $15, 6
         44        SEND_VAL                                                 ~16
         45        SEND_VAL                                                 'assert%28preg_last_error%28%29+%3D%3D%3D+PREG_JIT_STACKLIMIT_ERROR%29'
         46        DO_ICALL                                                 
   32    47    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.97 ms | 1470 KiB | 19 Q