3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function a($a) { unset($a); for ($i = 0; $i < 5; $i++) { $v[$i] = 'hi'.$i; } var_dump(func_get_arg(0)); } a("1st"); ?>
based on WRuAa
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/AoJDa
function name:  (null)
number of ops:  5
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
  11     1        INIT_FCALL                                               'a'
         2        SEND_VAL                                                 '1st'
         3        DO_FCALL                                      0          
         4      > RETURN                                                   1

Function a:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = 9
Branch analysis from position: 9
Jump found. Position 1 = 11, Position 2 = 4
Branch analysis from position: 11
Jump found. Position 1 = -2
Branch analysis from position: 4
Jump found. Position 1 = 11, Position 2 = 4
Branch analysis from position: 11
Branch analysis from position: 4
filename:       /in/AoJDa
function name:  a
number of ops:  18
compiled vars:  !0 = $a, !1 = $i, !2 = $v
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   RECV                                             !0      
   4     1        UNSET_VAR                                                !0
   5     2        ASSIGN                                                   !1, 0
         3      > JMP                                                      ->9
   6     4    >   CONCAT                                           ~5      'hi', !1
         5        ASSIGN_DIM                                               !2, !1
         6        OP_DATA                                                  ~5
   5     7        POST_INC                                         ~6      !1
         8        FREE                                                     ~6
         9    >   IS_SMALLER                                       ~7      !1, 5
        10      > JMPNZ                                                    ~7, ->4
   8    11    >   INIT_FCALL                                               'var_dump'
        12        INIT_FCALL                                               'func_get_arg'
        13        SEND_VAL                                                 0
        14        DO_ICALL                                         $8      
        15        SEND_VAR                                                 $8
        16        DO_ICALL                                                 
   9    17      > RETURN                                                   null

End of function a

Generated using Vulcan Logic Dumper, using php 7.3.0