3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.9 ms | 1394 KiB | 15 Q