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; $areNotEqual = ($a != $b); echo var_export($areNotEqual, true); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/526Im
function name:  (null)
number of ops:  28
compiled vars:  !0 = $a, !1 = $b, !2 = $areNotEqual
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   NEW                                              $3      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    8     3        NEW                                              $6      'Foo'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $6
    9     6        NEW                                              $10     'Foo'
          7        DO_FCALL                                      0          
          8        ASSIGN_OBJ                                               !0, 'x'
          9        OP_DATA                                                  $10
   10    10        FETCH_OBJ_W                                      $12     !0, 'x'
         11        ASSIGN_OBJ                                               $12, 'x'
         12        OP_DATA                                                  3
   11    13        NEW                                              $15     'Foo'
         14        DO_FCALL                                      0          
         15        ASSIGN_OBJ                                               !1, 'x'
         16        OP_DATA                                                  $15
   12    17        FETCH_OBJ_W                                      $17     !1, 'x'
         18        ASSIGN_OBJ                                               $17, 'x'
         19        OP_DATA                                                  2
   14    20        IS_NOT_EQUAL                                     ~19     !0, !1
         21        ASSIGN                                                   !2, ~19
   16    22        INIT_FCALL                                               'var_export'
         23        SEND_VAR                                                 !2
         24        SEND_VAL                                                 <true>
         25        DO_ICALL                                         $21     
         26        ECHO                                                     $21
   17    27      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.76 ms | 1399 KiB | 15 Q