3v4l.org

run code in 300+ PHP versions simultaneously
<?php class hi { function __destruct() { echo 'hi'; } } $foo = 'C:2:"hi":{}'; $data = unserialize($foo); var_dump($data);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/isUPU
function name:  (null)
number of ops:  9
compiled vars:  !0 = $foo, !1 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 'C%3A2%3A%22hi%22%3A%7B%7D'
    9     1        INIT_FCALL                                               'unserialize'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $3      
          4        ASSIGN                                                   !1, $3
   10     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                                 
          8      > RETURN                                                   1

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

End of function __destruct

End of class hi.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.7 ms | 1385 KiB | 17 Q