3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = null; $b = null; $c = true; // $d is not defined var_dump( empty($a && $b), // true (no error) empty($b && $c), // true (no error) empty($b || $c), // false (no error) empty($d), // true (no error) empty($c && $d) // true (error) );
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 5, Position 2 = 6
Branch analysis from position: 5
2 jumps found. (Code = 46) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
2 jumps found. (Code = 47) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
2 jumps found. (Code = 46) Position 1 = 19, Position 2 = 20
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 14
Branch analysis from position: 10
Branch analysis from position: 6
filename:       /in/6flqu
function name:  (null)
number of ops:  24
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, null
    4     1        ASSIGN                                                   !1, null
    5     2        ASSIGN                                                   !2, <true>
    8     3        INIT_FCALL                                               'var_dump'
    9     4      > JMPZ_EX                                          ~7      !0, ->6
          5    >   BOOL                                             ~7      !1
          6    >   BOOL_NOT                                         ~8      ~7
          7        SEND_VAL                                                 ~8
   10     8      > JMPZ_EX                                          ~9      !1, ->10
          9    >   BOOL                                             ~9      !2
         10    >   BOOL_NOT                                         ~10     ~9
         11        SEND_VAL                                                 ~10
   11    12      > JMPNZ_EX                                         ~11     !1, ->14
         13    >   BOOL                                             ~11     !2
         14    >   BOOL_NOT                                         ~12     ~11
         15        SEND_VAL                                                 ~12
   12    16        ISSET_ISEMPTY_CV                                 ~13     !3
         17        SEND_VAL                                                 ~13
   13    18      > JMPZ_EX                                          ~14     !2, ->20
         19    >   BOOL                                             ~14     !3
         20    >   BOOL_NOT                                         ~15     ~14
         21        SEND_VAL                                                 ~15
         22        DO_ICALL                                                 
   14    23      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
194.57 ms | 1395 KiB | 15 Q