3v4l.org

run code in 300+ PHP versions simultaneously
<?php spl_autoload_register(function($name){ if($name == 'C') { spl_autoload_register(function($name){ if($name == 'C') { class C { function __construct(){ echo "I'm C.\n"; } } } }); } }); $c = new C();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f1njG
function name:  (null)
number of ops:  8
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'spl_autoload_register'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Ff1njG%3A2%240'
   14     2        SEND_VAL                                                 ~1
          3        DO_ICALL                                                 
   16     4        NEW                                              $3      'C'
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !0, $3
          7      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2Ff1njG%3A2%240:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
filename:       /in/f1njG
function name:  {closure}
number of ops:  8
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        IS_EQUAL                                                 !0, 'C'
          2      > JMPZ                                                     ~1, ->7
    4     3    >   INIT_FCALL                                               'spl_autoload_register'
          4        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2Ff1njG%3A4%241'
   12     5        SEND_VAL                                                 ~2
          6        DO_ICALL                                                 
   14     7    > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Ff1njG%3A2%240

Function %00%7Bclosure%7D%2Fin%2Ff1njG%3A4%241:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 4
Branch analysis from position: 3
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
filename:       /in/f1njG
function name:  {closure}
number of ops:  5
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        IS_EQUAL                                                 !0, 'C'
          2      > JMPZ                                                     ~1, ->4
    6     3    >   DECLARE_CLASS                                            'c'
   12     4    > > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2Ff1njG%3A4%241

Class C:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/f1njG
function name:  __construct
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ECHO                                                     'I%27m+C.%0A'
    9     1      > RETURN                                                   null

End of function __construct

End of class C.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.87 ms | 1396 KiB | 15 Q