3v4l.org

run code in 300+ PHP versions simultaneously
<?php function returnArray() { return array(1,2,3,4,5); } foreach (returnArray() as $key => $value) { print $value; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
2 jumps found. (Code = 78) 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/FmEQr
function name:  (null)
number of ops:  9
compiled vars:  !0 = $value, !1 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                               'returnarray'
          1        DO_FCALL                                      0  $2      
          2      > FE_RESET_R                                       $3      $2, ->7
          3    > > FE_FETCH_R                                       ~4      $3, !0, ->7
          4    >   ASSIGN                                                   !1, ~4
    8     5        ECHO                                                     !0
    7     6      > JMP                                                      ->3
          7    >   FE_FREE                                                  $3
    9     8      > RETURN                                                   1

Function returnarray:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/FmEQr
function name:  returnArray
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E > > RETURN                                                   <array>
    5     1*     > RETURN                                                   null

End of function returnarray

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.69 ms | 1397 KiB | 14 Q