3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public static function run() { $o = new Test('o'); throw new Exception('destroyer ?'); } public static function shutdown() { echo 'fin script'."\n"; } public function __construct(){ echo 'constructeur'."\n"; } public function __destruct(){ echo 'destructeur'."\n"; } } register_shutdown_function(array('Test','shutdown')); Test::run();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/PDW2J
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   INIT_FCALL                                               'register_shutdown_function'
          1        SEND_VAL                                                 <array>
          2        DO_ICALL                                                 
   21     3        INIT_STATIC_METHOD_CALL                                  'Test', 'run'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Test:
Function run:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/PDW2J
function name:  run
number of ops:  9
compiled vars:  !0 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $1      'Test'
          1        SEND_VAL_EX                                              'o'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
    7     4        NEW                                              $4      'Exception'
          5        SEND_VAL_EX                                              'destroyer+%3F'
          6        DO_FCALL                                      0          
          7      > THROW                                         0          $4
    8     8*     > RETURN                                                   null

End of function run

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

End of function shutdown

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

End of function __construct

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

End of function __destruct

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.32 ms | 1396 KiB | 15 Q