3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C { const ENC = 1; const DEC = 2; /*const A = [ self::ENC => 'e', self::DEC => 'd' ];*/ protected $a = [ self::ENC => 'E', self::DEC => 'D' ]; public function getA() { return $this->a; } } $c = new C(); print_r($c->getA());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0fDlN
function name:  (null)
number of ops:  9
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   NEW                                              $1      'C'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   25     3        INIT_FCALL                                               'print_r'
          4        INIT_METHOD_CALL                                         !0, 'getA'
          5        DO_FCALL                                      0  $4      
          6        SEND_VAR                                                 $4
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

Class C:
Function geta:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0fDlN
function name:  getA
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   FETCH_OBJ_R                                      ~0      'a'
          1      > RETURN                                                   ~0
   20     2*     > RETURN                                                   null

End of function geta

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.54 ms | 1398 KiB | 15 Q