3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.46 ms | 1392 KiB | 13 Q