3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php mb_regex_encoding("UTF-8"); mb_ereg_search_init('(ab(cd)ef)'); 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 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 27
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 19
Branch analysis from position: 27
Branch analysis from position: 19
filename:       /in/8fG64
function name:  (null)
number of ops:  28
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                                                 
   5     9        INIT_FCALL                                               'mb_ereg_search_getregs'
        10        DO_ICALL                                         $4      
        11        ASSIGN                                                   !0, $4
   6    12        BOOL_NOT                                         ~6      !0
        13      > JMPZ                                                     ~6, ->16
   7    14    >   ECHO                                                     'null%0A'
        15      > JMP                                                      ->27
   9    16    >   INIT_FCALL                                               'mb_ereg_search_getregs'
        17        DO_ICALL                                         $7      
        18        ASSIGN                                                   !0, $7
  11    19    >   INIT_FCALL                                               'var_dump'
        20        FETCH_DIM_R                                      $9      !0, 0
        21        SEND_VAR                                                 $9
        22        DO_ICALL                                                 
  12    23        INIT_FCALL                                               'mb_ereg_search_regs'
        24        DO_ICALL                                         $11     
        25        ASSIGN                                                   !0, $11
  13    26      > JMPNZ                                                    !0, ->19
  14    27    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0