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."\n"; } $foo = "derp%"; print("foof $foo"); php?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 17
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 17
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/GYpOl
function name:  (null)
number of ops:  25
compiled vars:  !0 = $queue, !1 = $g, !2 = $key, !3 = $foo
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                                       $7      !0, ->17
          9    > > FE_FETCH_R                                       ~8      $7, !1, ->17
         10    >   ASSIGN                                                   !2, ~8
    8    11        CONCAT                                           ~10     'key%3A+', !2
         12        CONCAT                                           ~11     ~10, '+--%3E+g%3A+'
         13        CONCAT                                           ~12     ~11, !1
         14        CONCAT                                           ~13     ~12, '%0A'
         15        ECHO                                                     ~13
    7    16      > JMP                                                      ->9
         17    >   FE_FREE                                                  $7
   10    18        ASSIGN                                                   !3, 'derp%25'
   11    19        NOP                                                      
         20        FAST_CONCAT                                      ~15     'foof+', !3
         21        ECHO                                                     ~15
   12    22        FETCH_CONSTANT                                   ~16     'php'
         23        FREE                                                     ~16
         24      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.32 ms | 1395 KiB | 15 Q