3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.45 ms | 1396 KiB | 15 Q