3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string='maría'; $vocales = preg_match_all('/[aeiouáéíó]/i',$string, $matchesV); $matchesV = $matchesV[0]; echo "<br>vocales = $vocales"; if ((in_array('á',$matchesV))||(in_array('é',$matchesV)) || (in_array('í',$matchesV)) || (in_array('ó',$matchesV))){ $v = $vocales - 1; echo "<br>v $v"; echo '<br>1'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 17, Position 2 = 22
Branch analysis from position: 17
2 jumps found. (Code = 47) Position 1 = 23, Position 2 = 28
Branch analysis from position: 23
2 jumps found. (Code = 47) Position 1 = 29, Position 2 = 34
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 35, Position 2 = 41
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 41
Branch analysis from position: 34
Branch analysis from position: 28
Branch analysis from position: 22
filename:       /in/jLNr7
function name:  (null)
number of ops:  42
compiled vars:  !0 = $string, !1 = $vocales, !2 = $matchesV, !3 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'mar%C3%ADa'
    4     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F%5Baeiou%C3%A1%C3%A9%C3%AD%C3%B3%5D%2Fi'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !2
          5        DO_ICALL                                         $5      
          6        ASSIGN                                                   !1, $5
    5     7        FETCH_DIM_R                                      ~7      !2, 0
          8        ASSIGN                                                   !2, ~7
    6     9        NOP                                                      
         10        FAST_CONCAT                                      ~9      '%3Cbr%3Evocales+%3D+', !1
         11        ECHO                                                     ~9
    8    12        INIT_FCALL                                               'in_array'
         13        SEND_VAL                                                 '%C3%A1'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                         $10     
         16      > JMPNZ_EX                                         ~11     $10, ->22
         17    >   INIT_FCALL                                               'in_array'
         18        SEND_VAL                                                 '%C3%A9'
         19        SEND_VAR                                                 !2
         20        DO_ICALL                                         $12     
         21        BOOL                                             ~11     $12
         22    > > JMPNZ_EX                                         ~11     ~11, ->28
         23    >   INIT_FCALL                                               'in_array'
         24        SEND_VAL                                                 '%C3%AD'
         25        SEND_VAR                                                 !2
         26        DO_ICALL                                         $13     
         27        BOOL                                             ~11     $13
         28    > > JMPNZ_EX                                         ~11     ~11, ->34
         29    >   INIT_FCALL                                               'in_array'
         30        SEND_VAL                                                 '%C3%B3'
         31        SEND_VAR                                                 !2
         32        DO_ICALL                                         $14     
         33        BOOL                                             ~11     $14
         34    > > JMPZ                                                     ~11, ->41
    9    35    >   SUB                                              ~15     !1, 1
         36        ASSIGN                                                   !3, ~15
   10    37        NOP                                                      
         38        FAST_CONCAT                                      ~17     '%3Cbr%3Ev+', !3
         39        ECHO                                                     ~17
   11    40        ECHO                                                     '%3Cbr%3E1'
         41    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.74 ms | 1400 KiB | 17 Q