3v4l.org

run code in 300+ PHP versions simultaneously
<?php $celda_anio_ini = 'v.2009;2009'; $celda_anio_fin = 'v.2017;2017'; if(preg_match('/.*(Jan|Feb)?\s([\d]{4})\-/' , $celda_anio_ini, $result)) { $anio_ini = $result[2]; }elseif(preg_match('/.*[A-Za-z]{3}\s([\d]{4})\-/' , $celda_anio_ini, $result)) { $anio_ini = '('.$result[1].')'; } if(preg_match('/.*\-(Nov|Dec)?\s([\d]{4})/' , $celda_anio_fin, $result)) { $anio_fin = $result[2]; }elseif(preg_match('/.*\-[A-Za-z]{3}\s([\d]{4})/' , $celda_anio_fin, $result)) { $anio_fin = '('.$result[1].')'; } echo "$celda_anio_ini, $celda_anio_fin\n..."; echo "$anio_ini - $anio_fin\n\n";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 30
Branch analysis from position: 27
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 40
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 40
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 21
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 27, Position 2 = 30
Branch analysis from position: 27
Branch analysis from position: 30
Branch analysis from position: 21
filename:       /in/CBTOq
function name:  (null)
number of ops:  51
compiled vars:  !0 = $celda_anio_ini, !1 = $celda_anio_fin, !2 = $result, !3 = $anio_ini, !4 = $anio_fin
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'v.2009%3B2009'
    3     1        ASSIGN                                                   !1, 'v.2017%3B2017'
    6     2        INIT_FCALL                                               'preg_match'
          3        SEND_VAL                                                 '%2F.%2A%28Jan%7CFeb%29%3F%5Cs%28%5B%5Cd%5D%7B4%7D%29%5C-%2F'
          4        SEND_VAR                                                 !0
          5        SEND_REF                                                 !2
          6        DO_ICALL                                         $7      
          7      > JMPZ                                                     $7, ->11
    7     8    >   FETCH_DIM_R                                      ~8      !2, 2
          9        ASSIGN                                                   !3, ~8
         10      > JMP                                                      ->21
    8    11    >   INIT_FCALL                                               'preg_match'
         12        SEND_VAL                                                 '%2F.%2A%5BA-Za-z%5D%7B3%7D%5Cs%28%5B%5Cd%5D%7B4%7D%29%5C-%2F'
         13        SEND_VAR                                                 !0
         14        SEND_REF                                                 !2
         15        DO_ICALL                                         $10     
         16      > JMPZ                                                     $10, ->21
    9    17    >   FETCH_DIM_R                                      ~11     !2, 1
         18        CONCAT                                           ~12     '%28', ~11
         19        CONCAT                                           ~13     ~12, '%29'
         20        ASSIGN                                                   !3, ~13
   12    21    >   INIT_FCALL                                               'preg_match'
         22        SEND_VAL                                                 '%2F.%2A%5C-%28Nov%7CDec%29%3F%5Cs%28%5B%5Cd%5D%7B4%7D%29%2F'
         23        SEND_VAR                                                 !1
         24        SEND_REF                                                 !2
         25        DO_ICALL                                         $15     
         26      > JMPZ                                                     $15, ->30
   13    27    >   FETCH_DIM_R                                      ~16     !2, 2
         28        ASSIGN                                                   !4, ~16
         29      > JMP                                                      ->40
   14    30    >   INIT_FCALL                                               'preg_match'
         31        SEND_VAL                                                 '%2F.%2A%5C-%5BA-Za-z%5D%7B3%7D%5Cs%28%5B%5Cd%5D%7B4%7D%29%2F'
         32        SEND_VAR                                                 !1
         33        SEND_REF                                                 !2
         34        DO_ICALL                                         $18     
         35      > JMPZ                                                     $18, ->40
   15    36    >   FETCH_DIM_R                                      ~19     !2, 1
         37        CONCAT                                           ~20     '%28', ~19
         38        CONCAT                                           ~21     ~20, '%29'
         39        ASSIGN                                                   !4, ~21
   18    40    >   ROPE_INIT                                     4  ~24     !0
         41        ROPE_ADD                                      1  ~24     ~24, '%2C+'
         42        ROPE_ADD                                      2  ~24     ~24, !1
         43        ROPE_END                                      3  ~23     ~24, '%0A...'
         44        ECHO                                                     ~23
   19    45        ROPE_INIT                                     4  ~27     !3
         46        ROPE_ADD                                      1  ~27     ~27, '+-+'
         47        ROPE_ADD                                      2  ~27     ~27, !4
         48        ROPE_END                                      3  ~26     ~27, '%0A%0A'
         49        ECHO                                                     ~26
         50      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.75 ms | 1400 KiB | 15 Q