3v4l.org

run code in 500+ PHP versions simultaneously
<?php class MyClass { function myMethod() {} } $method = ReflectionMethod::createFromMethodName('MyClass::myMethod'); echo 'named constructor, added in 8.3: ' . $method->isPublic() . "\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/inbS7
function name:  (null)
number of ops:  10
compiled vars:  !0 = $method
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    8     0  E >   INIT_STATIC_METHOD_CALL                                      'ReflectionMethod', 'createFromMethodName'
          1        SEND_VAL                                                     'MyClass%3A%3AmyMethod'
          2        DO_FCALL                                          0  $1      
          3        ASSIGN                                                       !0, $1
   10     4        INIT_METHOD_CALL                                             !0, 'isPublic'
          5        DO_FCALL                                          0  $3      
          6        CONCAT                                               ~4      'named+constructor%2C+added+in+8.3%3A+', $3
          7        CONCAT                                               ~5      ~4, '%0A'
          8        ECHO                                                         ~5
          9      > RETURN                                                       1

Class MyClass:
Function mymethod:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/inbS7
function name:  myMethod
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                       null

End of function mymethod

End of class MyClass.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
165.66 ms | 1453 KiB | 12 Q