3v4l.org

run code in 300+ PHP versions simultaneously
<?php function auto($c) { echo "1\n"; spl_autoload_call($c); if (!class_exists($c)) { echo "end\n"; throw new \Exception(); } } spl_autoload_register('auto'); new X();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JoP7u
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   INIT_FCALL                                               'spl_autoload_register'
          1        SEND_VAL                                                 'auto'
          2        DO_ICALL                                                 
   14     3        NEW                                              $1      'X'
          4        DO_FCALL                                      0          
          5        FREE                                                     $1
          6      > RETURN                                                   1

Function auto:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/JoP7u
function name:  auto
number of ops:  15
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1        ECHO                                                     '1%0A'
    5     2        INIT_FCALL                                               'spl_autoload_call'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    6     5        INIT_FCALL                                               'class_exists'
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $2      
          8        BOOL_NOT                                         ~3      $2
          9      > JMPZ                                                     ~3, ->14
    7    10    >   ECHO                                                     'end%0A'
    8    11        NEW                                              $4      'Exception'
         12        DO_FCALL                                      0          
         13      > THROW                                         0          $4
   10    14    > > RETURN                                                   null

End of function auto

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.7 ms | 1395 KiB | 19 Q