3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace ParserReflection\Stub; abstract class AbstractClassWithMethods { const TEST = 5; private function testParam($a, $b = null, $c = self::class, $d = self::TEST) {} } $refMethod = new \ReflectionMethod('ParserReflection\Stub\AbstractClassWithMethods', 'testParam'); echo "Exported: ", $refMethod;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7FTPY
function name:  (null)
number of ops:  8
compiled vars:  !0 = $refMethod
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'ReflectionMethod'
          1        SEND_VAL_EX                                              'ParserReflection%5CStub%5CAbstractClassWithMethods'
          2        SEND_VAL_EX                                              'testParam'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
   14     5        ECHO                                                     'Exported%3A+'
          6        ECHO                                                     !0
          7      > RETURN                                                   1

Class ParserReflection\Stub\AbstractClassWithMethods:
Function testparam:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7FTPY
function name:  testParam
number of ops:  5
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        RECV_INIT                                        !1      null
          2        RECV_INIT                                        !2      'ParserReflection%5CStub%5CAbstractClassWithMethods'
          3        RECV_INIT                                        !3      <const ast>
          4      > RETURN                                                   null

End of function testparam

End of class ParserReflection\Stub\AbstractClassWithMethods.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.99 ms | 1394 KiB | 13 Q