3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* * Examples of DoublyLinkedList */ $obj = new SplDoublyLinkedList(); // Check wither linked list is empty if ($obj->isEmpty()) { echo "Adding nodes to Linked List<br>\r\n"; $obj->push(2); $obj->push(3); echo "Adding the node at beginning of doubly linked list <br>\r\n"; $obj->unshift(10); } echo "<br>Our Linked List:"; print_r($obj); echo "<br>Pick the node from beginning of doubly linked list \r\n"; echo $obj->bottom();
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 17
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/nNFMp
function name:  (null)
number of ops:  26
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'SplDoublyLinkedList'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   11     3        INIT_METHOD_CALL                                         !0, 'isEmpty'
          4        DO_FCALL                                      0  $4      
          5      > JMPZ                                                     $4, ->17
   13     6    >   ECHO                                                     'Adding+nodes+to+Linked+List%3Cbr%3E%0D%0A'
   14     7        INIT_METHOD_CALL                                         !0, 'push'
          8        SEND_VAL_EX                                              2
          9        DO_FCALL                                      0          
   15    10        INIT_METHOD_CALL                                         !0, 'push'
         11        SEND_VAL_EX                                              3
         12        DO_FCALL                                      0          
   17    13        ECHO                                                     'Adding+the+node+at+beginning+of+doubly+linked+list+%3Cbr%3E%0D%0A'
   18    14        INIT_METHOD_CALL                                         !0, 'unshift'
         15        SEND_VAL_EX                                              10
         16        DO_FCALL                                      0          
   21    17    >   ECHO                                                     '%3Cbr%3EOur+Linked+List%3A'
   22    18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
   24    21        ECHO                                                     '%3Cbr%3EPick+the+node+from+beginning+of+doubly+linked+list+%0D%0A'
   25    22        INIT_METHOD_CALL                                         !0, 'bottom'
         23        DO_FCALL                                      0  $9      
         24        ECHO                                                     $9
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.1 ms | 1395 KiB | 15 Q