3v4l.org

run code in 300+ PHP versions simultaneously
<?php $b = preg_replace('/b.*b/', '', 'baab' . str_repeat('a', 100024)); var_dump(ini_get('pcre.backtrack_limit'),ini_get('pcre.backtrack_limit'), strlen($b));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HmC1c
function name:  (null)
number of ops:  24
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_replace'
          1        SEND_VAL                                                 '%2Fb.%2Ab%2F'
          2        SEND_VAL                                                 ''
          3        INIT_FCALL                                               'str_repeat'
          4        SEND_VAL                                                 'a'
          5        SEND_VAL                                                 100024
          6        DO_ICALL                                         $1      
          7        CONCAT                                           ~2      'baab', $1
          8        SEND_VAL                                                 ~2
          9        DO_ICALL                                         $3      
         10        ASSIGN                                                   !0, $3
    3    11        INIT_FCALL                                               'var_dump'
         12        INIT_FCALL                                               'ini_get'
         13        SEND_VAL                                                 'pcre.backtrack_limit'
         14        DO_ICALL                                         $5      
         15        SEND_VAR                                                 $5
         16        INIT_FCALL                                               'ini_get'
         17        SEND_VAL                                                 'pcre.backtrack_limit'
         18        DO_ICALL                                         $6      
         19        SEND_VAR                                                 $6
         20        STRLEN                                           ~7      !0
         21        SEND_VAL                                                 ~7
         22        DO_ICALL                                                 
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.69 ms | 1386 KiB | 21 Q