3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.62 ms | 1393 KiB | 13 Q