3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Lol { const TEST = 'Lol'; } class Foo { const TEST = 'Foo'; } class Bar {} var_dump((new Foo())::TEST); var_dump((new Bar())::TEST);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3q8uU
function name:  (null)
number of ops:  15
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_FCALL                                               'var_dump'
          1        NEW                                              $0      'Foo'
          2        DO_FCALL                                      0          
          3        FETCH_CLASS                                   0  $2      $0
          4        FETCH_CLASS_CONSTANT                             ~3      $2, 'TEST'
          5        SEND_VAL                                                 ~3
          6        DO_ICALL                                                 
   16     7        INIT_FCALL                                               'var_dump'
          8        NEW                                              $5      'Bar'
          9        DO_FCALL                                      0          
         10        FETCH_CLASS                                   0  $7      $5
         11        FETCH_CLASS_CONSTANT                             ~8      $7, 'TEST'
         12        SEND_VAL                                                 ~8
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Class Lol: [no user functions]
Class Foo: [no user functions]
Class Bar: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.88 ms | 1394 KiB | 15 Q