3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = array([1],[2]); $time = array([3],[4]); $message = array([5],[6]); //this are my arrays that are filled from mysql result and this works in this arrays all is all data. $iterator = new MultipleIterator(); $iterator->attachIterator(new ArrayIterator($date)); $iterator->attachIterator(new ArrayIterator($time)); $iterator->attachIterator(new ArrayIterator($message)); foreach($iterator as $i) { echo $i[0][0]; echo $i[1][0]; echo $i[2][0]; echo PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 25, Position 2 = 37
Branch analysis from position: 25
2 jumps found. (Code = 78) Position 1 = 26, Position 2 = 37
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 37
filename:       /in/nW8hC
function name:  (null)
number of ops:  39
compiled vars:  !0 = $date, !1 = $time, !2 = $message, !3 = $iterator, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN                                                   !2, <array>
    9     3        NEW                                              $8      'MultipleIterator'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !3, $8
   10     6        INIT_METHOD_CALL                                         !3, 'attachIterator'
          7        NEW                                              $11     'ArrayIterator'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
         10        SEND_VAR_NO_REF_EX                                       $11
         11        DO_FCALL                                      0          
   11    12        INIT_METHOD_CALL                                         !3, 'attachIterator'
         13        NEW                                              $14     'ArrayIterator'
         14        SEND_VAR_EX                                              !1
         15        DO_FCALL                                      0          
         16        SEND_VAR_NO_REF_EX                                       $14
         17        DO_FCALL                                      0          
   12    18        INIT_METHOD_CALL                                         !3, 'attachIterator'
         19        NEW                                              $17     'ArrayIterator'
         20        SEND_VAR_EX                                              !2
         21        DO_FCALL                                      0          
         22        SEND_VAR_NO_REF_EX                                       $17
         23        DO_FCALL                                      0          
   15    24      > FE_RESET_R                                       $20     !3, ->37
         25    > > FE_FETCH_R                                               $20, !4, ->37
   17    26    >   FETCH_DIM_R                                      ~21     !4, 0
         27        FETCH_DIM_R                                      ~22     ~21, 0
         28        ECHO                                                     ~22
   18    29        FETCH_DIM_R                                      ~23     !4, 1
         30        FETCH_DIM_R                                      ~24     ~23, 0
         31        ECHO                                                     ~24
   19    32        FETCH_DIM_R                                      ~25     !4, 2
         33        FETCH_DIM_R                                      ~26     ~25, 0
         34        ECHO                                                     ~26
   20    35        ECHO                                                     '%0A'
   15    36      > JMP                                                      ->25
         37    >   FE_FREE                                                  $20
   21    38      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.21 ms | 996 KiB | 13 Q