3v4l.org

run code in 300+ PHP versions simultaneously
<?php class load { public static function createException($c) { var_dump('create'); eval('class '.$c.' extend Exception {}'); } public static function loadClass($c) { var_dump('load'); try { self::loadCache($c); } catch (NotFoundException $e) { eval('class '.$c.'{}'); } } public static function loadCache($c) { throw new NotFoundException; } } spl_autoload_register(array('load', 'loadClass')); spl_autoload_register(array('load', 'createException')); new x;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5FikG
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   30     0  E >   INIT_FCALL                                               'spl_autoload_register'
          1        SEND_VAL                                                 <array>
          2        DO_ICALL                                                 
   31     3        INIT_FCALL                                               'spl_autoload_register'
          4        SEND_VAL                                                 <array>
          5        DO_ICALL                                                 
   33     6        NEW                                              $2      'x'
          7        DO_FCALL                                      0          
          8        FREE                                                     $2
          9      > RETURN                                                   1

Class load:
Function createexception:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5FikG
function name:  createException
number of ops:  8
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    7     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAL                                                 'create'
          3        DO_ICALL                                                 
    8     4        CONCAT                                           ~2      'class+', !0
          5        CONCAT                                           ~3      ~2, '+extend+Exception+%7B%7D'
          6        INCLUDE_OR_EVAL                                          ~3, EVAL
    9     7      > RETURN                                                   null

End of function createexception

Function loadclass:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 8
Branch analysis from position: 8
2 jumps found. (Code = 107) Position 1 = 9, Position 2 = -2
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5FikG
function name:  loadClass
number of ops:  13
compiled vars:  !0 = $c, !1 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   13     1        INIT_FCALL                                               'var_dump'
          2        SEND_VAL                                                 'load'
          3        DO_ICALL                                                 
   16     4        INIT_STATIC_METHOD_CALL                                  'loadCache'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
          7      > JMP                                                      ->12
   18     8  E > > CATCH                                       last         'NotFoundException'
   20     9    >   CONCAT                                           ~4      'class+', !0
         10        CONCAT                                           ~5      ~4, '%7B%7D'
         11        INCLUDE_OR_EVAL                                          ~5, EVAL
   22    12    > > RETURN                                                   null

End of function loadclass

Function loadcache:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/5FikG
function name:  loadCache
number of ops:  5
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   24     0  E >   RECV                                             !0      
   26     1        NEW                                              $1      'NotFoundException'
          2        DO_FCALL                                      0          
          3      > THROW                                         0          $1
   27     4*     > RETURN                                                   null

End of function loadcache

End of class load.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.99 ms | 1400 KiB | 17 Q