3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('a', 'b'); foreach ($arr as &$a) { var_dump($a); } debug_zval_dump($arr); debug_zval_dump($a); foreach ($arr as $a) { var_dump($a); } debug_zval_dump($arr); debug_zval_dump($a);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 2, Position 2 = 7
Branch analysis from position: 2
2 jumps found. (Code = 126) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 7
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 20
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 20
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 7
filename:       /in/Reth9
function name:  (null)
number of ops:  28
compiled vars:  !0 = $arr, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1      > FE_RESET_RW                                      $3      !0, ->7
          2    > > FE_FETCH_RW                                              $3, !1, ->7
    5     3    >   INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
    4     6      > JMP                                                      ->2
          7    >   FE_FREE                                                  $3
    8     8        INIT_FCALL                                               'debug_zval_dump'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
    9    11        INIT_FCALL                                               'debug_zval_dump'
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                                 
   11    14      > FE_RESET_R                                       $7      !0, ->20
         15    > > FE_FETCH_R                                               $7, !1, ->20
   12    16    >   INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
   11    19      > JMP                                                      ->15
         20    >   FE_FREE                                                  $7
   15    21        INIT_FCALL                                               'debug_zval_dump'
         22        SEND_VAR                                                 !0
         23        DO_ICALL                                                 
   16    24        INIT_FCALL                                               'debug_zval_dump'
         25        SEND_VAR                                                 !1
         26        DO_ICALL                                                 
         27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.91 ms | 1015 KiB | 15 Q