3v4l.org

run code in 300+ PHP versions simultaneously
<?php function f() { foreach ($x as $y) { foreach ($y as $z) { return; } } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QhpGk
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E > > RETURN                                                   1

Function f:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 1, Position 2 = 10
Branch analysis from position: 1
2 jumps found. (Code = 78) Position 1 = 2, Position 2 = 10
Branch analysis from position: 2
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 1
Branch analysis from position: 1
Branch analysis from position: 8
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/QhpGk
function name:  f
number of ops:  12
compiled vars:  !0 = $x, !1 = $y, !2 = $z
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > FE_RESET_R                                       $3      !0, ->10
          1    > > FE_FETCH_R                                               $3, !1, ->10
    5     2    > > FE_RESET_R                                       $4      !1, ->8
          3    > > FE_FETCH_R                                               $4, !2, ->8
    6     4    >   FE_FREE                                                  $4
          5        FE_FREE                                                  $3
          6      > RETURN                                                   null
    5     7*       JMP                                                      ->3
          8    >   FE_FREE                                                  $4
    4     9      > JMP                                                      ->1
         10    >   FE_FREE                                                  $3
    9    11      > RETURN                                                   null

End of function f

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.78 ms | 1007 KiB | 13 Q