3v4l.org

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

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.37 ms | 1386 KiB | 15 Q