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() . "\r\n"; echo huzzah() . "\r\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZOH8p
function name:  (null)
number of ops:  9
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'huzzah'
          1        DO_FCALL                                      0  $0      
          2        CONCAT                                           ~1      $0, '%0D%0A'
          3        ECHO                                                     ~1
   15     4        INIT_FCALL                                               'huzzah'
          5        DO_FCALL                                      0  $2      
          6        CONCAT                                           ~3      $2, '%0D%0A'
          7        ECHO                                                     ~3
          8      > 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/ZOH8p
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:
144.43 ms | 1401 KiB | 15 Q