3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(array('p', 'h'), array('p', 'r'), 'o'); if (in_array(array('p', 'h'), $a)) { echo "'ph' a été trouvé\n"; } if (in_array(array('f', 'i'), $a)) { echo "'fi' was found\n"; } if (in_array('o', $a)) { echo "'o' a été trouvé\n"; } if (in_array('p', $a)) { echo "'p' a été trouvé\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 13
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 19
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 25
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 25
Branch analysis from position: 19
Branch analysis from position: 13
Branch analysis from position: 7
filename:       /in/u7sZL
function name:  (null)
number of ops:  26
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'in_array'
          2        SEND_VAL                                                 <array>
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $2      
          5      > JMPZ                                                     $2, ->7
    5     6    >   ECHO                                                     '%27ph%27+a+%C3%A9t%C3%A9+trouv%C3%A9%0A'
    8     7    >   INIT_FCALL                                               'in_array'
          8        SEND_VAL                                                 <array>
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $3      
         11      > JMPZ                                                     $3, ->13
    9    12    >   ECHO                                                     '%27fi%27+was+found%0A'
   12    13    >   INIT_FCALL                                               'in_array'
         14        SEND_VAL                                                 'o'
         15        SEND_VAR                                                 !0
         16        DO_ICALL                                         $4      
         17      > JMPZ                                                     $4, ->19
   13    18    >   ECHO                                                     '%27o%27+a+%C3%A9t%C3%A9+trouv%C3%A9%0A'
   16    19    >   INIT_FCALL                                               'in_array'
         20        SEND_VAL                                                 'p'
         21        SEND_VAR                                                 !0
         22        DO_ICALL                                         $5      
         23      > JMPZ                                                     $5, ->25
   17    24    >   ECHO                                                     '%27p%27+a+%C3%A9t%C3%A9+trouv%C3%A9%0A'
   18    25    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.11 ms | 1388 KiB | 15 Q