3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = NULL; $b = FALSE; $c = FALSE; var_dump($a !== NULL ? $a : !$b || $c); var_dump($a !== NULL ? $a : (!$b || $c));
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 6, Position 2 = 8
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 19
2 jumps found. (Code = 47) Position 1 = 21, Position 2 = 22
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
Branch analysis from position: 8
2 jumps found. (Code = 47) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 17, Position 2 = 19
Branch analysis from position: 17
Branch analysis from position: 19
Branch analysis from position: 11
filename:       /in/pOFBH
function name:  (null)
number of ops:  26
compiled vars:  !0 = $a, !1 = $b, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, null
    5     1        ASSIGN                                                   !1, <false>
    6     2        ASSIGN                                                   !2, <false>
    8     3        INIT_FCALL                                               'var_dump'
          4        TYPE_CHECK                                  1020          !0
          5      > JMPZ                                                     ~6, ->8
          6    >   QM_ASSIGN                                        ~7      !0
          7      > JMP                                                      ->12
          8    >   BOOL_NOT                                         ~8      !1
          9      > JMPNZ_EX                                         ~8      ~8, ->11
         10    >   BOOL                                             ~8      !2
         11    >   QM_ASSIGN                                        ~7      ~8
         12    >   SEND_VAL                                                 ~7
         13        DO_ICALL                                                 
    9    14        INIT_FCALL                                               'var_dump'
         15        TYPE_CHECK                                  1020          !0
         16      > JMPZ                                                     ~10, ->19
         17    >   QM_ASSIGN                                        ~11     !0
         18      > JMP                                                      ->23
         19    >   BOOL_NOT                                         ~12     !1
         20      > JMPNZ_EX                                         ~12     ~12, ->22
         21    >   BOOL                                             ~12     !2
         22    >   QM_ASSIGN                                        ~11     ~12
         23    >   SEND_VAL                                                 ~11
         24        DO_ICALL                                                 
         25      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.6 ms | 1396 KiB | 15 Q