3v4l.org

run code in 300+ PHP versions simultaneously
function get_social_buttons() { $hashed_tags = get_hashed_tags(); $thumb = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID), 'full' ); $html = ''; $html = '<ul class="social">'; $html .= '<li><a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=<' . rawurlencode(get_the_permalink()) .'><i class="fa fa-facebook fa-lg"></i></a></li>'; $html .= '<li><a target="_blank" href="http://www.pinterest.com/pin/create/button/?url=' . rawurlencode(get_bloginfo('url'). '/' .get_the_permalink()) .'&media='. rawurlencode($thumb[0]) .'&description=' . rawurlencode(get_the_title() . ' ' . $hashed_tags) .'"><i class="fa fa-pinterest fa-lg"></i></a></li>'; $html .= '<li><a target="_blank" href="http://twitter.com/home?status=' . rawurlencode(get_the_title() . ' ' . get_the_permalink() . ' ' . $hashed_tags()) .'><i class="fa fa-twitter fa-lg"></i></a></li>'; $html .= '</ul>'; return $html; }<?php
Output for git.master, git.master_jit, rfc.property-hooks
function get_social_buttons() { $hashed_tags = get_hashed_tags(); $thumb = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID), 'full' ); $html = ''; $html = '<ul class="social">'; $html .= '<li><a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=<' . rawurlencode(get_the_permalink()) .'><i class="fa fa-facebook fa-lg"></i></a></li>'; $html .= '<li><a target="_blank" href="http://www.pinterest.com/pin/create/button/?url=' . rawurlencode(get_bloginfo('url'). '/' .get_the_permalink()) .'&media='. rawurlencode($thumb[0]) .'&description=' . rawurlencode(get_the_title() . ' ' . $hashed_tags) .'"><i class="fa fa-pinterest fa-lg"></i></a></li>'; $html .= '<li><a target="_blank" href="http://twitter.com/home?status=' . rawurlencode(get_the_title() . ' ' . get_the_permalink() . ' ' . $hashed_tags()) .'><i class="fa fa-twitter fa-lg"></i></a></li>'; $html .= '</ul>'; return $html; }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
38.37 ms | 403 KiB | 8 Q