3v4l.org

run code in 300+ PHP versions simultaneously
<?php function query(array $payload) { $query = ''; foreach ($payload as $key => $value) { if (is_array($value)) { } } return $query; } $payload = ['name' => ['asdf'], 'id' => [1,2,3,4]]; var_dump(urldecode(query($payload)));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4hTks
function name:  (null)
number of ops:  11
compiled vars:  !0 = $payload
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   ASSIGN                                                   !0, <array>
   16     1        INIT_FCALL                                               'var_dump'
          2        INIT_FCALL                                               'urldecode'
          3        INIT_FCALL                                               'query'
          4        SEND_VAR                                                 !0
          5        DO_FCALL                                      0  $2      
          6        SEND_VAR                                                 $2
          7        DO_ICALL                                         $3      
          8        SEND_VAR                                                 $3
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Function query:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 7
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 7
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/4hTks
function name:  query
number of ops:  11
compiled vars:  !0 = $payload, !1 = $query, !2 = $value, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ASSIGN                                                   !1, ''
    5     2      > FE_RESET_R                                       $5      !0, ->8
          3    > > FE_FETCH_R                                       ~6      $5, !2, ->8
          4    >   ASSIGN                                                   !3, ~6
    6     5        TYPE_CHECK                                  128          !2
          6      > JMPZ                                                     ~8, ->7
    5     7    > > JMP                                                      ->3
          8    >   FE_FREE                                                  $5
   11     9      > RETURN                                                   !1
   12    10*     > RETURN                                                   null

End of function query

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194.96 ms | 1397 KiB | 18 Q