3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dias = array('Domingo','Lunes','Martes','Miercoles','Jueves','Viernes','Sabado'); $semana = array('Semana1','Semana2','Semana3','Semana4'); function mostrar_dias ($muestra){ for ($i=0; $i<count($muestra); $i++){ echo $muestra[$i]. "<br>"; } } mostrar_dias($dias); function mostrar_sem ($sem){ for ($i=0; $i<count($sem); $i++){ echo $sem[$i], "<br>"; } } mostrar_sem($semana); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5vOrK
function name:  (null)
number of ops:  9
compiled vars:  !0 = $dias, !1 = $semana
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, <array>
   10     2        INIT_FCALL                                               'mostrar_dias'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0          
   17     5        INIT_FCALL                                               'mostrar_sem'
          6        SEND_VAR                                                 !1
          7        DO_FCALL                                      0          
   20     8      > RETURN                                                   1

Function mostrar_dias:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
Branch analysis from position: 3
filename:       /in/5vOrK
function name:  mostrar_dias
number of ops:  11
compiled vars:  !0 = $muestra, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->7
    7     3    >   FETCH_DIM_R                                      ~3      !0, !1
          4        CONCAT                                           ~4      ~3, '%3Cbr%3E'
          5        ECHO                                                     ~4
    6     6        PRE_INC                                                  !1
          7    >   COUNT                                            ~6      !0
          8        IS_SMALLER                                               !1, ~6
          9      > JMPNZ                                                    ~7, ->3
    9    10    > > RETURN                                                   null

End of function mostrar_dias

Function mostrar_sem:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 3
Branch analysis from position: 10
Branch analysis from position: 3
filename:       /in/5vOrK
function name:  mostrar_sem
number of ops:  11
compiled vars:  !0 = $sem, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   13     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->7
   14     3    >   FETCH_DIM_R                                      ~3      !0, !1
          4        ECHO                                                     ~3
          5        ECHO                                                     '%3Cbr%3E'
   13     6        PRE_INC                                                  !1
          7    >   COUNT                                            ~5      !0
          8        IS_SMALLER                                               !1, ~5
          9      > JMPNZ                                                    ~6, ->3
   16    10    > > RETURN                                                   null

End of function mostrar_sem

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.56 ms | 1403 KiB | 15 Q