3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Node {} $firstNode = new Node(); $circularDoublyLinkedList = $firstNode; for ($i = 0; $i < 200000; $i++) { $currentNode = $circularDoublyLinkedList; $nextNode = $circularDoublyLinkedList->next; $newNode = new Node(); $currentNode->next = $newNode; $newNode->next = $nextNode; }

Abusive script

This script was stopped while abusing our resources

Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 6
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 6
Branch analysis from position: 19
Branch analysis from position: 6
filename:       /in/BMkWi
function name:  (null)
number of ops:  20
compiled vars:  !0 = $firstNode, !1 = $circularDoublyLinkedList, !2 = $i, !3 = $currentNode, !4 = $nextNode, !5 = $newNode
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   NEW                                              $6      'Node'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $6
    5     3        ASSIGN                                                   !1, !0
    6     4        ASSIGN                                                   !2, 0
          5      > JMP                                                      ->17
    7     6    >   ASSIGN                                                   !3, !1
    8     7        FETCH_OBJ_R                                      ~12     !1, 'next'
          8        ASSIGN                                                   !4, ~12
    9     9        NEW                                              $14     'Node'
         10        DO_FCALL                                      0          
         11        ASSIGN                                                   !5, $14
   10    12        ASSIGN_OBJ                                               !3, 'next'
         13        OP_DATA                                                  !5
   11    14        ASSIGN_OBJ                                               !5, 'next'
         15        OP_DATA                                                  !4
    6    16        PRE_INC                                                  !2
         17    >   IS_SMALLER                                               !2, 200000
         18      > JMPNZ                                                    ~20, ->6
   12    19    > > RETURN                                                   1

Class Node: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.8 ms | 998 KiB | 13 Q