3v4l.org

run code in 500+ PHP versions simultaneously
<?php class MyClassException extends Exception { } spl_autoload_register(static function ($className) { throw new MyClassException('Class not found'); }); class_exists(Foo::class);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/m0DIP
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   INIT_FCALL                                                   'spl_autoload_register'
          1        DECLARE_LAMBDA_FUNCTION                              ~0      [0]
    9     2        SEND_VAL                                                     ~0
    7     3        DO_ICALL                                                     
   11     4        FRAMELESS_ICALL_1                class_exists        ~2      'Foo'
          5        FREE                                                         ~2
          6      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/m0DIP
function name:  {closure:/in/m0DIP:7}
number of ops:  6
compiled vars:  !0 = $className
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   RECV                                                 !0      
    8     1        NEW                                                  $1      'MyClassException'
          2        SEND_VAL_EX                                                  'Class+not+found'
          3        DO_FCALL                                          0          
          4      > THROW                                             0          $1
    9     5*     > RETURN                                                       null

End of Dynamic Function 0

Class MyClassException: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
142.54 ms | 2875 KiB | 9 Q