3v4l.org

run code in 300+ PHP versions simultaneously
<?php class URL { //! aggiunge gli array di dati e tutta la qry str passata in get ad un url function append($url = '', array $a = array()) { $g = $_GET; for ($i = 1; $i < func_num_args(); $i++) { $a = func_get_arg($i); $g = array_merge($g, $a); } // non propagare MAI le key speciali usate dal login $g['__u__'] = null; $g['__p__'] = null; return $url . '?' . http_build_query($g); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tppb8
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E > > RETURN                                                   1

Class URL:
Function append:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 6
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 6
Branch analysis from position: 19
Branch analysis from position: 6
filename:       /in/tppb8
function name:  append
number of ops:  30
compiled vars:  !0 = $url, !1 = $a, !2 = $g, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV_INIT                                        !0      ''
          1        RECV_INIT                                        !1      <array>
    7     2        FETCH_R                      global              ~4      '_GET'
          3        ASSIGN                                                   !2, ~4
    8     4        ASSIGN                                                   !3, 1
          5      > JMP                                                      ->16
    9     6    >   INIT_FCALL                                               'func_get_arg'
          7        SEND_VAR                                                 !3
          8        DO_ICALL                                         $7      
          9        ASSIGN                                                   !1, $7
   10    10        INIT_FCALL                                               'array_merge'
         11        SEND_VAR                                                 !2
         12        SEND_VAR                                                 !1
         13        DO_ICALL                                         $9      
         14        ASSIGN                                                   !2, $9
    8    15        PRE_INC                                                  !3
         16    >   FUNC_NUM_ARGS                                    ~12     
         17        IS_SMALLER                                               !3, ~12
         18      > JMPNZ                                                    ~13, ->6
   14    19    >   ASSIGN_DIM                                               !2, '__u__'
         20        OP_DATA                                                  null
   15    21        ASSIGN_DIM                                               !2, '__p__'
         22        OP_DATA                                                  null
   17    23        CONCAT                                           ~16     !0, '%3F'
         24        INIT_FCALL                                               'http_build_query'
         25        SEND_VAR                                                 !2
         26        DO_ICALL                                         $17     
         27        CONCAT                                           ~18     ~16, $17
         28      > RETURN                                                   ~18
   18    29*     > RETURN                                                   null

End of function append

End of class URL.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.26 ms | 1396 KiB | 19 Q