3v4l.org

run code in 300+ 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 = 79) Position 1 = -2
filename:       /in/WLE8F
function name:  (null)
number of ops:  12
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      > EXIT                                                     
   22     7*       ECHO                                                     'exit+after%0A'
   23     8*       INIT_FCALL                                               'var_dump'
          9*       SEND_VAR                                                 !0
         10*       DO_ICALL                                                 
         11*     > 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.0.0


preferences:
139.3 ms | 985 KiB | 14 Q