3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AccessBroker { public function login(string $username, string $password): void { // Pretend that we're attempting to log the user in, but something throws an exception. throw new \Exception('Oops, something went wrong!'); } } (new AccessBroker)->login('chris', 'secret password');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vsZP6
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   NEW                                              $0      'AccessBroker'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $0, 'login'
          3        SEND_VAL_EX                                              'chris'
          4        SEND_VAL_EX                                              'secret+password'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class AccessBroker:
Function login:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/vsZP6
function name:  login
number of ops:  7
compiled vars:  !0 = $username, !1 = $password
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    8     2        NEW                                              $2      'Exception'
          3        SEND_VAL_EX                                              'Oops%2C+something+went+wrong%21'
          4        DO_FCALL                                      0          
          5      > THROW                                         0          $2
    9     6*     > RETURN                                                   null

End of function login

End of class AccessBroker.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.8 ms | 1397 KiB | 13 Q