3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj1 = (object)array('foo' => 1); function get() { return null; } $obj2 = get() ?: $obj1; echo (int)($obj1 === $obj2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M8LUm
function name:  (null)
number of ops:  11
compiled vars:  !0 = $obj1, !1 = $obj2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   CAST                                          8  ~2      <array>
          1        ASSIGN                                                   !0, ~2
    7     2        INIT_FCALL                                               'get'
          3        DO_FCALL                                      0  $4      
          4        JMP_SET                                          ~5      $4, ->6
          5        QM_ASSIGN                                        ~5      !0
          6        ASSIGN                                                   !1, ~5
    9     7        IS_IDENTICAL                                     ~7      !0, !1
          8        CAST                                          4  ~8      ~7
          9        ECHO                                                     ~8
         10      > RETURN                                                   1

Function get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/M8LUm
function name:  get
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   null
          1*     > RETURN                                                   null

End of function get

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
136.62 ms | 1397 KiB | 14 Q