3v4l.org

run code in 300+ PHP versions simultaneously
<?php $styleid = '4'; $style = array('styleid' => $styleid ); foreach ($style as $key => $value) { echo "Key: $key; Value: $value\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 13
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 13
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/vOSa7
function name:  (null)
number of ops:  15
compiled vars:  !0 = $styleid, !1 = $style, !2 = $value, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '4'
    3     1        INIT_ARRAY                                       ~5      !0, 'styleid'
          2        ASSIGN                                                   !1, ~5
    6     3      > FE_RESET_R                                       $7      !1, ->13
          4    > > FE_FETCH_R                                       ~8      $7, !2, ->13
          5    >   ASSIGN                                                   !3, ~8
    7     6        ROPE_INIT                                     5  ~11     'Key%3A+'
          7        ROPE_ADD                                      1  ~11     ~11, !3
          8        ROPE_ADD                                      2  ~11     ~11, '%3B+Value%3A+'
          9        ROPE_ADD                                      3  ~11     ~11, !2
         10        ROPE_END                                      4  ~10     ~11, '%0A'
         11        ECHO                                                     ~10
    6    12      > JMP                                                      ->4
         13    >   FE_FREE                                                  $7
    8    14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.69 ms | 1397 KiB | 13 Q