3v4l.org

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

Class byField:
Function trfu:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sFt4j
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.78 ms | 1393 KiB | 13 Q