3v4l.org

run code in 300+ PHP versions simultaneously
<?php $company = ''; $fn = ''; $ln = ''; if (empty($company) && (!empty($fn) && !empty($ln))) { echo 'error'; } else { echo 'good'; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 12
Branch analysis from position: 5
2 jumps found. (Code = 46) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
Branch analysis from position: 12
filename:       /in/9a2FQ
function name:  (null)
number of ops:  17
compiled vars:  !0 = $company, !1 = $fn, !2 = $ln
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, ''
    3     1        ASSIGN                                                   !1, ''
    4     2        ASSIGN                                                   !2, ''
    5     3        ISSET_ISEMPTY_CV                                 ~6      !0
          4      > JMPZ_EX                                          ~6      ~6, ->12
          5    >   ISSET_ISEMPTY_CV                                 ~7      !1
          6        BOOL_NOT                                         ~8      ~7
          7      > JMPZ_EX                                          ~8      ~8, ->11
          8    >   ISSET_ISEMPTY_CV                                 ~9      !2
          9        BOOL_NOT                                         ~10     ~9
         10        BOOL                                             ~8      ~10
         11    >   BOOL                                             ~6      ~8
         12    > > JMPZ                                                     ~6, ->15
    6    13    >   ECHO                                                     'error'
         14      > JMP                                                      ->16
    8    15    >   ECHO                                                     'good'
    9    16    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.22 ms | 1393 KiB | 13 Q