3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Foo { const A = 1; const D = 1; public static $sample = array( self::A => 'First', self::D => 'Last' ); } print_r(Foo::$sample);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qEe9W
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                                   'print_r'
          1        FETCH_STATIC_PROP_R              global lock         ~0      'sample'
          2        SEND_VAL                                                     ~0
          3        DO_ICALL                                                     
          4      > RETURN                                                       1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.04 ms | 2772 KiB | 14 Q