3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = new StdClass(); $array->hu3 = "BR"; $array->lol = "HU"; $array->xpto = "xpp"; foreach( $array as $key => $val ) { echo $key . " " . $val . "<br />"; } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 17
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 17
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/Icpb5
function name:  (null)
number of ops:  19
compiled vars:  !0 = $array, !1 = $val, !2 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'StdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    4     3        ASSIGN_OBJ                                               !0, 'hu3'
          4        OP_DATA                                                  'BR'
    5     5        ASSIGN_OBJ                                               !0, 'lol'
          6        OP_DATA                                                  'HU'
    6     7        ASSIGN_OBJ                                               !0, 'xpto'
          8        OP_DATA                                                  'xpp'
    8     9      > FE_RESET_R                                       $9      !0, ->17
         10    > > FE_FETCH_R                                       ~10     $9, !1, ->17
         11    >   ASSIGN                                                   !2, ~10
   10    12        CONCAT                                           ~12     !2, '+'
         13        CONCAT                                           ~13     ~12, !1
         14        CONCAT                                           ~14     ~13, '%3Cbr+%2F%3E'
         15        ECHO                                                     ~14
    8    16      > JMP                                                      ->10
         17    >   FE_FREE                                                  $9
   13    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.58 ms | 1393 KiB | 13 Q