3v4l.org

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

Class Foo: [no user functions]
Class Bar: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.03 ms | 1386 KiB | 15 Q