3v4l.org

run code in 300+ PHP versions simultaneously
<?php const TYPE_COMMENTAIRE_OBJECTIF_GESTION = 1; $idTypeCommentaireToLoad = array( TYPE_COMMENTAIRE_OBJECTIF_GESTION, ); foreach (array(1, '1', '2', 3) as $id) { if (in_array($id, $idTypeCommentaireToLoad)) { var_dump($id); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 15
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 15
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 14
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/NVaFe
function name:  (null)
number of ops:  17
compiled vars:  !0 = $idTypeCommentaireToLoad, !1 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                            'TYPE_COMMENTAIRE_OBJECTIF_GESTION', 1
    6     1        FETCH_CONSTANT                                   ~2      'TYPE_COMMENTAIRE_OBJECTIF_GESTION'
          2        INIT_ARRAY                                       ~3      ~2
    5     3        ASSIGN                                                   !0, ~3
    9     4      > FE_RESET_R                                       $5      <array>, ->15
          5    > > FE_FETCH_R                                               $5, !1, ->15
   10     6    >   INIT_FCALL                                               'in_array'
          7        SEND_VAR                                                 !1
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $6      
         10      > JMPZ                                                     $6, ->14
   11    11    >   INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
    9    14    > > JMP                                                      ->5
         15    >   FE_FREE                                                  $5
   13    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.19 ms | 1399 KiB | 17 Q