3v4l.org

run code in 300+ PHP versions simultaneously
<?php const B = 1; const C = 2; class A { public $var = B | C; } $a = new A; echo $a->var;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QF6VX
function name:  (null)
number of ops:  8
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CONST                                            'B', 1
    3     1        DECLARE_CONST                                            'C', 2
   10     2        NEW                                              $1      'A'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
   11     5        FETCH_OBJ_R                                      ~4      !0, 'var'
          6        ECHO                                                     ~4
          7      > RETURN                                                   1

Class A: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.37 ms | 1392 KiB | 13 Q