3v4l.org

run code in 300+ PHP versions simultaneously
<?php $foo; $bar; $baz = 2; echo($foo ?? $bar ?? $baz); echo((isset($foo) && $foo !== null) ? $foo : ((isset($bar) && $bar !== null) ? $bar : $baz));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 13
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
2 jumps found. (Code = 46) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 20
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 21
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
Branch analysis from position: 10
filename:       /in/GVIgW
function name:  (null)
number of ops:  24
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        COALESCE                                         ~5      !1
          3        QM_ASSIGN                                        ~5      !2
          4        QM_ASSIGN                                        ~4      ~5
          5        ECHO                                                     ~4
    6     6        ISSET_ISEMPTY_CV                                 ~6      !0
          7      > JMPZ_EX                                          ~6      ~6, ->10
          8    >   TYPE_CHECK                                  1020  ~7      !0
          9        BOOL                                             ~6      ~7
         10    > > JMPZ                                                     ~6, ->13
         11    >   QM_ASSIGN                                        ~8      !0
         12      > JMP                                                      ->22
         13    >   ISSET_ISEMPTY_CV                                 ~9      !1
         14      > JMPZ_EX                                          ~9      ~9, ->17
         15    >   TYPE_CHECK                                  1020  ~10     !1
         16        BOOL                                             ~9      ~10
         17    > > JMPZ                                                     ~9, ->20
         18    >   QM_ASSIGN                                        ~11     !1
         19      > JMP                                                      ->21
         20    >   QM_ASSIGN                                        ~11     !2
         21    >   QM_ASSIGN                                        ~8      ~11
         22    >   ECHO                                                     ~8
         23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.3 ms | 1395 KiB | 13 Q