3v4l.org

run code in 300+ PHP versions simultaneously
<?php function a($a) { unset($a); for ($i = 0; $i < 255; $i++) { $GLOBALS['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/4j00E
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 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 4
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 4
Branch analysis from position: 12
Branch analysis from position: 4
filename:       /in/4j00E
function name:  a
number of ops:  19
compiled vars:  !0 = $a, !1 = $i
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                                                      ->10
    6     4    >   CONCAT                                           ~6      'hi', !1
          5        FETCH_W                      global              $3      'GLOBALS'
          6        FETCH_DIM_W                                      $4      $3, 'v'
          7        ASSIGN_DIM                                               $4, !1
          8        OP_DATA                                                  ~6
    5     9        PRE_INC                                                  !1
         10    >   IS_SMALLER                                               !1, 255
         11      > JMPNZ                                                    ~8, ->4
    8    12    >   INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'func_get_arg'
         14        SEND_VAL                                                 0
         15        DO_ICALL                                         $9      
         16        SEND_VAR                                                 $9
         17        DO_ICALL                                                 
    9    18      > RETURN                                                   null

End of function a

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.57 ms | 1398 KiB | 18 Q