3v4l.org

run code in 500+ PHP versions simultaneously
<?php spl_autoload_register(function($className) { $bt = debug_backtrace(0, 2); $bt = (isset($bt[0]["file"]) ? $bt[0] : $bt[1]); // php has an internal stack frame at [0], hhvm doesn't echo "Loading {$className} from {$bt["file"]}:{$bt["line"]}\n"; eval("class {$className} { }"); }); var_dump(new FooClass());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ov3Me
function name:  (null)
number of ops:  10
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'spl_autoload_register'
          1        DECLARE_LAMBDA_FUNCTION                              ~0      [0]
    8     2        SEND_VAL                                                     ~0
    3     3        DO_ICALL                                                     
   10     4        INIT_FCALL                                                   'var_dump'
          5        NEW                                                  $2      'FooClass'
          6        DO_FCALL                                          0          
          7        SEND_VAR                                                     $2
          8        DO_ICALL                                                     
          9      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ov3Me
function name:  {closure:/in/ov3Me:3}
number of ops:  30
compiled vars:  !0 = $className, !1 = $bt
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   RECV                                                 !0      
    4     1        INIT_FCALL                                                   'debug_backtrace'
          2        SEND_VAL                                                     0
          3        SEND_VAL                                                     2
          4        DO_ICALL                                             $2      
          5        ASSIGN                                                       !1, $2
    5     6        FETCH_DIM_IS                                         ~4      !1, 0
          7        ISSET_ISEMPTY_DIM_OBJ                             0          ~4, 'file'
          8      > JMPZ                                                         ~5, ->12
          9    >   FETCH_DIM_R                                          ~6      !1, 0
         10        QM_ASSIGN                                            ~7      ~6
         11      > JMP                                                          ->14
         12    >   FETCH_DIM_R                                          ~8      !1, 1
         13        QM_ASSIGN                                            ~7      ~8
         14    >   ASSIGN                                                       !1, ~7
    6    15        ROPE_INIT                                         7  ~13     'Loading+'
         16        ROPE_ADD                                          1  ~13     ~13, !0
         17        ROPE_ADD                                          2  ~13     ~13, '+from+'
         18        FETCH_DIM_R                                          ~10     !1, 'file'
         19        ROPE_ADD                                          3  ~13     ~13, ~10
         20        ROPE_ADD                                          4  ~13     ~13, '%3A'
         21        FETCH_DIM_R                                          ~11     !1, 'line'
         22        ROPE_ADD                                          5  ~13     ~13, ~11
         23        ROPE_END                                          6  ~12     ~13, '%0A'
         24        ECHO                                                         ~12
    7    25        ROPE_INIT                                         3  ~18     'class+'
         26        ROPE_ADD                                          1  ~18     ~18, !0
         27        ROPE_END                                          2  ~17     ~18, '+%7B+%7D'
         28        INCLUDE_OR_EVAL                                              ~17, EVAL
    8    29      > RETURN                                                       null

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
163.95 ms | 3108 KiB | 16 Q