3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo; $bar; $baz = 2; echo($foo ?? $bar); echo((isset($foo) && $foo !== null) ? $foo : $bar);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
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
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/gkrmQ
function name:  (null)
number of ops:  14
compiled vars:  !0 = $foo, !1 = $bar, !2 = $baz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !2, 2
    5     1        COALESCE                                         ~4      !0
          2        QM_ASSIGN                                        ~4      !1
          3        ECHO                                                     ~4
    6     4        ISSET_ISEMPTY_CV                                 ~5      !0
          5      > JMPZ_EX                                          ~5      ~5, ->8
          6    >   TYPE_CHECK                                  1020  ~6      !0
          7        BOOL                                             ~5      ~6
          8    > > JMPZ                                                     ~5, ->11
          9    >   QM_ASSIGN                                        ~7      !0
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~7      !1
         12    >   ECHO                                                     ~7
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.41 ms | 1397 KiB | 13 Q