3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dis = false; $dat = true; $truthiness = $dis and $dat; var_dump($truthiness); $truthiness = $dis && $dat; var_dump($truthiness);
based on LcBCn
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
2 jumps found. (Code = 46) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
Branch analysis from position: 5
filename:       /in/DQ0gV
function name:  (null)
number of ops:  15
compiled vars:  !0 = $dis, !1 = $dat, !2 = $truthiness
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   ASSIGN                                                   !0, <false>
   4     1        ASSIGN                                                   !1, <true>
   6     2        ASSIGN                                           $5      !2, !0
         3      > JMPZ_EX                                          ~6      $5, ->5
         4    >   BOOL                                             ~6      !1
   8     5    >   INIT_FCALL                                               'var_dump'
         6        SEND_VAR                                                 !2
         7        DO_ICALL                                                 
  10     8      > JMPZ_EX                                          ~8      !0, ->10
         9    >   BOOL                                             ~8      !1
        10    >   ASSIGN                                                   !2, ~8
  12    11        INIT_FCALL                                               'var_dump'
        12        SEND_VAR                                                 !2
        13        DO_ICALL                                                 
        14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 7.3.0