3v4l.org

run code in 300+ PHP versions simultaneously
<?php $balance = 0; $expense = true; if($balance!==false && $expense!==false){ echo 'true'; } var_dump($balance && $expense);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 6
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
2 jumps found. (Code = 46) Position 1 = 10, Position 2 = 11
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 11
Branch analysis from position: 8
Branch analysis from position: 6
filename:       /in/78Qo2
function name:  (null)
number of ops:  14
compiled vars:  !0 = $balance, !1 = $expense
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
    4     1        ASSIGN                                                   !1, <true>
    5     2        TYPE_CHECK                                  1018  ~4      !0
          3      > JMPZ_EX                                          ~4      ~4, ->6
          4    >   TYPE_CHECK                                  1018  ~5      !1
          5        BOOL                                             ~4      ~5
          6    > > JMPZ                                                     ~4, ->8
    6     7    >   ECHO                                                     'true'
    9     8    >   INIT_FCALL                                               'var_dump'
          9      > JMPZ_EX                                          ~6      !0, ->11
         10    >   BOOL                                             ~6      !1
         11    >   SEND_VAL                                                 ~6
         12        DO_ICALL                                                 
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.05 ms | 1394 KiB | 15 Q