3v4l.org

run code in 300+ PHP versions simultaneously
<?php $res = preg_match('/^(A{1,2}B)+$/',str_repeat('AB',8192)); if ($res === false) { var_dump(preg_last_error() == PREG_JIT_STACKLIMIT_ERROR); } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 17
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/IWGam
function name:  (null)
number of ops:  18
compiled vars:  !0 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_match'
          1        SEND_VAL                                                 '%2F%5E%28A%7B1%2C2%7DB%29%2B%24%2F'
          2        INIT_FCALL                                               'str_repeat'
          3        SEND_VAL                                                 'AB'
          4        SEND_VAL                                                 8192
          5        DO_ICALL                                         $1      
          6        SEND_VAR                                                 $1
          7        DO_ICALL                                         $2      
          8        ASSIGN                                                   !0, $2
    3     9        TYPE_CHECK                                    4          !0
         10      > JMPZ                                                     ~4, ->17
    4    11    >   INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'preg_last_error'
         13        DO_ICALL                                         $5      
         14        IS_EQUAL                                         ~6      $5, 6
         15        SEND_VAL                                                 ~6
         16        DO_ICALL                                                 
    6    17    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.12 ms | 940 KiB | 22 Q