3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait byField { public $a=array(array('byField', 'trFu')); static function trFu($v) {return $v-1;} } class cl { use byField; } $o=new cl(); var_dump($a); echo $o->a[0](22);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZcKU7
function name:  (null)
number of ops:  14
compiled vars:  !0 = $o, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                            'cl'
   12     1        NEW                                              $2      'cl'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
   13     4        INIT_FCALL                                               'var_dump'
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                                 
   14     7        FETCH_OBJ_R                                      ~6      !0, 'a'
          8        FETCH_DIM_R                                      ~7      ~6, 0
          9        INIT_DYNAMIC_CALL                                        ~7
         10        SEND_VAL_EX                                              22
         11        DO_FCALL                                      0  $8      
         12        ECHO                                                     $8
         13      > RETURN                                                   1

Class byField:
Function trfu:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZcKU7
function name:  trFu
number of ops:  4
compiled vars:  !0 = $v
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        SUB                                              ~1      !0, 1
          2      > RETURN                                                   ~1
          3*     > RETURN                                                   null

End of function trfu

End of class byField.

Class cl: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.73 ms | 1395 KiB | 15 Q