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(); $b->x = new Bar(); print_r($a == $b); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/HP0o9
function name:  (null)
number of ops:  19
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        NEW                                              $12     'Bar'
         11        DO_FCALL                                      0          
         12        ASSIGN_OBJ                                               !1, 'x'
         13        OP_DATA                                                  $12
   16    14        INIT_FCALL                                               'print_r'
         15        IS_EQUAL                                         ~14     !0, !1
         16        SEND_VAL                                                 ~14
         17        DO_ICALL                                                 
   17    18      > RETURN                                                   1

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.55 ms | 1394 KiB | 15 Q