3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { } class B { } $a = new A; $b = new B; $c = new A; var_dump($a == $a); var_dump($a == $b); var_dump($a == $c);
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/QYoq0
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
   7     1        NOP                                                      
  11     2        NEW                                              $5      :-6
         3        DO_FCALL                                      0          
         4        ASSIGN                                                   !0, $5
  12     5        NEW                                              $8      :-4
         6        DO_FCALL                                      0          
         7        ASSIGN                                                   !1, $8
  13     8        NEW                                              $11     :-2
         9        DO_FCALL                                      0          
        10        ASSIGN                                                   !2, $11
  15    11        INIT_FCALL                                               'var_dump'
        12        IS_EQUAL                                         ~14     !0, !0
        13        SEND_VAL                                                 ~14
        14        DO_ICALL                                                 
  16    15        INIT_FCALL                                               'var_dump'
        16        IS_EQUAL                                         ~16     !0, !1
        17        SEND_VAL                                                 ~16
        18        DO_ICALL                                                 
  17    19        INIT_FCALL                                               'var_dump'
        20        IS_EQUAL                                         ~18     !0, !2
        21        SEND_VAL                                                 ~18
        22        DO_ICALL                                                 
        23      > RETURN                                                   1

Class A: [no user functions]
Class B: [no user functions]

Generated using Vulcan Logic Dumper, using php 7.2.0