3v4l.org

run code in 300+ PHP versions simultaneously
<?php function autocreate($classname) { if (substr($classname, -strlen('Exception')) == 'Exception') eval('class ' . $classname . ' extends OpenReact_Exception {};'); } spl_autoload_register('test'); $x = new TestException();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kGV6E
function name:  (null)
number of ops:  7
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'spl_autoload_register'
          1        SEND_VAL                                                 'test'
          2        DO_ICALL                                                 
   12     3        NEW                                              $2      'TestException'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
          6      > RETURN                                                   1

Function autocreate:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
filename:       /in/kGV6E
function name:  autocreate
number of ops:  11
compiled vars:  !0 = $classname
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'substr'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 -9
          4        DO_ICALL                                         $1      
          5        IS_EQUAL                                                 $1, 'Exception'
          6      > JMPZ                                                     ~2, ->10
    6     7    >   CONCAT                                           ~3      'class+', !0
          8        CONCAT                                           ~4      ~3, '+extends+OpenReact_Exception+%7B%7D%3B'
          9        INCLUDE_OR_EVAL                                          ~4, EVAL
    7    10    > > RETURN                                                   null

End of function autocreate

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.14 ms | 1395 KiB | 17 Q