3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.96 ms | 1385 KiB | 13 Q