3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace App; use Lib\Foo; // 引数を出力するだけのオートロード関数 spl_autoload_register(function (string $name): void { printf("autoload: %s\n", $name); // (2) // 通常はここでクラス定義が記述された PHP ファイルを include() などで読み込む。 }); $foo = new Foo(); // (1) クラス定義が無い
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uEIDb
function name:  (null)
number of ops:  8
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_NS_FCALL_BY_NAME                                    'App%5Cspl_autoload_register'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00app%5C%7Bclosure%7D%2Fin%2FuEIDb%3A8%240'
   11     2        SEND_VAL_EX                                              ~1
          3        DO_FCALL                                      0          
   13     4        NEW                                              $3      'Lib%5CFoo'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $3
          7      > RETURN                                                   1

Function %00app%5C%7Bclosure%7D%2Fin%2FuEIDb%3A8%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/uEIDb
function name:  App\{closure}
number of ops:  6
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
    9     1        INIT_NS_FCALL_BY_NAME                                    'App%5Cprintf'
          2        SEND_VAL_EX                                              'autoload%3A+%25s%0A'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
   11     5      > RETURN                                                   null

End of function %00app%5C%7Bclosure%7D%2Fin%2FuEIDb%3A8%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.81 ms | 1405 KiB | 17 Q