3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = '<p>www.test.com</p>'; echo 'pcre.backtrack_limit: ' . ini_get('pcre.backtrack_limit') . PHP_EOL; $chunks = preg_split('/(<.+?>)/is', $text, -1, PREG_SPLIT_DELIM_CAPTURE); echo 'error: ' . preg_last_error() . PHP_EOL; is_array($chunks) ? print_r($chunks) : var_dump($chunks); ini_set('pcre.backtrack_limit', 1); echo 'pcre.backtrack_limit: ' . ini_get('pcre.backtrack_limit') . PHP_EOL; $chunks = preg_split('/(<.+?>)/is', $text, -1, PREG_SPLIT_DELIM_CAPTURE); echo 'error: ' . preg_last_error() . PHP_EOL; is_array($chunks) ? print_r($chunks) : var_dump($chunks);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 26
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 55, Position 2 = 60
Branch analysis from position: 55
1 jumps found. (Code = 42) Position 1 = 64
Branch analysis from position: 64
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 60
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
2 jumps found. (Code = 43) Position 1 = 55, Position 2 = 60
Branch analysis from position: 55
Branch analysis from position: 60
filename:       /in/peFdO
function name:  (null)
number of ops:  66
compiled vars:  !0 = $text, !1 = $chunks
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cp%3Ewww.test.com%3C%2Fp%3E'
    5     1        INIT_FCALL                                               'ini_get'
          2        SEND_VAL                                                 'pcre.backtrack_limit'
          3        DO_ICALL                                         $3      
          4        CONCAT                                           ~4      'pcre.backtrack_limit%3A+', $3
          5        CONCAT                                           ~5      ~4, '%0A'
          6        ECHO                                                     ~5
    6     7        INIT_FCALL                                               'preg_split'
          8        SEND_VAL                                                 '%2F%28%3C.%2B%3F%3E%29%2Fis'
          9        SEND_VAR                                                 !0
         10        SEND_VAL                                                 -1
         11        SEND_VAL                                                 2
         12        DO_ICALL                                         $6      
         13        ASSIGN                                                   !1, $6
    7    14        INIT_FCALL                                               'preg_last_error'
         15        DO_ICALL                                         $8      
         16        CONCAT                                           ~9      'error%3A+', $8
         17        CONCAT                                           ~10     ~9, '%0A'
         18        ECHO                                                     ~10
    8    19        TYPE_CHECK                                  128          !1
         20      > JMPZ                                                     ~11, ->26
         21    >   INIT_FCALL                                               'print_r'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                         $12     
         24        QM_ASSIGN                                        ~13     $12
         25      > JMP                                                      ->30
         26    >   INIT_FCALL                                               'var_dump'
         27        SEND_VAR                                                 !1
         28        DO_ICALL                                         $14     
         29        QM_ASSIGN                                        ~13     $14
         30    >   FREE                                                     ~13
   10    31        INIT_FCALL                                               'ini_set'
         32        SEND_VAL                                                 'pcre.backtrack_limit'
         33        SEND_VAL                                                 1
         34        DO_ICALL                                                 
   11    35        INIT_FCALL                                               'ini_get'
         36        SEND_VAL                                                 'pcre.backtrack_limit'
         37        DO_ICALL                                         $16     
         38        CONCAT                                           ~17     'pcre.backtrack_limit%3A+', $16
         39        CONCAT                                           ~18     ~17, '%0A'
         40        ECHO                                                     ~18
   12    41        INIT_FCALL                                               'preg_split'
         42        SEND_VAL                                                 '%2F%28%3C.%2B%3F%3E%29%2Fis'
         43        SEND_VAR                                                 !0
         44        SEND_VAL                                                 -1
         45        SEND_VAL                                                 2
         46        DO_ICALL                                         $19     
         47        ASSIGN                                                   !1, $19
   13    48        INIT_FCALL                                               'preg_last_error'
         49        DO_ICALL                                         $21     
         50        CONCAT                                           ~22     'error%3A+', $21
         51        CONCAT                                           ~23     ~22, '%0A'
         52        ECHO                                                     ~23
   14    53        TYPE_CHECK                                  128          !1
         54      > JMPZ                                                     ~24, ->60
         55    >   INIT_FCALL                                               'print_r'
         56        SEND_VAR                                                 !1
         57        DO_ICALL                                         $25     
         58        QM_ASSIGN                                        ~26     $25
         59      > JMP                                                      ->64
         60    >   INIT_FCALL                                               'var_dump'
         61        SEND_VAR                                                 !1
         62        DO_ICALL                                         $27     
         63        QM_ASSIGN                                        ~26     $27
         64    >   FREE                                                     ~26
         65      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.72 ms | 1463 KiB | 19 Q