3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class MyType { const UNKNOWN = 0; const VALUE_ONE = 1; const VALUE_TWO = 2; const VALUE_THREE = 3; const VALUE_FOUR = 4; const VALUE_FIVE = 5; static public $__names = array( 0 => 'UNKNOWN', 1 => 'VALUE_ONE', 2 => 'VALUE_TWO', 3 => 'VALUE_THREE', 4 => 'VALUE_FOUR', 5 => 'VALUE_FIVE', ); } $test = new MyType(); echo constant($test.$test->__names[count($test->__names) - 1]); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DEfEn
function name:  (null)
number of ops:  14
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   NEW                                              $1      'MyType'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   22     3        INIT_FCALL                                               'constant'
          4        FETCH_OBJ_R                                      ~5      !0, '__names'
          5        COUNT                                            ~6      ~5
          6        SUB                                              ~7      ~6, 1
          7        FETCH_OBJ_R                                      ~4      !0, '__names'
          8        FETCH_DIM_R                                      ~8      ~4, ~7
          9        CONCAT                                           ~9      !0, ~8
         10        SEND_VAL                                                 ~9
         11        DO_ICALL                                         $10     
         12        ECHO                                                     $10
   24    13      > RETURN                                                   1

Class MyType: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.34 ms | 1394 KiB | 15 Q