3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Node { public $next; public $previous; } $first = new Node(); $first->next = $first; $new = new Node(); $new->previous = $first; $new->next = $first; $first->previous = $new; var_dump($first == $new);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SttGY
function name:  (null)
number of ops:  19
compiled vars:  !0 = $first, !1 = $new
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   NEW                                                  $2      'Node'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $2
    9     3        ASSIGN_OBJ                                                   !0, 'next'
          4        OP_DATA                                                      !0
   11     5        NEW                                                  $6      'Node'
          6        DO_FCALL                                          0          
          7        ASSIGN                                                       !1, $6
   12     8        ASSIGN_OBJ                                                   !1, 'previous'
          9        OP_DATA                                                      !0
   13    10        ASSIGN_OBJ                                                   !1, 'next'
         11        OP_DATA                                                      !0
   14    12        ASSIGN_OBJ                                                   !0, 'previous'
         13        OP_DATA                                                      !1
   16    14        INIT_FCALL                                                   'var_dump'
         15        IS_EQUAL                                             ~12     !0, !1
         16        SEND_VAL                                                     ~12
         17        DO_ICALL                                                     
         18      > RETURN                                                       1

Class Node: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
151.47 ms | 489 KiB | 10 Q