3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = array(); $test['a'] = 'first'; $test['d'] = 'second'; $test['c'] = 'third'; $test['e'] = 'penultimate'; $test['b'] = 'last'; foreach($test as $key => $value) { var_dump($value); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 18
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 18
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/HeVJm
function name:  (null)
number of ops:  20
compiled vars:  !0 = $test, !1 = $value, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, <array>
    6     1        ASSIGN_DIM                                               !0, 'a'
          2        OP_DATA                                                  'first'
    7     3        ASSIGN_DIM                                               !0, 'd'
          4        OP_DATA                                                  'second'
    8     5        ASSIGN_DIM                                               !0, 'c'
          6        OP_DATA                                                  'third'
    9     7        ASSIGN_DIM                                               !0, 'e'
          8        OP_DATA                                                  'penultimate'
   10     9        ASSIGN_DIM                                               !0, 'b'
         10        OP_DATA                                                  'last'
   12    11      > FE_RESET_R                                       $9      !0, ->18
         12    > > FE_FETCH_R                                       ~10     $9, !1, ->18
         13    >   ASSIGN                                                   !2, ~10
   13    14        INIT_FCALL                                               'var_dump'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                                 
   12    17      > JMP                                                      ->12
         18    >   FE_FREE                                                  $9
   14    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.35 ms | 1395 KiB | 15 Q