3v4l.org

run code in 300+ PHP versions simultaneously
<?php class C extends ReflectionFunctionAbstract{ public function __toString() { return $this->export($this->name, true); } } $foo = new C(); echo $foo->__toString();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9Md4v
function name:  (null)
number of ops:  8
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DECLARE_CLASS                                            'c', 'reflectionfunctionabstract'
    9     1        NEW                                              $1      'C'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   10     4        INIT_METHOD_CALL                                         !0, '__toString'
          5        DO_FCALL                                      0  $4      
          6        ECHO                                                     $4
          7      > RETURN                                                   1

Class C:
Function __tostring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9Md4v
function name:  __toString
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_METHOD_CALL                                         'export'
          1        CHECK_FUNC_ARG                                           
          2        FETCH_OBJ_FUNC_ARG                               $0      'name'
          3        SEND_FUNC_ARG                                            $0
          4        SEND_VAL_EX                                              <true>
          5        DO_FCALL                                      0  $1      
          6        VERIFY_RETURN_TYPE                                       $1
          7      > RETURN                                                   $1
    6     8*       VERIFY_RETURN_TYPE                                       
          9*     > RETURN                                                   null

End of function __tostring

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.98 ms | 1393 KiB | 13 Q