3v4l.org

run code in 300+ PHP versions simultaneously
<?php $logLevel = 'light'; var_dump($logLevel == 'debug' | 'basic' | 'light'); var_dump(in_array($logLevel, ['debug', 'basic', 'light']));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ScWH5
function name:  (null)
number of ops:  12
compiled vars:  !0 = $logLevel
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'light'
    4     1        INIT_FCALL                                               'var_dump'
          2        IS_EQUAL                                         ~2      !0, 'debug'
          3        BW_OR                                            ~3      ~2, 'basic'
          4        BW_OR                                            ~4      ~3, 'light'
          5        SEND_VAL                                                 ~4
          6        DO_ICALL                                                 
    5     7        INIT_FCALL                                               'var_dump'
          8        IN_ARRAY                                         ~6      !0, <array>
          9        SEND_VAL                                                 ~6
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.79 ms | 1003 KiB | 14 Q