3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('hhvm.enable_obj_destruct_call', 1); var_dump(ini_get('hhvm.enable_obj_destruct_call')); class Aaa { public function __destruct() { echo "bye"; } } new Aaa;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/u5I5n
function name:  (null)
number of ops:  14
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'hhvm.enable_obj_destruct_call'
          2        SEND_VAL                                                 1
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'ini_get'
          6        SEND_VAL                                                 'hhvm.enable_obj_destruct_call'
          7        DO_ICALL                                         $1      
          8        SEND_VAR                                                 $1
          9        DO_ICALL                                                 
   14    10        NEW                                              $3      'Aaa'
         11        DO_FCALL                                      0          
         12        FREE                                                     $3
         13      > RETURN                                                   1

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

End of function __destruct

End of class Aaa.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
191.51 ms | 1399 KiB | 19 Q