3v4l.org

run code in 300+ PHP versions simultaneously
<?php function generateArr($variable, $var) { return [$variable, $var]; } foreach(generateArr(10, 15) as $value) { echo $value; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/lYMLb
function name:  (null)
number of ops:  10
compiled vars:  !0 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_FCALL                                               'generatearr'
          1        SEND_VAL                                                 10
          2        SEND_VAL                                                 15
          3        DO_FCALL                                      0  $1      
          4      > FE_RESET_R                                       $2      $1, ->8
          5    > > FE_FETCH_R                                               $2, !0, ->8
    7     6    >   ECHO                                                     !0
    6     7      > JMP                                                      ->5
          8    >   FE_FREE                                                  $2
    8     9      > RETURN                                                   1

Function generatearr:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lYMLb
function name:  generateArr
number of ops:  6
compiled vars:  !0 = $variable, !1 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    3     2        INIT_ARRAY                                       ~2      !0
          3        ADD_ARRAY_ELEMENT                                ~2      !1
          4      > RETURN                                                   ~2
    4     5*     > RETURN                                                   null

End of function generatearr

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.45 ms | 1401 KiB | 14 Q