3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = (object) [ "test" => "harr" ]; $condition = empty($arr->notHere->two); $out = ($condition) ? "horraaa" : "nope"; echo $out;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YoRhD
function name:  (null)
number of ops:  12
compiled vars:  !0 = $arr, !1 = $condition, !2 = $out
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   CAST                                          8  ~3      <array>
    3     1        ASSIGN                                                   !0, ~3
    6     2        FETCH_OBJ_IS                                     ~5      !0, 'notHere'
          3        ISSET_ISEMPTY_PROP_OBJ                           ~6      ~5, 'two'
          4        ASSIGN                                                   !1, ~6
    8     5      > JMPZ                                                     !1, ->8
          6    >   QM_ASSIGN                                        ~8      'horraaa'
          7      > JMP                                                      ->9
          8    >   QM_ASSIGN                                        ~8      'nope'
          9    >   ASSIGN                                                   !2, ~8
   10    10        ECHO                                                     !2
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.02 ms | 1384 KiB | 13 Q