3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = new stdclass(); $a->foo = "bar"; $b = clone $a; echo $a == $b?"oui":"non"; echo $a === $b?"oui":"non";
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 11
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
Branch analysis from position: 17
filename:       /in/frn1h
function name:  (null)
number of ops:  20
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, 'foo'
          4        OP_DATA                                                  'bar'
    4     5        CLONE                                            ~6      !0
          6        ASSIGN                                                   !1, ~6
    5     7        IS_EQUAL                                                 !0, !1
          8      > JMPZ                                                     ~8, ->11
          9    >   QM_ASSIGN                                        ~9      'oui'
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~9      'non'
         12    >   ECHO                                                     ~9
    6    13        IS_IDENTICAL                                             !0, !1
         14      > JMPZ                                                     ~10, ->17
         15    >   QM_ASSIGN                                        ~11     'oui'
         16      > JMP                                                      ->18
         17    >   QM_ASSIGN                                        ~11     'non'
         18    >   ECHO                                                     ~11
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.38 ms | 1385 KiB | 13 Q