3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Everything you enter here will be executed by our servers. Try it! $items = array(); array_push($items, "T-shirt", "Bob Jacket", "Grizzly Grip"); if(array_key_exists("T-shirt", $items)) { foreach($items as $value) { print_r($items); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
Branch analysis from position: 16
filename:       /in/XnlDT
function name:  (null)
number of ops:  17
compiled vars:  !0 = $items, !1 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    5     1        INIT_FCALL                                               'array_push'
          2        SEND_REF                                                 !0
          3        SEND_VAL                                                 'T-shirt'
          4        SEND_VAL                                                 'Bob+Jacket'
          5        SEND_VAL                                                 'Grizzly+Grip'
          6        DO_ICALL                                                 
    7     7        ARRAY_KEY_EXISTS                                         'T-shirt', !0
          8      > JMPZ                                                     ~4, ->16
    8     9    > > FE_RESET_R                                       $5      !0, ->15
         10    > > FE_FETCH_R                                               $5, !1, ->15
    9    11    >   INIT_FCALL                                               'print_r'
         12        SEND_VAR                                                 !0
         13        DO_ICALL                                                 
    8    14      > JMP                                                      ->10
         15    >   FE_FREE                                                  $5
   11    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.16 ms | 1395 KiB | 17 Q