3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mainArray = array ( 0 => array ( 'name' => 'bf_1040242[326]', 'value' => 'Just some Information. Additional Text', ), 1 => array ( 'name' => 'bf_1040242[17565][]', 'value' => '2', ), 2 => array ( 'name' => 'bf_1040242[17565][]', 'value' => '1', ), 3 => array ( 'name' => 'bf_1040242[17565][]', 'value' => '3', ), 4 => array ( 'name' => 'bf_1040242[other][17565]', 'value' => 'Testing', ), 5 => array ( 'name' => 'bf_1040242[597]', 'value' => '1', ), 6 => array ( 'name' => 'bf_1040242[327]', 'value' => 'This is some text', ), 7 => array ( 'name' => 'bf_1040242[328]', 'value' => 'asdasd', ), 8 => array ( 'name' => 'bf_1040242[11880]', 'value' => 'wwwww', ), 9 => array ( 'name' => 'bf_1040242[329]', 'value' => 'xxxxx', ), 10 => array ( 'name' => 'bf_1040242[28622]', 'value' => '2', ), 11 => array ( 'name' => 'bf_1040242[other][28623]', 'value' => '', ), 12 => array ( 'name' => 'bf_1040242[42283]', 'value' => '1', ), 13 => array ( 'name' => 'bf_1040242[42284][]', 'value' => '2', ), 14 => array ( 'name' => 'bf_1040242[42284][]', 'value' => '3', ), 15 => array ( 'name' => 'bf_1040242[42284][]', 'value' => '4', ), 16 => array ( 'name' => 'bf_1040242[other][42284]', 'value' => 'Something Else', ), 17 => array ( 'name' => 'bf_1040242[other][evil]', 'value' => 'EVIL \' & VALUE', ), ); foreach ($mainArray as $entry) { $stringVarArray[] = $entry['name'] . '=' . urlencode($entry['value']); } parse_str(implode('&', $stringVarArray), $result); var_dump($result);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 13
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 13
Branch analysis from position: 3
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 13
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
filename:       /in/q0smO
function name:  (null)
number of ops:  26
compiled vars:  !0 = $mainArray, !1 = $entry, !2 = $stringVarArray, !3 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   96     1      > FE_RESET_R                                       $5      !0, ->13
          2    > > FE_FETCH_R                                               $5, !1, ->13
   98     3    >   FETCH_DIM_R                                      ~7      !1, 'name'
          4        CONCAT                                           ~8      ~7, '%3D'
          5        INIT_FCALL                                               'urlencode'
          6        FETCH_DIM_R                                      ~9      !1, 'value'
          7        SEND_VAL                                                 ~9
          8        DO_ICALL                                         $10     
          9        CONCAT                                           ~11     ~8, $10
         10        ASSIGN_DIM                                               !2
         11        OP_DATA                                                  ~11
   96    12      > JMP                                                      ->2
         13    >   FE_FREE                                                  $5
  100    14        INIT_FCALL                                               'parse_str'
         15        INIT_FCALL                                               'implode'
         16        SEND_VAL                                                 '%26'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                         $12     
         19        SEND_VAR                                                 $12
         20        SEND_REF                                                 !3
         21        DO_ICALL                                                 
  102    22        INIT_FCALL                                               'var_dump'
         23        SEND_VAR                                                 !3
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.4 ms | 1013 KiB | 17 Q