3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
169.06 ms | 1444 KiB | 16 Q