how to use token in "Execute custom PHP code" in a rule
At the very beginning, I just saw "$commerce_line_item" can be used in php code, but I wanted to use [commerce-line-item:line-item-label] value which showed in the token place. So I tried to use token_replace to get this value. 

Finally, I figure out how to get that value and use it in PHP Code.

Although it isn't showed in the variable name place, we can still use $commerce_line_item -&gt; line_item_label in the PHP Code. This works for me.