3v4l.org

run code in 300+ PHP versions simultaneously
<?php const TYPE_COMMENTAIRE_OBJECTIF_GESTION = 1; $idTypeCommentaireToLoad = array( TYPE_COMMENTAIRE_OBJECTIF_GESTION, ); if (!in_array('1', $idTypeCommentaireToLoad)) { echo "Hi dude 1 !"; } elseif (!in_array('2', $idTypeCommentaireToLoad)) { echo "Hi dude 2 !"; } else { echo "Hi dude 3 !"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EfWnL
function name:  (null)
number of ops:  22
compiled vars:  !0 = $idTypeCommentaireToLoad
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                            'TYPE_COMMENTAIRE_OBJECTIF_GESTION', 1
    6     1        FETCH_CONSTANT                                   ~1      'TYPE_COMMENTAIRE_OBJECTIF_GESTION'
          2        INIT_ARRAY                                       ~2      ~1
    5     3        ASSIGN                                                   !0, ~2
    9     4        INIT_FCALL                                               'in_array'
          5        SEND_VAL                                                 '1'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $4      
          8        BOOL_NOT                                         ~5      $4
          9      > JMPZ                                                     ~5, ->12
   10    10    >   ECHO                                                     'Hi+dude+1+%21'
         11      > JMP                                                      ->21
   11    12    >   INIT_FCALL                                               'in_array'
         13        SEND_VAL                                                 '2'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $6      
         16        BOOL_NOT                                         ~7      $6
         17      > JMPZ                                                     ~7, ->20
   12    18    >   ECHO                                                     'Hi+dude+2+%21'
         19      > JMP                                                      ->21
   14    20    >   ECHO                                                     'Hi+dude+3+%21'
   15    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.19 ms | 1395 KiB | 15 Q