3v4l.org

run code in 300+ PHP versions simultaneously
<?php $object1 = new \stdClass; var_dump($object1); $object2 = new \stdClass; var_dump($object2); echo ($object1 == $object2) ? 'Same object' : 'Not the same object';
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 16
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8YI7T
function name:  (null)
number of ops:  19
compiled vars:  !0 = $object1, !1 = $object2
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        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                                 
    5     6        NEW                                              $6      'stdClass'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $6
    6     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                                 
    8    12        IS_EQUAL                                                 !0, !1
         13      > JMPZ                                                     ~10, ->16
         14    >   QM_ASSIGN                                        ~11     'Same+object'
         15      > JMP                                                      ->17
         16    >   QM_ASSIGN                                        ~11     'Not+the+same+object'
         17    >   ECHO                                                     ~11
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.45 ms | 1395 KiB | 15 Q