3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.27 ms | 1395 KiB | 15 Q