3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach ($a as &$x) { foreach ($a as &$y) { echo "$x - $y\n"; if ($x == 0 && $y == 1) { unset($a[1]); unset($a[2]); } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 125) Position 1 = 1, Position 2 = 19
Branch analysis from position: 1
2 jumps found. (Code = 126) Position 1 = 2, Position 2 = 19
Branch analysis from position: 2
2 jumps found. (Code = 125) Position 1 = 3, Position 2 = 17
Branch analysis from position: 3
2 jumps found. (Code = 126) Position 1 = 4, Position 2 = 17
Branch analysis from position: 4
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 16
Branch analysis from position: 13
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 17
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
filename:       /in/VmCQI
function name:  (null)
number of ops:  21
compiled vars:  !0 = $a, !1 = $x, !2 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > FE_RESET_RW                                      $3      !0, ->19
          1    > > FE_FETCH_RW                                              $3, !1, ->19
    4     2    > > FE_RESET_RW                                      $4      !0, ->17
          3    > > FE_FETCH_RW                                              $4, !2, ->17
    5     4    >   ROPE_INIT                                     4  ~6      !1
          5        ROPE_ADD                                      1  ~6      ~6, '+-+'
          6        ROPE_ADD                                      2  ~6      ~6, !2
          7        ROPE_END                                      3  ~5      ~6, '%0A'
          8        ECHO                                                     ~5
    6     9        IS_EQUAL                                         ~8      !1, 0
         10      > JMPZ_EX                                          ~8      ~8, ->13
         11    >   IS_EQUAL                                         ~9      !2, 1
         12        BOOL                                             ~8      ~9
         13    > > JMPZ                                                     ~8, ->16
    7    14    >   UNSET_DIM                                                !0, 1
    8    15        UNSET_DIM                                                !0, 2
    4    16    > > JMP                                                      ->3
         17    >   FE_FREE                                                  $4
    3    18      > JMP                                                      ->1
         19    >   FE_FREE                                                  $3
   11    20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.47 ms | 1394 KiB | 13 Q