3v4l.org

run code in 300+ PHP versions simultaneously
<?php $check = true; $criteria = false; $ret_bool = $criteria || $check; $ret_logic = $criteria or $check; var_dump($ret_bool, $ret_logic);
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 = 47) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
Branch analysis from position: 4
filename:       /in/nbhTR
function name:  (null)
number of ops:  13
compiled vars:  !0 = $check, !1 = $criteria, !2 = $ret_bool, !3 = $ret_logic
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <true>
    3     1        ASSIGN                                                   !1, <false>
    4     2      > JMPNZ_EX                                         ~6      !1, ->4
          3    >   BOOL                                             ~6      !0
          4    >   ASSIGN                                                   !2, ~6
    5     5        ASSIGN                                           ~8      !3, !1
          6      > JMPNZ_EX                                         ~8      ~8, ->8
          7    >   BOOL                                             ~8      !0
    6     8    >   INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !2
         10        SEND_VAR                                                 !3
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.24 ms | 1394 KiB | 15 Q