3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = (object) [ "test" => "harr" ]; $condition = empty($arr->notHere); $out = ($condition) ? "horraaa" : "nope"; echo $out;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/E31js
function name:  (null)
number of ops:  11
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        ISSET_ISEMPTY_PROP_OBJ                           ~5      !0, 'notHere'
          3        ASSIGN                                                   !1, ~5
    8     4      > JMPZ                                                     !1, ->7
          5    >   QM_ASSIGN                                        ~7      'horraaa'
          6      > JMP                                                      ->8
          7    >   QM_ASSIGN                                        ~7      'nope'
          8    >   ASSIGN                                                   !2, ~7
   10     9        ECHO                                                     !2
         10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.9 ms | 1393 KiB | 13 Q