3v4l.org

run code in 300+ PHP versions simultaneously
<?php function convertParametersForGetRequest( $lead ) { $parameters = ""; foreach( $lead as $key => $value ) { if( empty( $parameters ) ) { $parameters .= "{$key}={$value}"; } else { $parameters .= "&{$key}={$value}"; } } return $parameters; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LNpit
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E > > RETURN                                                   1

Function convertparametersforgetrequest:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 18
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 18
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 12
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/LNpit
function name:  convertParametersForGetRequest
number of ops:  21
compiled vars:  !0 = $lead, !1 = $parameters, !2 = $value, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        ASSIGN                                                   !1, ''
    6     2      > FE_RESET_R                                       $5      !0, ->18
          3    > > FE_FETCH_R                                       ~6      $5, !2, ->18
          4    >   ASSIGN                                                   !3, ~6
    7     5        ISSET_ISEMPTY_CV                                         !1
          6      > JMPZ                                                     ~8, ->12
    9     7    >   ROPE_INIT                                     3  ~10     !3
          8        ROPE_ADD                                      1  ~10     ~10, '%3D'
          9        ROPE_END                                      2  ~9      ~10, !2
         10        ASSIGN_OP                                     8          !1, ~9
         11      > JMP                                                      ->17
   13    12    >   ROPE_INIT                                     4  ~14     '%26'
         13        ROPE_ADD                                      1  ~14     ~14, !3
         14        ROPE_ADD                                      2  ~14     ~14, '%3D'
         15        ROPE_END                                      3  ~13     ~14, !2
         16        ASSIGN_OP                                     8          !1, ~13
    6    17    > > JMP                                                      ->3
         18    >   FE_FREE                                                  $5
   17    19      > RETURN                                                   !1
   18    20*     > RETURN                                                   null

End of function convertparametersforgetrequest

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.93 ms | 1395 KiB | 13 Q