3v4l.org

run code in 300+ PHP versions simultaneously
<?php class cywm528 { function __destruct() { echo 'cywm528.'; } } echo 'hi, '; $obj = unserialize('O:7:"cywm528":'); // $obj = unserialize('O:7:"cywm528":1:{}'); // $arr = unserialize('a:1:{O:7:"cywm528":0:{}'); // $arr = unserialize('a:2:{O:7:"cywm528":0:{};s:7:"cywm528";}'); echo ' ok!';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/32q6P
function name:  (null)
number of ops:  7
compiled vars:  !0 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     'hi%2C+'
   11     1        INIT_FCALL                                               'unserialize'
          2        SEND_VAL                                                 'O%3A7%3A%22cywm528%22%3A'
          3        DO_ICALL                                         $1      
          4        ASSIGN                                                   !0, $1
   16     5        ECHO                                                     '+ok%21'
          6      > RETURN                                                   1

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

End of function __destruct

End of class cywm528.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.19 ms | 1394 KiB | 15 Q