3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* * ExampleException.php * */ namespace app\exception; class ExampleException extends \Exception { public function __construct($message = null) { var_dump($message); var_dump(get_class($this)); var_dump(json_encode($this)); //if i extend exception the following line results in infinite loop var_dump($this); die; } } throw new \app\exception\ExampleException('why it do like that');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/WidJF
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   25     0  E >   NEW                                              $0      'app%5Cexception%5CExampleException'
          1        SEND_VAL_EX                                              'why+it+do+like+that'
          2        DO_FCALL                                      0          
          3      > THROW                                         0          $0
          4*     > RETURN                                                   1

Class app\exception\ExampleException:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/WidJF
function name:  __construct
number of ops:  24
compiled vars:  !0 = $message
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV_INIT                                        !0      null
   12     1        INIT_NS_FCALL_BY_NAME                                    'app%5Cexception%5Cvar_dump'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
   14     4        INIT_NS_FCALL_BY_NAME                                    'app%5Cexception%5Cvar_dump'
          5        INIT_NS_FCALL_BY_NAME                                    'app%5Cexception%5Cget_class'
          6        FETCH_THIS                                       $2      
          7        SEND_VAR_EX                                              $2
          8        DO_FCALL                                      0  $3      
          9        SEND_VAR_NO_REF_EX                                       $3
         10        DO_FCALL                                      0          
   16    11        INIT_NS_FCALL_BY_NAME                                    'app%5Cexception%5Cvar_dump'
         12        INIT_NS_FCALL_BY_NAME                                    'app%5Cexception%5Cjson_encode'
         13        FETCH_THIS                                       $5      
         14        SEND_VAR_EX                                              $5
         15        DO_FCALL                                      0  $6      
         16        SEND_VAR_NO_REF_EX                                       $6
         17        DO_FCALL                                      0          
   19    18        INIT_NS_FCALL_BY_NAME                                    'app%5Cexception%5Cvar_dump'
         19        FETCH_THIS                                       $8      
         20        SEND_VAR_EX                                              $8
         21        DO_FCALL                                      0          
   21    22      > EXIT                                                     
   22    23*     > RETURN                                                   null

End of function __construct

End of class app\exception\ExampleException.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
178.62 ms | 1396 KiB | 19 Q