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("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 = 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/JpFIU
function name:  (null)
number of ops:  15
compiled vars:  !0 = $obj, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'spl_autoload_register'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FJpFIU%3A11%240'
   14     2        SEND_VAL                                                 ~2
          3        DO_ICALL                                                 
   17     4        NEW                                              $4      'ClaseNoCargable'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $4
   18     7        ECHO                                                     !0
          8      > JMP                                                      ->14
   19     9  E > > CATCH                                       last         'Exception'
   20    10    >   INIT_METHOD_CALL                                         !1, 'getMessage'
         11        DO_FCALL                                      0  $7      
         12        ECHO                                                     $7
         13        ECHO                                                     '%0A'
   21    14    > > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FJpFIU%3A11%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/JpFIU
function name:  {closure}
number of ops:  13
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        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%2FJpFIU%3A11%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
199.29 ms | 1396 KiB | 15 Q