3v4l.org

run code in 300+ PHP versions simultaneously
<?php $q = new SplQueue(); $q->setIteratorMode(SplDoublyLinkedList::IT_MODE_FIFO); $q->setIteratorMode(SplDoublyLinkedList::IT_MODE_LIFO); $q->enqueue(1); $q->enqueue(2); foreach ($q as $elt) { var_dump($elt); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
2 jumps found. (Code = 78) Position 1 = 17, Position 2 = 21
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 21
filename:       /in/RhYP0
function name:  (null)
number of ops:  23
compiled vars:  !0 = $q, !1 = $elt
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'SplQueue'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        INIT_METHOD_CALL                                         !0, 'setIteratorMode'
          4        SEND_VAL_EX                                              0
          5        DO_FCALL                                      0          
    5     6        INIT_METHOD_CALL                                         !0, 'setIteratorMode'
          7        SEND_VAL_EX                                              2
          8        DO_FCALL                                      0          
    7     9        INIT_METHOD_CALL                                         !0, 'enqueue'
         10        SEND_VAL_EX                                              1
         11        DO_FCALL                                      0          
    8    12        INIT_METHOD_CALL                                         !0, 'enqueue'
         13        SEND_VAL_EX                                              2
         14        DO_FCALL                                      0          
   10    15      > FE_RESET_R                                       $9      !0, ->21
         16    > > FE_FETCH_R                                               $9, !1, ->21
   11    17    >   INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                                 
   10    20      > JMP                                                      ->16
         21    >   FE_FREE                                                  $9
   12    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173 ms | 1395 KiB | 15 Q