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

End of function supportsclass

End of class UserProvider.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.36 ms | 1396 KiB | 15 Q