3v4l.org

run code in 500+ PHP versions simultaneously
<?php class Func { public function __construct(){ echo 'construct'."\n"; } public function __invoke(){ echo 'invoke'."\n"; } public function __destruct(){ echo 'destruct'."\n"; } } $f = new Func(); $f(); echo 'exit before'."\n"; exit(); echo 'exit after'."\n"; var_dump($f);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 61) Position 1 = -2
filename:       /in/WLE8F
function name:  (null)
number of ops:  13
compiled vars:  !0 = $f
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   18     0  E >   NEW                                                  $1      'Func'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
   19     3        INIT_DYNAMIC_CALL                                            !0
          4        DO_FCALL                                          0          
   20     5        ECHO                                                         'exit+before%0A'
   21     6      > INIT_FCALL                                                   'exit'
          7*       DO_ICALL                                                     
   22     8*       ECHO                                                         'exit+after%0A'
   23     9*       INIT_FCALL                                                   'var_dump'
         10*       SEND_VAR                                                     !0
         11*       DO_ICALL                                                     
         12*     > RETURN                                                       1

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

End of function __construct

Function __invoke:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WLE8F
function name:  __invoke
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   ECHO                                                         'invoke%0A'
   11     1      > RETURN                                                       null

End of function __invoke

Function __destruct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WLE8F
function name:  __destruct
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   14     0  E >   ECHO                                                         'destruct%0A'
   15     1      > RETURN                                                       null

End of function __destruct

End of class Func.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
172.92 ms | 1999 KiB | 15 Q