3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Mine { public function __destruct() { printf("Destroy %s\n", __CLASS__); } } $var = new Mine(); echo "End of Program";
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/kod6g
function name:  (null)
number of ops:  6
compiled vars:  !0 = $var
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
   9     1        NEW                                              $2      :-6
         2        DO_FCALL                                      0          
         3        ASSIGN                                                   !0, $2
  10     4        ECHO                                                     'End+of+Program'
         5      > RETURN                                                   1

Class Mine:
Function __destruct:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/kod6g
function name:  __destruct
number of ops:  5
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   5     0  E >   INIT_FCALL                                               'printf'
         1        SEND_VAL                                                 'Destroy+%25s%0A'
         2        SEND_VAL                                                 'Mine'
         3        DO_ICALL                                                 
   6     4      > RETURN                                                   null

End of function __destruct

End of class Mine.

Generated using Vulcan Logic Dumper, using php 7.1.0