3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=array ( 'v' => array ( 0 => array ( 0 => 'v0_0', 1 => 'v0_1', 2 => 'v0_2', ), 1 => array ( 0 => 'v1_0', 1 => 'v1_1', 2 => 'v1_2', ), 2 => array ( 0 => 'v2_0', 1 => 'v2_1', 2 => 'v2_2', ), ), ); $it = new RecursiveIteratorIterator(new RecursiveArrayIterator($a)); echo count(iterator_to_array( $it, true));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Luank
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $it
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   27     1        NEW                                              $3      'RecursiveIteratorIterator'
          2        NEW                                              $4      'RecursiveArrayIterator'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
          5        SEND_VAR_NO_REF_EX                                       $4
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $3
   28     8        INIT_FCALL                                               'iterator_to_array'
          9        SEND_VAR                                                 !1
         10        SEND_VAL                                                 <true>
         11        DO_ICALL                                         $8      
         12        COUNT                                            ~9      $8
         13        ECHO                                                     ~9
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.87 ms | 1394 KiB | 15 Q