3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo; $bar = 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/YrQq7
function name:  (null)
number of ops:  14
compiled vars:  !0 = $foo, !1 = $bar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !1, 2
    4     1        COALESCE                                         ~3      !0
          2        QM_ASSIGN                                        ~3      !1
          3        ECHO                                                     ~3
    5     4        ISSET_ISEMPTY_CV                                 ~4      !0
          5      > JMPZ_EX                                          ~4      ~4, ->8
          6    >   TYPE_CHECK                                  1020  ~5      !0
          7        BOOL                                             ~4      ~5
          8    > > JMPZ                                                     ~4, ->11
          9    >   QM_ASSIGN                                        ~6      !0
         10      > JMP                                                      ->12
         11    >   QM_ASSIGN                                        ~6      !1
         12    >   ECHO                                                     ~6
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.95 ms | 1393 KiB | 13 Q