3v4l.org

run code in 300+ PHP versions simultaneously
<?php if ($doesNotEsit ?? false && false) { var_dump(1); // ok we don't go here } $doesExist = true; if ($doesExist ?? false && false) { var_dump('2'); // AILLE, we go here } $doesExist = true; if (($doesExist ?? false) && false) { var_dump('3'); // Ok, we are safe now }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 6
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
2 jumps found. (Code = 46) Position 1 = 17, Position 2 = 18
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 22
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
Branch analysis from position: 18
Branch analysis from position: 13
Branch analysis from position: 6
filename:       /in/ouumr
function name:  (null)
number of ops:  23
compiled vars:  !0 = $doesNotEsit, !1 = $doesExist
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   COALESCE                                         ~2      !0
          1        QM_ASSIGN                                        ~2      <false>
          2      > JMPZ                                                     ~2, ->6
    5     3    >   INIT_FCALL                                               'var_dump'
          4        SEND_VAL                                                 1
          5        DO_ICALL                                                 
    8     6    >   ASSIGN                                                   !1, <true>
    9     7        COALESCE                                         ~5      !1
          8        QM_ASSIGN                                        ~5      <false>
          9      > JMPZ                                                     ~5, ->13
   10    10    >   INIT_FCALL                                               'var_dump'
         11        SEND_VAL                                                 '2'
         12        DO_ICALL                                                 
   13    13    >   ASSIGN                                                   !1, <true>
   14    14        COALESCE                                         ~8      !1
         15        QM_ASSIGN                                        ~8      <false>
         16      > JMPZ_EX                                          ~8      ~8, ->18
         17    >   BOOL                                             ~8      <false>
         18    > > JMPZ                                                     ~8, ->22
   15    19    >   INIT_FCALL                                               'var_dump'
         20        SEND_VAL                                                 '3'
         21        DO_ICALL                                                 
   16    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.88 ms | 979 KiB | 14 Q