3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class E { protected $a = array('franz' => 'de leon', 'cheryl' => 'chua'); public static function a() { return self::$a; } } $ar = E::a(); $ar['john'] = 'doe'; var_dump(E::a());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZTqn4
function name:  (null)
number of ops:  11
compiled vars:  !0 = $ar
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   INIT_STATIC_METHOD_CALL                                  'E', 'a'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN                                                   !0, $1
   16     3        ASSIGN_DIM                                               !0, 'john'
          4        OP_DATA                                                  'doe'
   18     5        INIT_FCALL                                               'var_dump'
          6        INIT_STATIC_METHOD_CALL                                  'E', 'a'
          7        DO_FCALL                                      0  $4      
          8        SEND_VAR                                                 $4
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

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

End of function a

End of class E.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.1 ms | 1394 KiB | 15 Q