3v4l.org

run code in 300+ PHP versions simultaneously
<?php $queue = array(10, "apple", "orange", "banana", "raspberry"); print_r($queue); unset($queue["apple"]); print_r($queue); foreach ($queue as $key => $g) { print "key: ".$key." --> g: ".$g; } php?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 16
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 16
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/CbXSk
function name:  (null)
number of ops:  20
compiled vars:  !0 = $queue, !1 = $g, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'print_r'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    4     4        UNSET_DIM                                                !0, 'apple'
    5     5        INIT_FCALL                                               'print_r'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                                 
    7     8      > FE_RESET_R                                       $6      !0, ->16
          9    > > FE_FETCH_R                                       ~7      $6, !1, ->16
         10    >   ASSIGN                                                   !2, ~7
    8    11        CONCAT                                           ~9      'key%3A+', !2
         12        CONCAT                                           ~10     ~9, '+--%3E+g%3A+'
         13        CONCAT                                           ~11     ~10, !1
         14        ECHO                                                     ~11
    7    15      > JMP                                                      ->9
         16    >   FE_FREE                                                  $6
   11    17        FETCH_CONSTANT                                   ~12     'php'
         18        FREE                                                     ~12
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.52 ms | 1395 KiB | 15 Q