3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump($bool = true and false); var_dump($bool); // true, ouch!
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
filename:       /in/QHBYs
function name:  (null)
number of ops:  10
compiled vars:  !0 = $bool
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        ASSIGN                                           ~1      !0, <true>
          2      > JMPZ_EX                                          ~1      ~1, ->4
          3    >   BOOL                                             ~1      <false>
          4    >   SEND_VAL                                                 ~1
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.88 ms | 1398 KiB | 15 Q