3v4l.org

run code in 300+ PHP versions simultaneously
<?php const A = 1<<2; const B = 1<<3; var_dump(A, B, A | B);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sFpUb
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CONST                                            'A', 4
    4     1        DECLARE_CONST                                            'B', 8
    6     2        INIT_FCALL                                               'var_dump'
          3        FETCH_CONSTANT                                   ~0      'A'
          4        SEND_VAL                                                 ~0
          5        FETCH_CONSTANT                                   ~1      'B'
          6        SEND_VAL                                                 ~1
          7        FETCH_CONSTANT                                   ~2      'A'
          8        FETCH_CONSTANT                                   ~3      'B'
          9        BW_OR                                            ~4      ~2, ~3
         10        SEND_VAL                                                 ~4
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
134.01 ms | 1398 KiB | 15 Q