3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.18 ms | 1395 KiB | 15 Q