3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClaseNoCargable { public function __toString(){ return "se pudo cargar la clase"; } } spl_autoload_register(function ($clase) { echo "Intentando cargar $clase...\n"; throw new Exception("[ERROR] Imposible cargar $clase"); }); try { $obj = new ClaseNoCargable(); echo $obj; } catch (Exception $e) { echo $e->getMessage(), "\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 10
Branch analysis from position: 10
2 jumps found. (Code = 107) Position 1 = 11, Position 2 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k5fuB
function name:  (null)
number of ops:  16
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%2Fk5fuB%3A11%241'
   14     3        SEND_VAL                                                 ~2
          4        DO_ICALL                                                 
   17     5        NEW                                              $4      'ClaseNoCargable'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $4
   18     8        ECHO                                                     !0
          9      > JMP                                                      ->15
   19    10  E > > CATCH                                       last         'Exception'
   20    11    >   INIT_METHOD_CALL                                         !1, 'getMessage'
         12        DO_FCALL                                      0  $7      
         13        ECHO                                                     $7
         14        ECHO                                                     '%0A'
   21    15    > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Fk5fuB%3A11%241:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/k5fuB
function name:  {closure}
number of ops:  12
compiled vars:  !0 = $clase
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        NOP                                                      
          7        FAST_CONCAT                                      ~5      '%5BERROR%5D+Imposible+cargar+', !0
          8        SEND_VAL_EX                                              ~5
          9        DO_FCALL                                      0          
         10      > THROW                                         0          $4
   14    11*     > RETURN                                                   null

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

Class ClaseNoCargable:
Function __tostring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/k5fuB
function name:  __toString
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   '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:
178.58 ms | 1400 KiB | 15 Q