3v4l.org

run code in 300+ PHP versions simultaneously
<?php $information = array("login" => "someUsername", "password" => "somePassword", "card_pin"=>"card_1234", "pin"=>"pin_356", "iin" => "iin_123", "shipping" => array("telephone" => "telephone_998"), "cardnumber" => "card_number_876", "customer_id" => "customer_654", "telephone" => "someOtherTelephoneNumber555"); $json = JSON.stringify($information); $jsonIterator = new RecursiveIteratorIterator( new RecursiveArrayIterator(json_decode($json, TRUE)), RecursiveIteratorIterator::SELF_FIRST); foreach ($jsonIterator as $key => $val) { if(is_array($val)) { echo "$key:\n"; } else { echo "$key => $val\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 20, Position 2 = 34
Branch analysis from position: 20
2 jumps found. (Code = 78) Position 1 = 21, Position 2 = 34
Branch analysis from position: 21
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 28
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 28
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
filename:       /in/KTPpk
function name:  (null)
number of ops:  36
compiled vars:  !0 = $information, !1 = $json, !2 = $jsonIterator, !3 = $val, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   13     1        FETCH_CONSTANT                                   ~6      'JSON'
          2        INIT_FCALL_BY_NAME                                       'stringify'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0  $7      
          5        CONCAT                                           ~8      ~6, $7
          6        ASSIGN                                                   !1, ~8
   15     7        NEW                                              $10     'RecursiveIteratorIterator'
   16     8        NEW                                              $11     'RecursiveArrayIterator'
          9        INIT_FCALL                                               'json_decode'
         10        SEND_VAR                                                 !1
         11        SEND_VAL                                                 <true>
         12        DO_ICALL                                         $12     
         13        SEND_VAR_NO_REF_EX                                       $12
         14        DO_FCALL                                      0          
         15        SEND_VAR_NO_REF_EX                                       $11
   17    16        SEND_VAL_EX                                              1
         17        DO_FCALL                                      0          
   15    18        ASSIGN                                                   !2, $10
   19    19      > FE_RESET_R                                       $16     !2, ->34
         20    > > FE_FETCH_R                                       ~17     $16, !3, ->34
         21    >   ASSIGN                                                   !4, ~17
   20    22        TYPE_CHECK                                  128          !3
         23      > JMPZ                                                     ~19, ->28
   21    24    >   NOP                                                      
         25        FAST_CONCAT                                      ~20     !4, '%3A%0A'
         26        ECHO                                                     ~20
         27      > JMP                                                      ->33
   23    28    >   ROPE_INIT                                     4  ~22     !4
         29        ROPE_ADD                                      1  ~22     ~22, '+%3D%3E+'
         30        ROPE_ADD                                      2  ~22     ~22, !3
         31        ROPE_END                                      3  ~21     ~22, '%0A'
         32        ECHO                                                     ~21
   19    33    > > JMP                                                      ->20
         34    >   FE_FREE                                                  $16
   25    35      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.93 ms | 1396 KiB | 15 Q