3v4l.org

run code in 300+ PHP versions simultaneously
<?php reset ($arr); while (list($key, $value) = each ($arr)) { echo "Key: $key; Value: $value<br>\n"; } foreach ($arr as $key => $value) { echo "Key: $key; Value: $value<br>\n"; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 4
Branch analysis from position: 18
2 jumps found. (Code = 77) Position 1 = 19, Position 2 = 28
Branch analysis from position: 19
2 jumps found. (Code = 78) Position 1 = 20, Position 2 = 28
Branch analysis from position: 20
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Branch analysis from position: 28
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 4
Branch analysis from position: 18
Branch analysis from position: 4
filename:       /in/VrpTt
function name:  (null)
number of ops:  30
compiled vars:  !0 = $arr, !1 = $key, !2 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'reset'
          1        SEND_REF                                                 !0
          2        DO_ICALL                                                 
    3     3      > JMP                                                      ->10
    4     4    >   ROPE_INIT                                     5  ~5      'Key%3A+'
          5        ROPE_ADD                                      1  ~5      ~5, !1
          6        ROPE_ADD                                      2  ~5      ~5, '%3B+Value%3A+'
          7        ROPE_ADD                                      3  ~5      ~5, !2
          8        ROPE_END                                      4  ~4      ~5, '%3Cbr%3E%0A'
          9        ECHO                                                     ~4
    3    10    >   INIT_FCALL_BY_NAME                                       'each'
         11        SEND_VAR_EX                                              !0
         12        DO_FCALL                                      0  $8      
         13        FETCH_LIST_R                                     $9      $8, 0
         14        ASSIGN                                                   !1, $9
         15        FETCH_LIST_R                                     $11     $8, 1
         16        ASSIGN                                                   !2, $11
         17      > JMPNZ                                                    $8, ->4
    6    18    > > FE_RESET_R                                       $13     !0, ->28
         19    > > FE_FETCH_R                                       ~14     $13, !2, ->28
         20    >   ASSIGN                                                   !1, ~14
    7    21        ROPE_INIT                                     5  ~17     'Key%3A+'
         22        ROPE_ADD                                      1  ~17     ~17, !1
         23        ROPE_ADD                                      2  ~17     ~17, '%3B+Value%3A+'
         24        ROPE_ADD                                      3  ~17     ~17, !2
         25        ROPE_END                                      4  ~16     ~17, '%3Cbr%3E%0A'
         26        ECHO                                                     ~16
    6    27      > JMP                                                      ->19
         28    >   FE_FREE                                                  $13
    9    29      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.55 ms | 1396 KiB | 15 Q