3v4l.org

run code in 300+ PHP versions simultaneously
<?php $x = false || true; $y = false OR true; echo (int)$x . "\n"; // 1 echo (int)$y; // 0 ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) 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/OrmH8
function name:  (null)
number of ops:  10
compiled vars:  !0 = $x, !1 = $y
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <true>
    3     1        ASSIGN                                           ~3      !1, <false>
          2      > JMPNZ_EX                                         ~3      ~3, ->4
          3    >   BOOL                                             ~3      <true>
    4     4    >   CAST                                          4  ~4      !0
          5        CONCAT                                           ~5      ~4, '%0A'
          6        ECHO                                                     ~5
    5     7        CAST                                          4  ~6      !1
          8        ECHO                                                     ~6
    6     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156 ms | 1393 KiB | 13 Q