3v4l.org

run code in 300+ PHP versions simultaneously
<?php $b = true; $a = 'test'; var_dump($a or $b); var_dump($a || $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/aY1Ih
function name:  (null)
number of ops:  13
compiled vars:  !0 = $b, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <true>
    4     1        ASSIGN                                                   !1, 'test'
    6     2        INIT_FCALL                                               'var_dump'
          3      > JMPNZ_EX                                         ~4      !1, ->5
          4    >   BOOL                                             ~4      !0
          5    >   SEND_VAL                                                 ~4
          6        DO_ICALL                                                 
    7     7        INIT_FCALL                                               'var_dump'
          8      > JMPNZ_EX                                         ~6      !1, ->10
          9    >   BOOL                                             ~6      !0
         10    >   SEND_VAL                                                 ~6
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.59 ms | 1394 KiB | 15 Q