3v4l.org

run code in 300+ PHP versions simultaneously
<?php function string_to_array($string) { $retval = array(); $string = urldecode($string); $tmp_array = explode('||', $string); foreach ($tmp_array as $tmp_val) { list($index, $value) = explode('|', $tmp_val); $retval[base64_decode(urldecode($index))] = base64_decode(urldecode($value)); } return $retval; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/K1QHE
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E > > RETURN                                                   1

Function string_to_array:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 37
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 37
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
filename:       /in/K1QHE
function name:  string_to_array
number of ops:  40
compiled vars:  !0 = $string, !1 = $retval, !2 = $tmp_array, !3 = $tmp_val, !4 = $index, !5 = $value
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        ASSIGN                                                   !1, <array>
    5     2        INIT_FCALL                                               'urldecode'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $7      
          5        ASSIGN                                                   !0, $7
    6     6        INIT_FCALL                                               'explode'
          7        SEND_VAL                                                 '%7C%7C'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $9      
         10        ASSIGN                                                   !2, $9
    7    11      > FE_RESET_R                                       $11     !2, ->37
         12    > > FE_FETCH_R                                               $11, !3, ->37
    9    13    >   INIT_FCALL                                               'explode'
         14        SEND_VAL                                                 '%7C'
         15        SEND_VAR                                                 !3
         16        DO_ICALL                                         $12     
         17        FETCH_LIST_R                                     $13     $12, 0
         18        ASSIGN                                                   !4, $13
         19        FETCH_LIST_R                                     $15     $12, 1
         20        ASSIGN                                                   !5, $15
         21        FREE                                                     $12
   10    22        INIT_FCALL                                               'base64_decode'
         23        INIT_FCALL                                               'urldecode'
         24        SEND_VAR                                                 !4
         25        DO_ICALL                                         $17     
         26        SEND_VAR                                                 $17
         27        DO_ICALL                                         $18     
         28        INIT_FCALL                                               'base64_decode'
         29        INIT_FCALL                                               'urldecode'
         30        SEND_VAR                                                 !5
         31        DO_ICALL                                         $20     
         32        SEND_VAR                                                 $20
         33        DO_ICALL                                         $21     
         34        ASSIGN_DIM                                               !1, $18
         35        OP_DATA                                                  $21
    7    36      > JMP                                                      ->12
         37    >   FE_FREE                                                  $11
   12    38      > RETURN                                                   !1
   13    39*     > RETURN                                                   null

End of function string_to_array

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.94 ms | 1400 KiB | 19 Q