3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mylist = new SplDoublyLinkedList(); $mylist[] = 'doubly'; $mylist[] = 'linked'; $mylist[] = 'list'; $mylist->rewind(); while($mylist->valid()) { echo $mylist->current(), '<hr>'; $mylist->next(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 12
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 12
Branch analysis from position: 21
Branch analysis from position: 12
filename:       /in/mTqcS
function name:  (null)
number of ops:  22
compiled vars:  !0 = $mylist
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $1      'SplDoublyLinkedList'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    4     3        ASSIGN_DIM                                               !0
          4        OP_DATA                                                  'doubly'
    5     5        ASSIGN_DIM                                               !0
          6        OP_DATA                                                  'linked'
    6     7        ASSIGN_DIM                                               !0
          8        OP_DATA                                                  'list'
    9     9        INIT_METHOD_CALL                                         !0, 'rewind'
         10        DO_FCALL                                      0          
   11    11      > JMP                                                      ->18
   12    12    >   INIT_METHOD_CALL                                         !0, 'current'
         13        DO_FCALL                                      0  $8      
         14        ECHO                                                     $8
         15        ECHO                                                     '%3Chr%3E'
   13    16        INIT_METHOD_CALL                                         !0, 'next'
         17        DO_FCALL                                      0          
   11    18    >   INIT_METHOD_CALL                                         !0, 'valid'
         19        DO_FCALL                                      0  $10     
         20      > JMPNZ                                                    $10, ->12
   14    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.09 ms | 1398 KiB | 13 Q