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

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).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0070.00716.50
8.3.50.0120.00921.95
8.3.40.0070.01018.66
8.3.30.0090.00619.04
8.3.20.0070.00020.26
8.3.10.0040.00423.61
8.3.00.0080.00019.13
8.2.180.0140.00018.16
8.2.170.0040.01122.96
8.2.160.0100.00320.53
8.2.150.0030.00624.18
8.2.140.0070.00424.66
8.2.130.0000.00826.16
8.2.120.0030.00522.26
8.2.110.0030.00622.20
8.2.100.0030.00917.78
8.2.90.0040.00419.05
8.2.80.0030.00517.97
8.2.70.0070.00317.50
8.2.60.0000.00717.80
8.2.50.0050.00318.07
8.2.40.0030.00619.88
8.2.30.0070.00018.02
8.2.20.0050.00317.53
8.2.10.0000.00717.91
8.2.00.0000.00817.57
8.1.280.0110.00725.92
8.1.270.0050.00322.14
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0000.00923.85
8.1.230.0070.00418.95
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0000.00817.38
8.1.180.0080.00018.10
8.1.170.0080.00018.51
8.1.160.0040.00421.98
8.1.150.0030.00518.53
8.1.140.0000.00717.20
8.1.130.0070.00017.63
8.1.120.0070.00017.34
8.1.110.0030.00617.38
8.1.100.0030.00717.23
8.1.90.0040.00417.23
8.1.80.0030.00317.31
8.1.70.0000.00717.24
8.1.60.0080.00017.45
8.1.50.0050.00317.35
8.1.40.0000.00717.38
8.1.30.0080.00017.51
8.1.20.0080.00017.52
8.1.10.0000.00817.34
8.1.00.0000.00717.36
8.0.300.0000.00720.85
8.0.290.0000.00817.05
8.0.280.0040.00418.38
8.0.270.0070.00017.18
8.0.260.0000.00617.03
8.0.250.0000.00716.83
8.0.240.0000.00916.73
8.0.230.0050.00216.81
8.0.220.0030.00316.67
8.0.210.0040.00316.64
8.0.200.0000.00616.79
8.0.190.0040.00416.71
8.0.180.0000.00716.83
8.0.170.0040.00416.81
8.0.160.0030.00316.78
8.0.150.0050.00316.72
8.0.140.0080.00016.64
8.0.130.0000.00613.16
8.0.120.0000.00916.74
8.0.110.0040.00416.70
8.0.100.0000.00716.69
8.0.90.0000.00716.72
8.0.80.0160.00016.69
8.0.70.0000.00716.72
8.0.60.0000.00716.81
8.0.50.0040.00416.57
8.0.30.0040.01517.12
8.0.20.0090.01217.40
8.0.10.0060.00316.83
8.0.00.0090.00816.57
7.4.330.0020.00215.08
7.4.320.0070.00016.48
7.4.300.0060.00016.46
7.4.290.0000.00716.37
7.4.280.0040.00416.34
7.4.270.0030.00316.38
7.4.260.0060.00016.36
7.4.250.0080.00016.29
7.4.240.0030.00316.37
7.4.230.0070.00016.17
7.4.220.0230.00416.48
7.4.210.0070.00716.39
7.4.200.0070.00016.46
7.4.190.0030.00316.62
7.4.160.0110.00416.41
7.4.150.0140.00317.40
7.4.140.0080.00917.86
7.4.130.0110.00616.58
7.4.120.0110.00516.39
7.4.110.0140.00716.21
7.4.100.0100.00716.49
7.4.90.0130.00316.39
7.4.80.0100.01019.39
7.4.70.0080.00816.36
7.4.60.0040.01216.37
7.4.50.0030.00516.36
7.4.40.0070.00722.77
7.4.30.0150.00616.29
7.3.330.0060.00013.03
7.3.320.0040.00412.91
7.3.310.0030.00316.13
7.3.300.0030.00316.02
7.3.290.0060.00816.18
7.3.280.0120.00616.14
7.3.270.0030.01417.40
7.3.260.0160.00916.38
7.3.250.0080.01016.21
7.3.240.0120.00916.33
7.3.230.0100.01316.39
7.3.210.0100.01216.35
7.3.200.0040.01519.39
7.3.190.0160.00716.22
7.3.180.0060.01016.24
7.3.170.0160.00016.40
7.3.160.0040.01116.12
7.2.330.0060.01016.43
7.2.320.0030.01316.57
7.2.310.0140.00316.59
7.2.300.0080.01116.34
7.2.290.0070.01016.57
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

preferences:
46.86 ms | 401 KiB | 5 Q