3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string='maría'; $vocales = preg_match_all('/[aeiouáéíó]/i',$string, $matchesV); 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 = 15, Position 2 = 20
Branch analysis from position: 15
2 jumps found. (Code = 47) Position 1 = 21, Position 2 = 26
Branch analysis from position: 21
2 jumps found. (Code = 47) Position 1 = 27, Position 2 = 32
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 39
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 39
Branch analysis from position: 32
Branch analysis from position: 26
Branch analysis from position: 20
filename:       /in/4tFoh
function name:  (null)
number of ops:  40
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        NOP                                                      
          8        FAST_CONCAT                                      ~7      '%3Cbr%3Evocales+%3D+', !1
          9        ECHO                                                     ~7
    7    10        INIT_FCALL                                               'in_array'
         11        SEND_VAL                                                 '%C3%A1'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                         $8      
         14      > JMPNZ_EX                                         ~9      $8, ->20
         15    >   INIT_FCALL                                               'in_array'
         16        SEND_VAL                                                 '%C3%A9'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                         $10     
         19        BOOL                                             ~9      $10
         20    > > JMPNZ_EX                                         ~9      ~9, ->26
         21    >   INIT_FCALL                                               'in_array'
         22        SEND_VAL                                                 '%C3%AD'
         23        SEND_VAR                                                 !2
         24        DO_ICALL                                         $11     
         25        BOOL                                             ~9      $11
         26    > > JMPNZ_EX                                         ~9      ~9, ->32
         27    >   INIT_FCALL                                               'in_array'
         28        SEND_VAL                                                 '%C3%B3'
         29        SEND_VAR                                                 !2
         30        DO_ICALL                                         $12     
         31        BOOL                                             ~9      $12
         32    > > JMPZ                                                     ~9, ->39
    8    33    >   SUB                                              ~13     !1, 1
         34        ASSIGN                                                   !3, ~13
    9    35        NOP                                                      
         36        FAST_CONCAT                                      ~15     '%3Cbr%3Ev+', !3
         37        ECHO                                                     ~15
   10    38        ECHO                                                     '%3Cbr%3E1'
         39    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.9 ms | 1400 KiB | 17 Q