3v4l.org

run code in 300+ PHP versions simultaneously
<?php function huzzah() { $array = array(1,2,3,4,5); foreach($array AS $a) { return $a; } } echo huzzah(); echo huzzah();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hJgZn
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'huzzah'
          1        DO_FCALL                                      0  $0      
          2        ECHO                                                     $0
   15     3        INIT_FCALL                                               'huzzah'
          4        DO_FCALL                                      0  $1      
          5        ECHO                                                     $1
          6      > RETURN                                                   1

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

End of function huzzah

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.96 ms | 1397 KiB | 15 Q