3v4l.org

run code in 300+ PHP versions simultaneously
<?php function chercheIndices($val,$t){ for($i=0;$i<count($t);$i++){ if($t[$i]==$val){ $res = $res + "{la valeur}{$t}{est a la case numéro}{$i}{<br/>}"; } } return $res; } $t=array(1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9,1,2,3,4,5,6,7,8,9); chercheIndices(4,$t); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rrVhf
function name:  (null)
number of ops:  6
compiled vars:  !0 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ASSIGN                                                   !0, <array>
   13     1        INIT_FCALL                                               'chercheindices'
          2        SEND_VAL                                                 4
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0          
   15     5      > RETURN                                                   1

Function chercheindices:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 4
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 14
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 4
Branch analysis from position: 18
Branch analysis from position: 4
Branch analysis from position: 14
filename:       /in/rrVhf
function name:  chercheIndices
number of ops:  20
compiled vars:  !0 = $val, !1 = $t, !2 = $i, !3 = $res
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->15
    5     4    >   FETCH_DIM_R                                      ~5      !1, !2
          5        IS_EQUAL                                                 !0, ~5
          6      > JMPZ                                                     ~6, ->14
    6     7    >   ROPE_INIT                                     5  ~8      '%7Bla+valeur%7D'
          8        ROPE_ADD                                      1  ~8      ~8, !1
          9        ROPE_ADD                                      2  ~8      ~8, '%7Best+a+la+case+num%C3%A9ro%7D'
         10        ROPE_ADD                                      3  ~8      ~8, !2
         11        ROPE_END                                      4  ~7      ~8, '%7B%3Cbr%2F%3E%7D'
         12        ADD                                              ~11     !3, ~7
         13        ASSIGN                                                   !3, ~11
    4    14    >   PRE_INC                                                  !2
         15    >   COUNT                                            ~14     !1
         16        IS_SMALLER                                               !2, ~14
         17      > JMPNZ                                                    ~15, ->4
    9    18    > > RETURN                                                   !3
   10    19*     > RETURN                                                   null

End of function chercheindices

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.2 ms | 1399 KiB | 14 Q