3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dis = false; $dat = true; $truthiness = $dis and $dat; var_dump($truthiness); $truthiness = $dis && $dat; var_dump($truthiness);
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                                          ~5      ~5, ->5
          4    >   BOOL                                             ~5      !1
    8     5    >   INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                                 
   10     8      > JMPZ_EX                                          ~7      !0, ->10
          9    >   BOOL                                             ~7      !1
         10    >   ASSIGN                                                   !2, ~7
   12    11        INIT_FCALL                                               'var_dump'
         12        SEND_VAR                                                 !2
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.33 ms | 1394 KiB | 15 Q