3v4l.org

run code in 300+ PHP versions simultaneously
<?php spl_autoload_register(function ($name) { echo "AUTOLOAD :: "; var_dump($name); }); class MyClass { use MyTrait; // Let's try to use a trait that is not declared in this file } $obj = new MyClass(); $obj->plop();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Mh7dT
function name:  (null)
number of ops:  11
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'spl_autoload_register'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FMh7dT%3A2%240'
    5     2        SEND_VAL                                                 ~1
          3        DO_ICALL                                                 
    7     4        DECLARE_CLASS                                            'myclass'
   11     5        NEW                                              $3      'MyClass'
          6        DO_FCALL                                      0          
          7        ASSIGN                                                   !0, $3
   12     8        INIT_METHOD_CALL                                         !0, 'plop'
          9        DO_FCALL                                      0          
         10      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FMh7dT%3A2%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Mh7dT
function name:  {closure}
number of ops:  6
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        ECHO                                                     'AUTOLOAD+%3A%3A+'
    4     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    5     5      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FMh7dT%3A2%240

Class MyClass: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.05 ms | 1395 KiB | 17 Q