3v4l.org

run code in 300+ PHP versions simultaneously
<?php $pattern = []; for ($i = 0; $i < 300; $i++) { $pattern[] = "(?'group{$i}'{$i}$)"; } $fullPattern = '/' . implode('|', $pattern) . '/uix'; preg_match($fullPattern, '290', $matches); var_dump(isset($matches['group253'])); var_dump(isset($matches['group254'])); var_dump(isset($matches['group255'])); var_dump($matches['group290']); var_dump($matches['group291']);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 3
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 13, Position 2 = 3
Branch analysis from position: 13
Branch analysis from position: 3
filename:       /in/sJWmA
function name:  (null)
number of ops:  46
compiled vars:  !0 = $pattern, !1 = $i, !2 = $fullPattern, !3 = $matches
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->11
    4     3    >   ROPE_INIT                                     5  ~8      '%28%3F%27group'
          4        ROPE_ADD                                      1  ~8      ~8, !1
          5        ROPE_ADD                                      2  ~8      ~8, '%27'
          6        ROPE_ADD                                      3  ~8      ~8, !1
          7        ROPE_END                                      4  ~7      ~8, '%24%29'
          8        ASSIGN_DIM                                               !0
          9        OP_DATA                                                  ~7
    3    10        PRE_INC                                                  !1
         11    >   IS_SMALLER                                               !1, 300
         12      > JMPNZ                                                    ~12, ->3
    7    13    >   INIT_FCALL                                               'implode'
         14        SEND_VAL                                                 '%7C'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $13     
         17        CONCAT                                           ~14     '%2F', $13
         18        CONCAT                                           ~15     ~14, '%2Fuix'
         19        ASSIGN                                                   !2, ~15
    9    20        INIT_FCALL                                               'preg_match'
         21        SEND_VAR                                                 !2
         22        SEND_VAL                                                 '290'
         23        SEND_REF                                                 !3
         24        DO_ICALL                                                 
   10    25        INIT_FCALL                                               'var_dump'
         26        ISSET_ISEMPTY_DIM_OBJ                         0  ~18     !3, 'group253'
         27        SEND_VAL                                                 ~18
         28        DO_ICALL                                                 
   11    29        INIT_FCALL                                               'var_dump'
         30        ISSET_ISEMPTY_DIM_OBJ                         0  ~20     !3, 'group254'
         31        SEND_VAL                                                 ~20
         32        DO_ICALL                                                 
   12    33        INIT_FCALL                                               'var_dump'
         34        ISSET_ISEMPTY_DIM_OBJ                         0  ~22     !3, 'group255'
         35        SEND_VAL                                                 ~22
         36        DO_ICALL                                                 
   14    37        INIT_FCALL                                               'var_dump'
         38        FETCH_DIM_R                                      ~24     !3, 'group290'
         39        SEND_VAL                                                 ~24
         40        DO_ICALL                                                 
   15    41        INIT_FCALL                                               'var_dump'
         42        FETCH_DIM_R                                      ~26     !3, 'group291'
         43        SEND_VAL                                                 ~26
         44        DO_ICALL                                                 
         45      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.24 ms | 1404 KiB | 19 Q