3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
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

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
5.4.320.0070.04012.45
5.4.310.0070.04612.45
5.4.300.0090.03612.45
5.4.290.0110.05812.43
5.4.280.0130.05412.33
5.4.270.0070.05812.33
5.4.260.0050.05812.33
5.4.250.0060.06712.33
5.4.240.0060.05412.33
5.4.230.0090.03912.32
5.4.220.0060.04012.32
5.4.210.0070.05312.32
5.4.200.0080.04312.32
5.4.190.0070.03812.32
5.4.180.0060.03912.32
5.4.170.0080.04712.33
5.4.160.0100.04312.32
5.4.150.0070.04412.32
5.4.140.0090.03312.00
5.4.130.0050.03611.99
5.4.120.0080.03711.95
5.4.110.0060.04211.95
5.4.100.0090.04811.95
5.4.90.0080.03911.95
5.4.80.0070.05311.95
5.4.70.0080.03411.94
5.4.60.0110.04811.94
5.4.50.0080.03411.95
5.4.40.0070.03311.94
5.4.30.0030.03911.93
5.4.20.0070.04511.93
5.4.10.0080.04411.93
5.4.00.0040.03811.42
5.3.290.0070.04612.80
5.3.280.0100.03512.71
5.3.270.0110.04412.72
5.3.260.0120.03412.72
5.3.250.0060.03812.72
5.3.240.0070.03612.72
5.3.230.0050.03812.71
5.3.220.0050.04912.68
5.3.210.0040.04112.68
5.3.200.0070.03612.68
5.3.190.0070.03712.68
5.3.180.0040.05112.67
5.3.170.0060.03712.67
5.3.160.0060.03712.67
5.3.150.0060.03712.68
5.3.140.0080.03412.66
5.3.130.0090.03812.66
5.3.120.0060.04912.66
5.3.110.0040.04012.65
5.3.100.0070.03612.12
5.3.90.0070.03612.08
5.3.80.0080.04012.07
5.3.70.0070.03712.07
5.3.60.0110.03912.07
5.3.50.0090.04312.00
5.3.40.0100.04912.00
5.3.30.0120.03811.94
5.3.20.0040.03811.72
5.3.10.0070.03511.69
5.3.00.0090.03611.68
5.2.170.0070.0439.17
5.2.160.0050.0459.17
5.2.150.0060.0329.17
5.2.140.0070.0309.16
5.2.130.0080.0429.13
5.2.120.0080.0399.13
5.2.110.0110.0399.14
5.2.100.0070.0439.14
5.2.90.0090.0409.13
5.2.80.0070.0429.13
5.2.70.0080.0439.13
5.2.60.0040.0469.09
5.2.50.0050.0449.06
5.2.40.0060.0359.03
5.2.30.0050.0329.00
5.2.20.0090.0288.99
5.2.10.0030.0298.91
5.2.00.0030.0368.77
5.1.60.0040.0258.06
5.1.50.0060.0238.06
5.1.40.0050.0288.04
5.1.30.0090.0278.39
5.1.20.0060.0268.41
5.1.10.0050.0258.13
5.1.00.0050.0308.13
5.0.50.0050.0226.61
5.0.40.0040.0186.48
5.0.30.0040.0306.29
5.0.20.0050.0216.25
5.0.10.0020.0246.24
5.0.00.0030.0356.23
4.4.90.0040.0224.78
4.4.80.0040.0194.76
4.4.70.0050.0144.76
4.4.60.0050.0204.76
4.4.50.0050.0184.77
4.4.40.0040.0324.71
4.4.30.0040.0204.76
4.4.20.0040.0224.85
4.4.10.0010.0194.85
4.4.00.0040.0324.76
4.3.110.0060.0194.66
4.3.100.0030.0204.66
4.3.90.0030.0154.63
4.3.80.0040.0294.59
4.3.70.0050.0194.63
4.3.60.0020.0144.62
4.3.50.0020.0164.63
4.3.40.0060.0294.54
4.3.30.0020.0223.28
4.3.20.0020.0183.25
4.3.10.0020.0223.22
4.3.00.0130.0237.15