3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace a; spl_autoload_register(function ($class) { echo $class . "\n"; if (0 === strpos(ltrim($class, '/'), 'Symfony\Component\EventDispatcher')) { if (file_exists($file = __DIR__.'/../'.substr(str_replace('\\', '/', $class), strlen('Symfony\Component\EventDispatcher')).'.php')) { require_once $file; } } }); new \doesntexist;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VOONM
function name:  (null)
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_NS_FCALL_BY_NAME                                    'a%5Cspl_autoload_register'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00a%5C%7Bclosure%7D%2Fin%2FVOONM%3A3%240'
   10     2        SEND_VAL_EX                                              ~0
          3        DO_FCALL                                      0          
   12     4        NEW                                              $2      'doesntexist'
          5        DO_FCALL                                      0          
          6        FREE                                                     $2
          7      > RETURN                                                   1

Function %00a%5C%7Bclosure%7D%2Fin%2FVOONM%3A3%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 33
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 33
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
Branch analysis from position: 33
filename:       /in/VOONM
function name:  a\{closure}
number of ops:  34
compiled vars:  !0 = $class, !1 = $file
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        CONCAT                                           ~2      !0, '%0A'
          2        ECHO                                                     ~2
    5     3        INIT_NS_FCALL_BY_NAME                                    'a%5Cstrpos'
          4        INIT_NS_FCALL_BY_NAME                                    'a%5Cltrim'
          5        SEND_VAR_EX                                              !0
          6        SEND_VAL_EX                                              '%2F'
          7        DO_FCALL                                      0  $3      
          8        SEND_VAR_NO_REF_EX                                       $3
          9        SEND_VAL_EX                                              'Symfony%5CComponent%5CEventDispatcher'
         10        DO_FCALL                                      0  $4      
         11        IS_IDENTICAL                                             $4, 0
         12      > JMPZ                                                     ~5, ->33
    6    13    >   INIT_NS_FCALL_BY_NAME                                    'a%5Cfile_exists'
         14        INIT_NS_FCALL_BY_NAME                                    'a%5Csubstr'
         15        INIT_NS_FCALL_BY_NAME                                    'a%5Cstr_replace'
         16        SEND_VAL_EX                                              '%5C'
         17        SEND_VAL_EX                                              '%2F'
         18        SEND_VAR_EX                                              !0
         19        DO_FCALL                                      0  $6      
         20        SEND_VAR_NO_REF_EX                                       $6
         21        INIT_NS_FCALL_BY_NAME                                    'a%5Cstrlen'
         22        SEND_VAL_EX                                              'Symfony%5CComponent%5CEventDispatcher'
         23        DO_FCALL                                      0  $7      
         24        SEND_VAR_NO_REF_EX                                       $7
         25        DO_FCALL                                      0  $8      
         26        CONCAT                                           ~9      '%2Fin%2F..%2F', $8
         27        CONCAT                                           ~10     ~9, '.php'
         28        ASSIGN                                           ~11     !1, ~10
         29        SEND_VAL_EX                                              ~11
         30        DO_FCALL                                      0  $12     
         31      > JMPZ                                                     $12, ->33
    7    32    >   INCLUDE_OR_EVAL                                          !1, REQUIRE_ONCE
   10    33    > > RETURN                                                   null

End of function %00a%5C%7Bclosure%7D%2Fin%2FVOONM%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.5 ms | 1405 KiB | 27 Q