3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url = urlencode('http://littlebird.static.wearejh.com'); $hashTags = 'littlebird'; $text = urlencode('Product Name'); $imageurl = urlencode('http://johnlewis.scene7.com/is/image/JohnLewis/000105335'); ?> <a target="blank" href="http://pinterest.com/pin/create/button/?url=<?php echo $url ?>&media=<?php echo $imageurl ?>" title="Pin This Post">Pin</a>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
<a target="blank" href="http://pinterest.com/pin/create/button/?url=http%3A%2F%2Flittlebird.static.wearejh.com&media=http%3A%2F%2Fjohnlewis.scene7.com%2Fis%2Fimage%2FJohnLewis%2F000105335" title="Pin This Post">Pin</a>