3v4l.org

run code in 300+ PHP versions simultaneously
<?php // example code ini_set('pcre.backtrack_limit', 1); $text = "<p>www.test.com</p>"; $chunks = is_null($text) ? array('') : preg_split('/(<.+?>)/is', $text, -1, PREG_SPLIT_DELIM_CAPTURE); var_dump($chunks);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mhmnn
function name:  (null)
number of ops:  21
compiled vars:  !0 = $text, !1 = $chunks
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'pcre.backtrack_limit'
          2        SEND_VAL                                                 1
          3        DO_ICALL                                                 
    5     4        ASSIGN                                                   !0, '%3Cp%3Ewww.test.com%3C%2Fp%3E'
    6     5        TYPE_CHECK                                    2          !0
          6      > JMPZ                                                     ~4, ->9
          7    >   QM_ASSIGN                                        ~5      <array>
          8      > JMP                                                      ->16
          9    >   INIT_FCALL                                               'preg_split'
         10        SEND_VAL                                                 '%2F%28%3C.%2B%3F%3E%29%2Fis'
         11        SEND_VAR                                                 !0
         12        SEND_VAL                                                 -1
         13        SEND_VAL                                                 2
         14        DO_ICALL                                         $6      
         15        QM_ASSIGN                                        ~5      $6
         16    >   ASSIGN                                                   !1, ~5
    7    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.8 ms | 1447 KiB | 16 Q