3v4l.org

run code in 500+ PHP versions simultaneously
<?php $function = function(string $user, string $pass) { throw new Exception(); }; try { $function("secrets", "arewrong"); } catch (\Throwable $e) { var_dump($e->getTrace()[0]); } ini_set("zend.exception_ignore_args", 1); try { $function("secrets", "arewrong"); } catch (\Throwable $e) { var_dump($e->getTrace()[0]); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 7
Branch analysis from position: 7
2 jumps found. (Code = 107) Position 1 = 8, Position 2 = -2
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
Found catch point at position: 23
Branch analysis from position: 23
2 jumps found. (Code = 107) Position 1 = 24, Position 2 = -2
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CS8S9
function name:  (null)
number of ops:  31
compiled vars:  !0 = $function, !1 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   DECLARE_LAMBDA_FUNCTION                              ~2      [0]
          1        ASSIGN                                                       !0, ~2
    8     2        INIT_DYNAMIC_CALL                                            !0
          3        SEND_VAL_EX                                                  'secrets'
          4        SEND_VAL_EX                                                  'arewrong'
          5        DO_FCALL                                          0          
          6      > JMP                                                          ->14
    9     7  E > > CATCH                                           last         'Throwable'
   10     8    >   INIT_FCALL                                                   'var_dump'
          9        INIT_METHOD_CALL                                             !1, 'getTrace'
         10        DO_FCALL                                          0  $5      
         11        FETCH_DIM_R                                          ~6      $5, 0
         12        SEND_VAL                                                     ~6
         13        DO_ICALL                                                     
   13    14    >   INIT_FCALL                                                   'ini_set'
         15        SEND_VAL                                                     'zend.exception_ignore_args'
         16        SEND_VAL                                                     1
         17        DO_ICALL                                                     
   16    18        INIT_DYNAMIC_CALL                                            !0
         19        SEND_VAL_EX                                                  'secrets'
         20        SEND_VAL_EX                                                  'arewrong'
         21        DO_FCALL                                          0          
         22      > JMP                                                          ->30
   17    23  E > > CATCH                                           last         'Throwable'
   18    24    >   INIT_FCALL                                                   'var_dump'
         25        INIT_METHOD_CALL                                             !1, 'getTrace'
         26        DO_FCALL                                          0  $10     
         27        FETCH_DIM_R                                          ~11     $10, 0
         28        SEND_VAL                                                     ~11
         29        DO_ICALL                                                     
   19    30    > > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/CS8S9
function name:  {closure:/in/CS8S9:3}
number of ops:  6
compiled vars:  !0 = $user, !1 = $pass
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
          1        RECV                                                 !1      
    4     2        NEW                                                  $2      'Exception'
          3        DO_FCALL                                          0          
          4      > THROW                                             0          $2
    5     5*     > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
159 ms | 2198 KiB | 14 Q