3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdClass(); $a->a = 1; $b = new stdClass(); echo (bool) $a == $b; echo (bool) $a === $b;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OTvfg
function name:  (null)
number of ops:  15
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    3     3        ASSIGN_OBJ                                               !0, 'a'
          4        OP_DATA                                                  1
    5     5        NEW                                              $6      'stdClass'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !1, $6
    7     8        BOOL                                             ~9      !0
          9        IS_EQUAL                                         ~10     !1, ~9
         10        ECHO                                                     ~10
    9    11        BOOL                                             ~11     !0
         12        IS_IDENTICAL                                     ~12     !1, ~11
         13        ECHO                                                     ~12
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.89 ms | 1393 KiB | 13 Q