3v4l.org

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

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.8 ms | 1393 KiB | 15 Q