3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.91 ms | 1394 KiB | 13 Q