3v4l.org

run code in 300+ 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:  19
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        INIT_FCALL                                               'in_array'
         13        SEND_VAR                                                 !0
         14        SEND_VAL                                                 <array>
         15        DO_ICALL                                         $6      
         16        SEND_VAR                                                 $6
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.78 ms | 1014 KiB | 15 Q