3v4l.org

run code in 300+ PHP versions simultaneously
<?php function autoloadGoogleApi($className) { $classPath = explode('_', $className); if ($classPath[0] != 'Google') { return; } // Drop 'Google', and maximum class file path depth in this project is 3. $classPath = array_slice($classPath, 1, 2); $filePath = dirname(__FILE__) . '/' . implode('/', $classPath) . '.php'; if (file_exists($filePath)) { require_once($filePath); } } spl_autoload_register('autoloadGoogleApi');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/l18op
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   INIT_FCALL                                               'spl_autoload_register'
          1        SEND_VAL                                                 'autoloadGoogleApi'
          2        DO_ICALL                                                 
          3      > RETURN                                                   1

Function autoloadgoogleapi:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 32
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
filename:       /in/l18op
function name:  autoloadGoogleApi
number of ops:  33
compiled vars:  !0 = $className, !1 = $classPath, !2 = $filePath
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        INIT_FCALL                                               'explode'
          2        SEND_VAL                                                 '_'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $3      
          5        ASSIGN                                                   !1, $3
    5     6        FETCH_DIM_R                                      ~5      !1, 0
          7        IS_NOT_EQUAL                                             ~5, 'Google'
          8      > JMPZ                                                     ~6, ->10
    6     9    > > RETURN                                                   null
    9    10    >   INIT_FCALL                                               'array_slice'
         11        SEND_VAR                                                 !1
         12        SEND_VAL                                                 1
         13        SEND_VAL                                                 2
         14        DO_ICALL                                         $7      
         15        ASSIGN                                                   !1, $7
   11    16        INIT_FCALL                                               'dirname'
         17        SEND_VAL                                                 '%2Fin%2Fl18op'
         18        DO_ICALL                                         $9      
         19        CONCAT                                           ~10     $9, '%2F'
         20        INIT_FCALL                                               'implode'
         21        SEND_VAL                                                 '%2F'
         22        SEND_VAR                                                 !1
         23        DO_ICALL                                         $11     
         24        CONCAT                                           ~12     ~10, $11
         25        CONCAT                                           ~13     ~12, '.php'
         26        ASSIGN                                                   !2, ~13
   12    27        INIT_FCALL                                               'file_exists'
         28        SEND_VAR                                                 !2
         29        DO_ICALL                                         $15     
         30      > JMPZ                                                     $15, ->32
   13    31    >   INCLUDE_OR_EVAL                                          !2, REQUIRE_ONCE
   15    32    > > RETURN                                                   null

End of function autoloadgoogleapi

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.12 ms | 1021 KiB | 19 Q