3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { const BAR = 1; } if (false) { Foo::BAZ; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 1, Position 2 = 3
Branch analysis from position: 1
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
filename:       /in/nX8h2
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > JMPZ                                                     <false>, ->3
    7     1    >   FETCH_CLASS_CONSTANT                             ~0      'Foo', 'BAZ'
          2        FREE                                                     ~0
    8     3    > > RETURN                                                   1

Class foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.45 ms | 1392 KiB | 13 Q