3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = ['$and'=> ['task.discriminator' => 'filippo', 'status.deleted' => 'asdf']]; $iterator = new RecursiveIteratorIterator(new RecursiveArrayIterator($arr)); $keys = array(); foreach ($iterator as $key => $value) { $keys[] = $key; } var_export($keys);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 15
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/YhEDR
function name:  (null)
number of ops:  20
compiled vars:  !0 = $arr, !1 = $iterator, !2 = $keys, !3 = $value, !4 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    5     1        NEW                                              $6      'RecursiveIteratorIterator'
          2        NEW                                              $7      'RecursiveArrayIterator'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
          5        SEND_VAR_NO_REF_EX                                       $7
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $6
    6     8        ASSIGN                                                   !2, <array>
    7     9      > FE_RESET_R                                       $12     !1, ->15
         10    > > FE_FETCH_R                                       ~13     $12, !3, ->15
         11    >   ASSIGN                                                   !4, ~13
    9    12        ASSIGN_DIM                                               !2
         13        OP_DATA                                                  !4
    7    14      > JMP                                                      ->10
         15    >   FE_FREE                                                  $12
   11    16        INIT_FCALL                                               'var_export'
         17        SEND_VAR                                                 !2
         18        DO_ICALL                                                 
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.15 ms | 1399 KiB | 15 Q