3v4l.org

run code in 500+ PHP versions simultaneously
<?php $classes = str_repeat('dum-class ', 100000); $text = '<div><p class="' . $classes . '">Not a url.</p></div>'; $pcre_backtrack_limit = ini_get('pcre.backtrack_limit'); ini_set('pcre.backtrack_limit', 1); $chunks = preg_split('/(<[^>]+?>)/is', $text, -1, PREG_SPLIT_DELIM_CAPTURE); $preg_last_error = preg_last_error(); var_dump($preg_last_error); var_dump($preg_last_error === PREG_NO_ERROR); ini_set('pcre.backtrack_limit', $pcre_backtrack_limit);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EWJM3
function name:  (null)
number of ops:  38
compiled vars:  !0 = $classes, !1 = $text, !2 = $pcre_backtrack_limit, !3 = $chunks, !4 = $preg_last_error
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'str_repeat'
          1        SEND_VAL                                                     'dum-class+'
          2        SEND_VAL                                                     100000
          3        DO_ICALL                                             $5      
          4        ASSIGN                                                       !0, $5
    4     5        CONCAT                                               ~7      '%3Cdiv%3E%3Cp+class%3D%22', !0
          6        CONCAT                                               ~8      ~7, '%22%3ENot+a+url.%3C%2Fp%3E%3C%2Fdiv%3E'
          7        ASSIGN                                                       !1, ~8
    6     8        INIT_FCALL                                                   'ini_get'
          9        SEND_VAL                                                     'pcre.backtrack_limit'
         10        DO_ICALL                                             $10     
         11        ASSIGN                                                       !2, $10
    7    12        INIT_FCALL                                                   'ini_set'
         13        SEND_VAL                                                     'pcre.backtrack_limit'
         14        SEND_VAL                                                     1
         15        DO_ICALL                                                     
    9    16        INIT_FCALL                                                   'preg_split'
         17        SEND_VAL                                                     '%2F%28%3C%5B%5E%3E%5D%2B%3F%3E%29%2Fis'
         18        SEND_VAR                                                     !1
         19        SEND_VAL                                                     -1
         20        SEND_VAL                                                     2
         21        DO_ICALL                                             $13     
         22        ASSIGN                                                       !3, $13
   11    23        INIT_FCALL                                                   'preg_last_error'
         24        DO_ICALL                                             $15     
         25        ASSIGN                                                       !4, $15
   12    26        INIT_FCALL                                                   'var_dump'
         27        SEND_VAR                                                     !4
         28        DO_ICALL                                                     
   13    29        INIT_FCALL                                                   'var_dump'
         30        IS_IDENTICAL                                         ~18     !4, 0
         31        SEND_VAL                                                     ~18
         32        DO_ICALL                                                     
   15    33        INIT_FCALL                                                   'ini_set'
         34        SEND_VAL                                                     'pcre.backtrack_limit'
         35        SEND_VAR                                                     !2
         36        DO_ICALL                                                     
         37      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
216.28 ms | 1286 KiB | 14 Q