3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Upload; class FileFactory { static public function autoload($name) { print '[['. $name .']]'; } } class Image { function __construct() { echo 'testing'; } } spl_autoload_register(__NAMESPACE__ .'\FileFactory::autoload'); // As of PHP 5.3.0 $image = new Image;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9q4Qo
function name:  (null)
number of ops:  7
compiled vars:  !0 = $image
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_NS_FCALL_BY_NAME                                    'Upload%5Cspl_autoload_register'
          1        SEND_VAL_EX                                              'Upload%5CFileFactory%3A%3Aautoload'
          2        DO_FCALL                                      0          
   19     3        NEW                                              $2      'Upload%5CImage'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
          6      > RETURN                                                   1

Class Upload\FileFactory:
Function autoload:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9q4Qo
function name:  autoload
number of ops:  5
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1        CONCAT                                           ~1      '%5B%5B', !0
          2        CONCAT                                           ~2      ~1, '%5D%5D'
          3        ECHO                                                     ~2
    8     4      > RETURN                                                   null

End of function autoload

End of class Upload\FileFactory.

Class Upload\Image:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9q4Qo
function name:  __construct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ECHO                                                     'testing'
   14     1      > RETURN                                                   null

End of function __construct

End of class Upload\Image.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.95 ms | 1395 KiB | 15 Q