3v4l.org

run code in 300+ PHP versions simultaneously
<?php $liste = array('a', 'b', 'c', 'd', 'e', 'f', 'g', 'h'); $liste2 = array('f','h','ddd', 'c','a','d'); $i= 0; $code=''; while($i < count($liste2)) { if (!in_array($liste2[$i], $liste)) { $code = $liste2[$i]; } $i++; } if ($code) { echo $code; } else { echo "non défini"; }
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 = 5
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 5
Branch analysis from position: 18
Branch analysis from position: 5
Branch analysis from position: 14
filename:       /in/HCJGH
function name:  (null)
number of ops:  23
compiled vars:  !0 = $liste, !1 = $liste2, !2 = $i, !3 = $code
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        ASSIGN                                                   !1, <array>
    7     2        ASSIGN                                                   !2, 0
    8     3        ASSIGN                                                   !3, ''
    9     4      > JMP                                                      ->15
   10     5    >   INIT_FCALL                                               'in_array'
          6        FETCH_DIM_R                                      ~8      !1, !2
          7        SEND_VAL                                                 ~8
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $9      
         10        BOOL_NOT                                         ~10     $9
         11      > JMPZ                                                     ~10, ->14
   11    12    >   FETCH_DIM_R                                      ~11     !1, !2
         13        ASSIGN                                                   !3, ~11
   13    14    >   PRE_INC                                                  !2
    9    15    >   COUNT                                            ~14     !1
         16        IS_SMALLER                                               !2, ~14
         17      > JMPNZ                                                    ~15, ->5
   15    18    > > JMPZ                                                     !3, ->21
   16    19    >   ECHO                                                     !3
         20      > JMP                                                      ->22
   18    21    >   ECHO                                                     'non+d%C3%A9fini'
   19    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.59 ms | 1395 KiB | 15 Q