3v4l.org

run code in 300+ PHP versions simultaneously
<?php spl_autoload_register('var_dump'); spl_autoload_register(function ($class) { eval('class '.ltrim($class, '\\').' { }'); }); new Foo(); new \Faz(); 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/ZAqlX
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%2FZAqlX%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      'Faz'
         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%2FZAqlX%3A4%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZAqlX
function name:  {closure}
number of ops:  9
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        INIT_FCALL                                               'ltrim'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 '%5C'
          4        DO_ICALL                                         $1      
          5        CONCAT                                           ~2      'class+', $1
          6        CONCAT                                           ~3      ~2, '+%7B+%7D'
          7        INCLUDE_OR_EVAL                                          ~3, EVAL
    6     8      > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.64 ms | 1388 KiB | 17 Q