3v4l.org

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

Class Node: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
135.59 ms | 998 KiB | 14 Q