3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.29 ms | 1394 KiB | 15 Q