3v4l.org

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

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 4
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 10, Position 2 = 4
Branch analysis from position: 10
Branch analysis from position: 4
filename:       /in/AoJDa
function name:  a
number of ops:  17
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_CV                                                 !0
    5     2        ASSIGN                                                   !1, 0
          3      > JMP                                                      ->8
    6     4    >   CONCAT                                           ~5      'hi', !1
          5        ASSIGN_DIM                                               !2, !1
          6        OP_DATA                                                  ~5
    5     7        PRE_INC                                                  !1
          8    >   IS_SMALLER                                               !1, 5
          9      > JMPNZ                                                    ~7, ->4
    8    10    >   INIT_FCALL                                               'var_dump'
         11        INIT_FCALL                                               'func_get_arg'
         12        SEND_VAL                                                 0
         13        DO_ICALL                                         $8      
         14        SEND_VAR                                                 $8
         15        DO_ICALL                                                 
    9    16      > RETURN                                                   null

End of function a

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.98 ms | 1398 KiB | 18 Q