3v4l.org

run code in 300+ PHP versions simultaneously
<?php $query = "my=apples&are=green+and+red"; foreach (explode('&', $query) as $chunk) { $param = explode("=", $chunk); if ($param) { printf("Value for parameter \"%s\" is \"%s\"<br/>\n", urldecode($param[0]), urldecode($param[1])); } } ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 27
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 27
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 26
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 26
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/bjnTp
function name:  (null)
number of ops:  29
compiled vars:  !0 = $query, !1 = $chunk, !2 = $param
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'my%3Dapples%26are%3Dgreen%2Band%2Bred'
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '%26'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $4      
          5      > FE_RESET_R                                       $5      $4, ->27
          6    > > FE_FETCH_R                                               $5, !1, ->27
    5     7    >   INIT_FCALL                                               'explode'
          8        SEND_VAL                                                 '%3D'
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $6      
         11        ASSIGN                                                   !2, $6
    7    12      > JMPZ                                                     !2, ->26
    8    13    >   INIT_FCALL                                               'printf'
         14        SEND_VAL                                                 'Value+for+parameter+%22%25s%22+is+%22%25s%22%3Cbr%2F%3E%0A'
         15        INIT_FCALL                                               'urldecode'
         16        FETCH_DIM_R                                      ~8      !2, 0
         17        SEND_VAL                                                 ~8
         18        DO_ICALL                                         $9      
         19        SEND_VAR                                                 $9
         20        INIT_FCALL                                               'urldecode'
         21        FETCH_DIM_R                                      ~10     !2, 1
         22        SEND_VAL                                                 ~10
         23        DO_ICALL                                         $11     
         24        SEND_VAR                                                 $11
         25        DO_ICALL                                                 
    4    26    > > JMP                                                      ->6
         27    >   FE_FREE                                                  $5
   11    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.91 ms | 1396 KiB | 19 Q