3v4l.org

run code in 300+ PHP versions simultaneously
<?php function convertAssociativeArrayToValue(array $data){$result=[];foreach($data as $key=>$value){$result[]="{$key}:{$value}";}} $parameters=['a'=>2,'b'=>3,'c'=>1]; echo "|parameters:[".implode(",'",convertAssociativeArrayToValue($parameters))."]";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VUPbP
function name:  (null)
number of ops:  12
compiled vars:  !0 = $parameters
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        INIT_FCALL                                               'implode'
          2        SEND_VAL                                                 '%2C%27'
          3        INIT_FCALL                                               'convertassociativearraytovalue'
          4        SEND_VAR                                                 !0
          5        DO_FCALL                                      0  $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                         $3      
          8        CONCAT                                           ~4      '%7Cparameters%3A%5B', $3
          9        CONCAT                                           ~5      ~4, '%5D'
         10        ECHO                                                     ~5
         11      > RETURN                                                   1

Function convertassociativearraytovalue:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 11
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 11
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
filename:       /in/VUPbP
function name:  convertAssociativeArrayToValue
number of ops:  13
compiled vars:  !0 = $data, !1 = $result, !2 = $value, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        ASSIGN                                                   !1, <array>
          2      > FE_RESET_R                                       $5      !0, ->11
          3    > > FE_FETCH_R                                       ~6      $5, !2, ->11
          4    >   ASSIGN                                                   !3, ~6
          5        ROPE_INIT                                     3  ~10     !3
          6        ROPE_ADD                                      1  ~10     ~10, '%3A'
          7        ROPE_END                                      2  ~9      ~10, !2
          8        ASSIGN_DIM                                               !1
          9        OP_DATA                                                  ~9
         10      > JMP                                                      ->3
         11    >   FE_FREE                                                  $5
         12      > RETURN                                                   null

End of function convertassociativearraytovalue

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.91 ms | 1399 KiB | 16 Q