3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClaseNoCargable { public function __toString(){ echo "se pudo cargar la clase"; } } spl_autoload_register(function ($nombre) { echo "Intentando cargar $nombre.\n"; throw new Exception("Imposible cargar $nombre."); }); try { $obj = new ClaseNoCargable(); } catch (Exception $e) { echo $e->getMessage(), "\n"; }
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 = 62) Position 1 = -2
Found catch point at position: 9
Branch analysis from position: 9
2 jumps found. (Code = 107) Position 1 = 10, Position 2 = -2
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ohXQr
function name:  (null)
number of ops:  15
compiled vars:  !0 = $obj, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'clasenocargable'
   11     1        INIT_FCALL                                               'spl_autoload_register'
          2        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FohXQr%3A11%241'
   14     3        SEND_VAL                                                 ~2
          4        DO_ICALL                                                 
   17     5        NEW                                              $4      'ClaseNoCargable'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $4
          8      > JMP                                                      ->14
   18     9  E > > CATCH                                       last         'Exception'
   19    10    >   INIT_METHOD_CALL                                         !1, 'getMessage'
         11        DO_FCALL                                      0  $7      
         12        ECHO                                                     $7
         13        ECHO                                                     '%0A'
   20    14    > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FohXQr%3A11%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/ohXQr
function name:  {closure}
number of ops:  13
compiled vars:  !0 = $nombre
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   12     1        ROPE_INIT                                     3  ~2      'Intentando+cargar+'
          2        ROPE_ADD                                      1  ~2      ~2, !0
          3        ROPE_END                                      2  ~1      ~2, '.%0A'
          4        ECHO                                                     ~1
   13     5        NEW                                              $4      'Exception'
          6        ROPE_INIT                                     3  ~6      'Imposible+cargar+'
          7        ROPE_ADD                                      1  ~6      ~6, !0
          8        ROPE_END                                      2  ~5      ~6, '.'
          9        SEND_VAL_EX                                              ~5
         10        DO_FCALL                                      0          
         11      > THROW                                         0          $4
   14    12*     > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FohXQr%3A11%241

Class ClaseNoCargable:
Function __tostring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ohXQr
function name:  __toString
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     'se+pudo+cargar+la+clase'
    7     1        VERIFY_RETURN_TYPE                                       
          2      > RETURN                                                   null

End of function __tostring

End of class ClaseNoCargable.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.73 ms | 1400 KiB | 15 Q