PHP Object Injection

My php code contains __destruct() method which is executing the system command. Below is the code i have created as i want to create a payload( i am learning PHP object injection). The code is getting executed and im unable to get the whole serialized data.

<?php     class exCommand{         public function __destruct(){             system('/bin/ls /home');          }          }     $  obj = new exCommand();     echo serialize($  obj); 

I dont want it getting executed on my local server… i want the serialized data so that i can use the serialized data to get it executed on DVWA.