3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.76 ms | 1394 KiB | 15 Q