3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface UserProviderInterface { public function supportsClass($class); } final class UserProvider implements UserProviderInterface { public function supportsClass($class): bool { return $class === $this->class || is_subclass_of($class, $this->class); } } echo (new UserProvider())->supportsClass('');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vVasO
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                            'userprovider'
   16     1        NEW                                              $0      'UserProvider'
          2        DO_FCALL                                      0          
          3        INIT_METHOD_CALL                                         $0, 'supportsClass'
          4        SEND_VAL_EX                                              ''
          5        DO_FCALL                                      0  $2      
          6        ECHO                                                     $2
          7      > RETURN                                                   1

Class UserProviderInterface:
Function supportsclass:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vVasO
function name:  supportsClass
number of ops:  2
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function supportsclass

End of class UserProviderInterface.

Class UserProvider:
Function supportsclass:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 47) Position 1 = 4, Position 2 = 10
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/vVasO
function name:  supportsClass
number of ops:  14
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV                                             !0      
   12     1        FETCH_OBJ_R                                      ~1      'class'
          2        IS_IDENTICAL                                     ~2      !0, ~1
          3      > JMPNZ_EX                                         ~2      ~2, ->10
          4    >   INIT_FCALL                                               'is_subclass_of'
          5        SEND_VAR                                                 !0
          6        FETCH_OBJ_R                                      ~3      'class'
          7        SEND_VAL                                                 ~3
          8        DO_ICALL                                         $4      
          9        BOOL                                             ~2      $4
         10    >   VERIFY_RETURN_TYPE                                       ~2
         11      > RETURN                                                   ~2
   13    12*       VERIFY_RETURN_TYPE                                       
         13*     > RETURN                                                   null

End of function supportsclass

End of class UserProvider.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162 ms | 1396 KiB | 15 Q