3v4l.org

run code in 500+ PHP versions simultaneously
<?php class User {} interface UserFinder { function findUserByEmail(): ?User; } class AlwaysNullUserFinder implements UserFinder { function findUserByEmail(): never { throw new Exception('Not implemented'); } } $a = new AlwaysNullUserFinder; $a->findUserByEmail();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4SaN7
function name:  (null)
number of ops:  7
compiled vars:  !0 = $a
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    9     0  E >   DECLARE_CLASS                                                'alwaysnulluserfinder'
   17     1        NEW                                                  $1      'AlwaysNullUserFinder'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $1
   18     4        INIT_METHOD_CALL                                             !0, 'findUserByEmail'
          5        DO_FCALL                                          0          
          6      > RETURN                                                       1

Class User: [no user functions]
Class UserFinder:
Function finduserbyemail:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4SaN7
function name:  findUserByEmail
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    6     0  E >   VERIFY_RETURN_TYPE                                           
          1      > RETURN                                                       null

End of function finduserbyemail

End of class UserFinder.

Class AlwaysNullUserFinder:
Function finduserbyemail:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/4SaN7
function name:  findUserByEmail
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   13     0  E >   NEW                                                  $0      'Exception'
          1        SEND_VAL_EX                                                  'Not+implemented'
          2        DO_FCALL                                          0          
          3      > THROW                                             0          $0
   14     4*     > VERIFY_NEVER_TYPE                                            

End of function finduserbyemail

End of class AlwaysNullUserFinder.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.2 ms | 1888 KiB | 13 Q