3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.14 ms | 1395 KiB | 15 Q