3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.02 ms | 1394 KiB | 15 Q