3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Node { /** @var Node */ public $previous; /** @var Node */ public $next; } $firstNode = new Node(); $firstNode->previous = $firstNode; $firstNode->next = $firstNode; $circularDoublyLinkedList = $firstNode; var_dump(gc_enabled()); for ($i = 0; $i < 160000; $i++) { $currentNode = $circularDoublyLinkedList; $nextNode = $circularDoublyLinkedList->next; $newNode = new Node(); $newNode->previous = $currentNode; $currentNode->next = $newNode; $newNode->next = $nextNode; $nextNode->previous = $newNode; $circularDoublyLinkedList = $nextNode; } var_dump('this line will not be reached');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 15
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 33, Position 2 = 15
Branch analysis from position: 33
Branch analysis from position: 15
filename:       /in/EJCaI
function name:  (null)
number of ops:  37
compiled vars:  !0 = $firstNode, !1 = $circularDoublyLinkedList, !2 = $i, !3 = $currentNode, !4 = $nextNode, !5 = $newNode
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $6      'Node'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $6
   12     3        ASSIGN_OBJ                                               !0, 'previous'
          4        OP_DATA                                                  !0
   13     5        ASSIGN_OBJ                                               !0, 'next'
          6        OP_DATA                                                  !0
   15     7        ASSIGN                                                   !1, !0
   17     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'gc_enabled'
         10        DO_ICALL                                         $12     
         11        SEND_VAR                                                 $12
         12        DO_ICALL                                                 
   19    13        ASSIGN                                                   !2, 0
         14      > JMP                                                      ->31
   20    15    >   ASSIGN                                                   !3, !1
   21    16        FETCH_OBJ_R                                      ~16     !1, 'next'
         17        ASSIGN                                                   !4, ~16
   23    18        NEW                                              $18     'Node'
         19        DO_FCALL                                      0          
         20        ASSIGN                                                   !5, $18
   25    21        ASSIGN_OBJ                                               !5, 'previous'
         22        OP_DATA                                                  !3
   26    23        ASSIGN_OBJ                                               !3, 'next'
         24        OP_DATA                                                  !5
   27    25        ASSIGN_OBJ                                               !5, 'next'
         26        OP_DATA                                                  !4
   28    27        ASSIGN_OBJ                                               !4, 'previous'
         28        OP_DATA                                                  !5
   30    29        ASSIGN                                                   !1, !4
   19    30        PRE_INC                                                  !2
         31    >   IS_SMALLER                                               !2, 160000
         32      > JMPNZ                                                    ~27, ->15
   33    33    >   INIT_FCALL                                               'var_dump'
         34        SEND_VAL                                                 'this+line+will+not+be+reached'
         35        DO_ICALL                                                 
         36      > RETURN                                                   1

Class Node: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.65 ms | 941 KiB | 18 Q