3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = [1 => 'string', 2 => 'string']; if (is_array($array) && count($array) === 2 && is_string($array[0]) && is_string($array[1])) { echo 'GOOD!'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
2 jumps found. (Code = 46) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 16
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
Branch analysis from position: 14
Branch analysis from position: 10
Branch analysis from position: 6
filename:       /in/SXZ2V
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        TYPE_CHECK                                  128  ~2      !0
          2      > JMPZ_EX                                          ~2      ~2, ->6
          3    >   COUNT                                            ~3      !0
          4        IS_IDENTICAL                                     ~4      ~3, 2
          5        BOOL                                             ~2      ~4
          6    > > JMPZ_EX                                          ~2      ~2, ->10
          7    >   FETCH_DIM_R                                      ~5      !0, 0
          8        TYPE_CHECK                                   64  ~6      ~5
          9        BOOL                                             ~2      ~6
         10    > > JMPZ_EX                                          ~2      ~2, ->14
         11    >   FETCH_DIM_R                                      ~7      !0, 1
         12        TYPE_CHECK                                   64  ~8      ~7
         13        BOOL                                             ~2      ~8
         14    > > JMPZ                                                     ~2, ->16
    6    15    >   ECHO                                                     'GOOD%21'
    7    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.36 ms | 994 KiB | 13 Q