3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $a[0] = '1'; $a[1] = '2'; $a[2] = '2'; if(in_array('2', $a) && count(in_array('2', $a)) > 1){ echo 'yes'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 12, Position 2 = 19
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 21
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
Branch analysis from position: 19
filename:       /in/q4PAK
function name:  (null)
number of ops:  22
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
          1        ASSIGN_DIM                                               !0, 0
          2        OP_DATA                                                  '1'
          3        ASSIGN_DIM                                               !0, 1
          4        OP_DATA                                                  '2'
          5        ASSIGN_DIM                                               !0, 2
          6        OP_DATA                                                  '2'
    4     7        INIT_FCALL                                               'in_array'
          8        SEND_VAL                                                 '2'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $5      
         11      > JMPZ_EX                                          ~6      $5, ->19
         12    >   INIT_FCALL                                               'in_array'
         13        SEND_VAL                                                 '2'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                         $7      
         16        COUNT                                            ~8      $7
         17        IS_SMALLER                                       ~9      1, ~8
         18        BOOL                                             ~6      ~9
         19    > > JMPZ                                                     ~6, ->21
    5    20    >   ECHO                                                     'yes'
    6    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.08 ms | 1395 KiB | 15 Q