3v4l.org

run code in 300+ PHP versions simultaneously
<?php // ============================================================================= // FUNCTIONS.PHP // ----------------------------------------------------------------------------- // Overwrite or add your own custom functions to X in this file. // ============================================================================= // ============================================================================= // TABLE OF CONTENTS // ----------------------------------------------------------------------------- // 01. Enqueue Parent Stylesheet // 02. Additional Functions // ============================================================================= // Enqueue Parent Stylesheet // ============================================================================= // Additional Functions // ============================================================================= //* custom date function displaydate(){ return date('F'); } add_shortcode('date', 'displaydate'); //add hatom data function add_suf_hatom_data($content) { $t = get_the_modified_time('F jS, Y'); $author = get_the_author(); $title = get_the_title(); if (is_home() || is_singular() || is_archive() ) { $content .= '<div class="hatom-extra" style="display:none;visibility:hidden;"><span class="entry-title">'.$title.'</span> was last modified: <span class="updated"> '.$t.'</span> by <span class="author vcard"><span class="fn">'.$author.'</span></span></div>'; } return $content; } add_filter('the_content', 'add_suf_hatom_data'); // Add Google Tag Manager Code // ============================================================================= function add_google_tag_manager_code(){ ?> <!-- Google Tag Manager --> <noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-N67NBX" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= '//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-N67NBX');</script> <!-- End Google Tag Manager --> <?php } add_action( 'x_before_site_begin', 'gtm_tracking_code' ); // End Add Google Tag Manager Code // =============================================================================

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.0040.01818.31
8.3.50.0160.00221.07
8.3.40.0070.00718.97
8.3.30.0060.00918.70
8.3.20.0040.00420.23
8.3.10.0070.00023.66
8.3.00.0000.00822.57
8.2.180.0120.00418.29
8.2.170.0170.00322.96
8.2.160.0130.00022.09
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0050.00326.16
8.2.120.0080.00017.50
8.2.110.0060.00319.33
8.2.100.0090.00317.63
8.2.90.0040.00419.09
8.2.80.0060.00317.97
8.2.70.0060.00317.63
8.2.60.0030.00517.90
8.2.50.0080.00018.07
8.2.40.0000.00821.25
8.2.30.0040.00419.74
8.2.20.0040.00417.70
8.2.10.0040.00418.11
8.2.00.0000.00718.00
8.1.280.0070.00725.92
8.1.270.0050.00320.25
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0050.00322.73
8.1.230.0060.00617.42
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0070.00317.23
8.1.190.0030.00617.10
8.1.180.0000.00818.10
8.1.170.0050.00318.44
8.1.160.0040.00421.85
8.1.150.0040.00418.63
8.1.140.0000.00917.24
8.1.130.0000.00817.57
8.1.120.0040.00417.36
8.1.110.0050.00217.32
8.1.100.0040.00417.31
8.1.90.0040.00417.18
8.1.80.0050.00317.23
8.1.70.0070.00017.26
8.1.60.0040.00417.43
8.1.50.0030.00617.46
8.1.40.0080.00017.45
8.1.30.0000.00817.49
8.1.20.0000.00717.59
8.1.10.0040.00417.38
8.1.00.0040.00417.30
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0030.00318.25
8.0.270.0070.00017.20
8.0.260.0000.00717.19
8.0.250.0020.00516.95
8.0.240.0070.00016.85
8.0.230.0040.00416.91
8.0.220.0040.00416.91
8.0.210.0040.00416.80
8.0.200.0030.00316.92
8.0.190.0040.00416.93
8.0.180.0000.00716.80
8.0.170.0000.00716.95
8.0.160.0000.00716.76
8.0.150.0000.00716.91
8.0.140.0040.00416.79
8.0.130.0040.00413.36
8.0.120.0080.00016.91
8.0.110.0050.00316.71
8.0.100.0040.00416.94
8.0.90.0000.00716.95
8.0.80.0040.01116.96
8.0.70.0030.00516.74
8.0.60.0070.00016.93
8.0.50.0000.00716.76
8.0.30.0150.00217.01
8.0.20.0080.01117.40
8.0.10.0070.00016.86
8.0.00.0080.01016.65
7.4.330.0000.00715.08
7.4.320.0030.00316.48
7.4.300.0030.00316.53
7.4.290.0050.00316.45
7.4.280.0050.00316.45
7.4.270.0000.00616.50
7.4.260.0050.00216.57
7.4.250.0060.00316.49
7.4.240.0020.00516.41
7.4.230.0000.00816.34
7.4.220.0120.01516.38
7.4.210.0090.00516.58
7.4.200.0030.00316.42
7.4.160.0030.01416.48
7.4.150.0110.00717.40
7.4.140.0130.01117.86
7.4.130.0140.00916.54
7.4.120.0060.01216.41
7.4.110.0090.00916.43
7.4.100.0140.00416.48
7.4.90.0100.00716.40
7.4.80.0090.00919.39
7.4.70.0080.00816.70
7.4.60.0120.00916.43
7.4.50.0070.00016.43
7.4.40.0090.01216.39
7.4.30.0130.01016.45
7.4.00.0070.01014.95
7.3.330.0030.00313.31
7.3.320.0000.00813.30
7.3.310.0030.00616.21
7.3.300.0000.00816.33
7.3.290.0030.00316.23
7.3.280.0080.00916.27
7.3.270.0080.00817.40
7.3.260.0100.01016.59
7.3.250.0040.01416.43
7.3.240.0030.01316.37
7.3.230.0140.00416.48
7.3.210.0140.00616.32
7.3.200.0060.01519.39
7.3.190.0100.00516.38
7.3.180.0100.00616.54
7.3.170.0060.01116.53
7.3.160.0060.01216.35
7.2.330.0100.01016.32
7.2.320.0100.00916.62
7.2.310.0130.00416.32
7.2.300.0130.00316.61
7.2.290.0030.01316.26
7.2.60.0060.00616.76
7.1.200.0070.00715.65
7.1.70.0000.00717.04
7.1.60.0090.01519.12
7.1.50.0060.01516.86
7.1.00.0000.08022.37
7.0.200.0070.00316.63
7.0.80.0130.08019.92
7.0.70.0030.08719.89
7.0.60.0000.08319.96
7.0.50.0100.07320.25
7.0.40.0100.08019.96
7.0.30.0100.05020.05
7.0.20.0100.09020.05
7.0.10.0070.08020.10
7.0.00.0030.04320.12
5.6.280.0070.05720.83
5.6.230.0130.07720.62
5.6.220.0000.08320.69
5.6.210.0100.07320.47
5.6.200.0030.08721.06
5.6.190.0030.04721.04
5.6.180.0070.08321.12
5.6.170.0070.08321.02
5.6.160.0070.07721.18
5.6.150.0070.08320.95
5.6.140.0100.06721.06
5.6.130.0070.05721.11
5.6.120.0070.08721.02
5.6.110.0070.08021.13
5.6.100.0100.07320.93
5.6.90.0070.04720.92
5.6.80.0070.06720.48
5.6.70.0000.06720.47
5.6.60.0070.09020.43
5.6.50.0030.08020.54
5.6.40.0030.06020.41
5.6.30.0130.04320.48
5.6.20.0100.07720.53
5.6.10.0170.07020.53
5.6.00.0270.04720.48
5.5.370.0000.09320.41
5.5.360.0130.04720.33
5.5.350.0070.05320.44
5.5.340.0100.08020.94
5.5.330.0130.08020.89
5.5.320.0100.08020.91
5.5.310.0170.07020.80
5.5.300.0030.04320.81
5.5.290.0100.07320.81
5.5.280.0070.08720.91
5.5.270.0100.08320.79
5.5.260.0100.07320.80
5.5.250.0100.08020.57
5.5.240.0070.06720.32
5.5.230.0000.09020.21
5.5.220.0030.08320.02
5.5.210.0070.04720.25
5.5.200.0100.07719.98
5.5.190.0030.05020.29
5.5.180.0070.08020.09
5.5.160.0070.05720.12
5.5.150.0170.07720.28
5.5.140.0030.08720.18
5.5.130.0130.07320.21
5.5.120.0070.08020.16
5.5.110.0030.08320.22
5.5.100.0070.08020.09
5.5.90.0000.05320.14
5.5.80.0130.07720.16
5.5.70.0000.08320.12
5.5.60.0100.07720.09
5.5.50.0130.06320.13
5.5.40.0070.04320.17
5.5.30.0100.04020.04
5.5.20.0030.08320.00
5.5.10.0070.05319.99
5.5.00.0170.05720.04
5.4.450.0100.05719.38
5.4.440.0170.06719.18
5.4.430.0030.04719.22
5.4.420.0030.04719.36
5.4.410.0070.08019.10
5.4.400.0100.07719.24
5.4.390.0100.07719.18
5.4.380.0070.08319.21
5.4.370.0070.06019.03
5.4.360.0070.06718.95
5.4.350.0030.07318.84
5.4.340.0000.08319.04
5.4.320.0130.07319.05
5.4.310.0070.06019.04
5.4.300.0070.06719.04
5.4.290.0130.07318.83
5.4.280.0030.07719.04
5.4.270.0100.07318.94
5.4.260.0030.08019.14
5.4.250.0100.06018.84
5.4.240.0130.07319.08
5.4.230.0130.07719.13
5.4.220.0100.07318.84
5.4.210.0030.04718.94
5.4.200.0100.06719.22
5.4.190.0130.04018.84
5.4.180.0030.08319.15
5.4.170.0030.08319.17
5.4.160.0170.07019.02
5.4.150.0030.05019.16
5.4.140.0000.04316.49
5.4.130.0070.08016.46
5.4.120.0130.07016.48
5.4.110.0100.07316.38
5.4.100.0100.07016.41
5.4.90.0130.06716.45
5.4.80.0100.06716.48
5.4.70.0100.07316.38
5.4.60.0130.07316.33
5.4.50.0130.07016.25
5.4.40.0070.07716.52
5.4.30.0100.07316.25
5.4.20.0030.08016.47
5.4.10.0100.07016.32
5.4.00.0030.06315.75

preferences:
92.88 ms | 401 KiB | 5 Q