3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = '1'; $b = '2'; $c = '3'; var_dump($a or $b); var_dump($c); var_dump($c == true); 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 = 16, Position 2 = 17
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 20
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
Branch analysis from position: 17
Branch analysis from position: 6
filename:       /in/EkGu2
function name:  (null)
number of ops:  21
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                                                 
    7    11        INIT_FCALL                                               'var_dump'
         12        BOOL                                             ~9      !2
         13        SEND_VAL                                                 ~9
         14        DO_ICALL                                                 
    9    15      > JMPNZ_EX                                         ~11     !0, ->17
         16    >   BOOL                                             ~11     !1
         17    >   IS_EQUAL                                                 !2, ~11
         18      > JMPZ                                                     ~12, ->20
         19    >   ECHO                                                     'ok'
         20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.16 ms | 1386 KiB | 15 Q