3v4l.org

run code in 500+ PHP versions simultaneously
<?php $date = array("08.2018", "08.2018", "08.2018"); $time = array("09:30", "10:30", "11:30"); $message = array("a", "b", "c"); //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]; echo $i[1]; echo $i[2]; echo PHP_EOL; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 25, Position 2 = 34
Branch analysis from position: 25
2 jumps found. (Code = 78) Position 1 = 26, Position 2 = 34
Branch analysis from position: 26
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
Branch analysis from position: 34
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 34
filename:       /in/gP6vm
function name:  (null)
number of ops:  36
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, ->34
         25    > > FE_FETCH_R                                                   $20, !4, ->34
   17    26    >   FETCH_DIM_R                                          ~21     !4, 0
         27        ECHO                                                         ~21
   18    28        FETCH_DIM_R                                          ~22     !4, 1
         29        ECHO                                                         ~22
   19    30        FETCH_DIM_R                                          ~23     !4, 2
         31        ECHO                                                         ~23
   20    32        ECHO                                                         '%0A'
   15    33      > JMP                                                          ->25
         34    >   FE_FREE                                                      $20
   21    35      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.39 ms | 2038 KiB | 13 Q