3v4l.org

run code in 300+ PHP versions simultaneously
<?php spl_autoload_register('var_dump'); spl_autoload_register(function ($class) { eval('class '.$class.' { }'); }); new Foo(); new \Foo(); use Foo\Bar; new Bar(); use Foo\Baz as Cat; new Cat(); use Foo\Ciz; new Ciz\Caz();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5WrH1
function name:  (null)
number of ops:  23
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'spl_autoload_register'
          1        SEND_VAL                                                 'var_dump'
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'spl_autoload_register'
          4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2F5WrH1%3A4%240'
    6     5        SEND_VAL                                                 ~1
          6        DO_ICALL                                                 
    8     7        NEW                                              $3      'Foo'
          8        DO_FCALL                                      0          
          9        FREE                                                     $3
    9    10        NEW                                              $5      'Foo'
         11        DO_FCALL                                      0          
         12        FREE                                                     $5
   12    13        NEW                                              $7      'Foo%5CBar'
         14        DO_FCALL                                      0          
         15        FREE                                                     $7
   15    16        NEW                                              $9      'Foo%5CBaz'
         17        DO_FCALL                                      0          
         18        FREE                                                     $9
   18    19        NEW                                              $11     'Foo%5CCiz%5CCaz'
         20        DO_FCALL                                      0          
         21        FREE                                                     $11
         22      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F5WrH1%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5WrH1
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        CONCAT                                           ~1      'class+', !0
          2        CONCAT                                           ~2      ~1, '+%7B+%7D'
          3        INCLUDE_OR_EVAL                                          ~2, EVAL
    6     4      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2F5WrH1%3A4%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.58 ms | 1396 KiB | 15 Q