3v4l.org

run code in 300+ PHP versions simultaneously
<?php mb_regex_encoding("UTF-8"); mb_ereg_search_init('(ab(cd)ef)'); $r = mb_ereg_search('\(.+\)'); $r = mb_ereg_search_getregs(); if(!$r) { echo "null\n"; }else{ $r = mb_ereg_search_getregs(); //get first result do{ var_dump($r[0]); $r = mb_ereg_search_regs();//get next result }while($r); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 28, Position 2 = 20
Branch analysis from position: 28
Branch analysis from position: 20
filename:       /in/FAss0
function name:  (null)
number of ops:  29
compiled vars:  !0 = $r
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'mb_regex_encoding'
          1        SEND_VAL                                                 'UTF-8'
          2        DO_ICALL                                                 
    3     3        INIT_FCALL                                               'mb_ereg_search_init'
          4        SEND_VAL                                                 '%28ab%28cd%29ef%29'
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'mb_ereg_search'
          7        SEND_VAL                                                 '%5C%28.%2B%5C%29'
          8        DO_ICALL                                         $3      
          9        ASSIGN                                                   !0, $3
    5    10        INIT_FCALL                                               'mb_ereg_search_getregs'
         11        DO_ICALL                                         $5      
         12        ASSIGN                                                   !0, $5
    6    13        BOOL_NOT                                         ~7      !0
         14      > JMPZ                                                     ~7, ->17
    7    15    >   ECHO                                                     'null%0A'
         16      > JMP                                                      ->28
    9    17    >   INIT_FCALL                                               'mb_ereg_search_getregs'
         18        DO_ICALL                                         $8      
         19        ASSIGN                                                   !0, $8
   11    20    >   INIT_FCALL                                               'var_dump'
         21        FETCH_DIM_R                                      ~10     !0, 0
         22        SEND_VAL                                                 ~10
         23        DO_ICALL                                                 
   12    24        INIT_FCALL                                               'mb_ereg_search_regs'
         25        DO_ICALL                                         $12     
         26        ASSIGN                                                   !0, $12
   13    27      > JMPNZ                                                    !0, ->20
   14    28    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.46 ms | 1396 KiB | 25 Q