3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = array( 'aM' => array ( 0 => array ( 'iId' => 0, 'iTime' => 00 ), 1 => Array ( 'iId' => 1, 'iTime' => 11 ), 2 => array ( 'iId' => 2, 'iTime' => 22 ), ), 'aN' => array ( 0 => array ( 'sName' => 'a' ), 1 => array ( 'sName' => 'b' ), 2 => array ( 'sName' => 'v' ), ) ); $aM = $array['aM']; $aN = $array['aN']; $iter = new MultipleIterator; $iter->attachIterator( new ArrayIterator( $aM)); $iter->attachIterator( new ArrayIterator( $aN)); foreach( $iter as $data) { list( $a, $b) = $data; echo $a['iId'] . ' ' . $b['sName'] . ','; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 21, Position 2 = 35
Branch analysis from position: 21
2 jumps found. (Code = 78) Position 1 = 22, Position 2 = 35
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
filename:       /in/gj7nr
function name:  (null)
number of ops:  37
compiled vars:  !0 = $array, !1 = $aM, !2 = $aN, !3 = $iter, !4 = $data, !5 = $a, !6 = $b
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                       !0, <array>
   43     1        FETCH_DIM_R                                          ~8      !0, 'aM'
          2        ASSIGN                                                       !1, ~8
   44     3        FETCH_DIM_R                                          ~10     !0, 'aN'
          4        ASSIGN                                                       !2, ~10
   46     5        NEW                                                  $12     'MultipleIterator'
          6        DO_FCALL                                          0          
          7        ASSIGN                                                       !3, $12
   47     8        INIT_METHOD_CALL                                             !3, 'attachIterator'
          9        NEW                                                  $15     'ArrayIterator'
         10        SEND_VAR_EX                                                  !1
         11        DO_FCALL                                          0          
         12        SEND_VAR_NO_REF_EX                                           $15
         13        DO_FCALL                                          0          
   48    14        INIT_METHOD_CALL                                             !3, 'attachIterator'
         15        NEW                                                  $18     'ArrayIterator'
         16        SEND_VAR_EX                                                  !2
         17        DO_FCALL                                          0          
         18        SEND_VAR_NO_REF_EX                                           $18
         19        DO_FCALL                                          0          
   50    20      > FE_RESET_R                                           $21     !3, ->35
         21    > > FE_FETCH_R                                                   $21, !4, ->35
   51    22    >   QM_ASSIGN                                            ~22     !4
         23        FETCH_LIST_R                                         $23     ~22, 0
         24        ASSIGN                                                       !5, $23
         25        FETCH_LIST_R                                         $25     ~22, 1
         26        ASSIGN                                                       !6, $25
         27        FREE                                                         ~22
   52    28        FETCH_DIM_R                                          ~27     !5, 'iId'
         29        CONCAT                                               ~28     ~27, '+'
         30        FETCH_DIM_R                                          ~29     !6, 'sName'
         31        CONCAT                                               ~30     ~28, ~29
         32        CONCAT                                               ~31     ~30, '%2C'
         33        ECHO                                                         ~31
   50    34      > JMP                                                          ->21
         35    >   FE_FREE                                                      $21
   53    36      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
200.02 ms | 3106 KiB | 13 Q