3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = new ArrayIterator( array( 'foo' => 1, 'bar' => 2, ) ); if ( array_key_exists( 'foo', $x ) ) { echo "PASS\n"; } else { echo "FAIL\n"; } if ( ! array_key_exists( 'baz', $x ) ) { echo "PASS\n"; } else { echo "FAIL\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
Branch analysis from position: 14
filename:       /in/vIFPF
function name:  (null)
number of ops:  16
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'ArrayIterator'
    4     1        SEND_VAL_EX                                              <array>
    3     2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    7     4        ARRAY_KEY_EXISTS                                         'foo', !0
          5      > JMPZ                                                     ~4, ->8
    8     6    >   ECHO                                                     'PASS%0A'
    7     7      > JMP                                                      ->9
   10     8    >   ECHO                                                     'FAIL%0A'
   12     9    >   ARRAY_KEY_EXISTS                                 ~5      'baz', !0
         10        BOOL_NOT                                         ~6      ~5
         11      > JMPZ                                                     ~6, ->14
   13    12    >   ECHO                                                     'PASS%0A'
   12    13      > JMP                                                      ->15
   15    14    >   ECHO                                                     'FAIL%0A'
   16    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.21 ms | 1448 KiB | 13 Q