3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Loader { public function __call($name, $arguments) { eval("class $arguments[0] {}"); } } spl_autoload_register(array(new Loader(), 'load_class')); $a = "a"; for ($i = 0; $i < 10; $i++) { new $a; $a++; } echo "Done";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 10
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 10
Branch analysis from position: 18
Branch analysis from position: 10
filename:       /in/AecvW
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'spl_autoload_register'
          1        NEW                                              $2      'Loader'
          2        DO_FCALL                                      0          
          3        INIT_ARRAY                                       ~4      $2
          4        ADD_ARRAY_ELEMENT                                ~4      'load_class'
          5        SEND_VAL                                                 ~4
          6        DO_ICALL                                                 
   12     7        ASSIGN                                                   !0, 'a'
   13     8        ASSIGN                                                   !1, 0
          9      > JMP                                                      ->16
   14    10    >   FETCH_CLASS                                   0  $8      !0
         11        NEW                                              $9      $8
         12        DO_FCALL                                      0          
         13        FREE                                                     $9
   15    14        PRE_INC                                                  !0
   13    15        PRE_INC                                                  !1
         16    >   IS_SMALLER                                               !1, 10
         17      > JMPNZ                                                    ~13, ->10
   17    18    >   ECHO                                                     'Done'
         19      > RETURN                                                   1

Class Loader:
Function __call:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AecvW
function name:  __call
number of ops:  8
compiled vars:  !0 = $name, !1 = $arguments
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    7     2        ROPE_INIT                                     3  ~4      'class+'
          3        FETCH_DIM_R                                      ~2      !1, 0
          4        ROPE_ADD                                      1  ~4      ~4, ~2
          5        ROPE_END                                      2  ~3      ~4, '+%7B%7D'
          6        INCLUDE_OR_EVAL                                          ~3, EVAL
    8     7      > RETURN                                                   null

End of function __call

End of class Loader.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.31 ms | 1396 KiB | 15 Q