3v4l.org

run code in 300+ PHP versions simultaneously
<?php class AutoLoader { static function load($class) { echo 'your looking for ' . $class; //require '/src/lib/' . $class . '.php'; } } spl_autoload_register(array('AutoLoader', 'load')); //$a = new Cheese(); $b = new Biscuits();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NrYic
function name:  (null)
number of ops:  7
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_FCALL                                               'spl_autoload_register'
          1        SEND_VAL                                                 <array>
          2        DO_ICALL                                                 
   16     3        NEW                                              $2      'Biscuits'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $2
          6      > RETURN                                                   1

Class AutoLoader:
Function load:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NrYic
function name:  load
number of ops:  4
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    8     1        CONCAT                                           ~1      'your+looking+for+', !0
          2        ECHO                                                     ~1
   10     3      > RETURN                                                   null

End of function load

End of class AutoLoader.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
187.05 ms | 1398 KiB | 15 Q