3v4l.org

run code in 300+ PHP versions simultaneously
<?php $mylist = new SplDoublyLinkedList(); array_push($mylist, 'doubly', 'linked', '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/qTRqV
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        INIT_FCALL                                               'array_push'
          4        SEND_REF                                                 !0
          5        SEND_VAL                                                 'doubly'
          6        SEND_VAL                                                 'linked'
          7        SEND_VAL                                                 'list'
          8        DO_ICALL                                                 
    7     9        INIT_METHOD_CALL                                         !0, 'rewind'
         10        DO_FCALL                                      0          
    9    11      > JMP                                                      ->18
   10    12    >   INIT_METHOD_CALL                                         !0, 'current'
         13        DO_FCALL                                      0  $6      
         14        ECHO                                                     $6
         15        ECHO                                                     '%3Chr%3E'
   11    16        INIT_METHOD_CALL                                         !0, 'next'
         17        DO_FCALL                                      0          
    9    18    >   INIT_METHOD_CALL                                         !0, 'valid'
         19        DO_FCALL                                      0  $8      
         20      > JMPNZ                                                    $8, ->12
   12    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.14 ms | 1395 KiB | 15 Q