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 // ============================================================================= add_filter( 'x_enqueue_parent_stylesheet', '__return_true' ); // 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.0140.00718.30
8.3.50.0080.01221.02
8.3.40.0110.00418.67
8.3.30.0130.00318.73
8.3.20.0060.00320.22
8.3.10.0040.00423.70
8.3.00.0080.00022.40
8.2.180.0120.00816.60
8.2.170.0120.00322.96
8.2.160.0100.00322.13
8.2.150.0060.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00417.63
8.2.110.0100.00020.37
8.2.100.0030.00917.50
8.2.90.0040.00419.09
8.2.80.0040.00417.97
8.2.70.0090.00017.50
8.2.60.0040.00417.80
8.2.50.0080.00018.07
8.2.40.0040.00421.10
8.2.30.0000.00719.71
8.2.20.0050.00317.70
8.2.10.0070.00017.98
8.2.00.0040.00418.03
8.1.280.0110.00425.92
8.1.270.0050.00320.43
8.1.260.0000.00926.35
8.1.250.0080.00028.09
8.1.240.0060.00324.02
8.1.230.0000.01217.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0030.00716.98
8.1.190.0040.00417.13
8.1.180.0040.00418.10
8.1.170.0030.00618.48
8.1.160.0000.00722.01
8.1.150.0030.00518.68
8.1.140.0040.00417.23
8.1.130.0040.00417.53
8.1.120.0020.00517.39
8.1.110.0030.00317.18
8.1.100.0070.00017.19
8.1.90.0070.00017.29
8.1.80.0040.00417.33
8.1.70.0030.00317.38
8.1.60.0060.00317.49
8.1.50.0040.00417.29
8.1.40.0040.00417.46
8.1.30.0040.00417.59
8.1.20.0000.00717.56
8.1.10.0000.00817.53
8.1.00.0060.00317.43
8.0.300.0080.00018.77
8.0.290.0060.00316.63
8.0.280.0000.00718.34
8.0.270.0070.00017.20
8.0.260.0000.00617.21
8.0.250.0040.00416.84
8.0.240.0000.00817.04
8.0.230.0040.00416.97
8.0.220.0040.00416.77
8.0.210.0000.00716.93
8.0.200.0030.00316.97
8.0.190.0030.00516.86
8.0.180.0040.00416.92
8.0.170.0030.00516.82
8.0.160.0030.00316.81
8.0.150.0000.00716.71
8.0.140.0040.00416.71
8.0.130.0000.00513.32
8.0.120.0030.00516.88
8.0.110.0040.00416.91
8.0.100.0000.00716.67
8.0.90.0000.00716.70
8.0.80.0160.00016.88
8.0.70.0050.00316.94
8.0.60.0060.00316.96
8.0.50.0000.00716.93
8.0.30.0070.00917.15
8.0.20.0080.01217.40
8.0.10.0030.00516.74
8.0.00.0100.00716.65
7.4.330.0070.00015.08
7.4.320.0030.00316.35
7.4.300.0030.00316.53
7.4.290.0030.00616.52
7.4.280.0070.00016.51
7.4.270.0000.00716.53
7.4.260.0080.00016.59
7.4.250.0000.00816.36
7.4.240.0050.00216.56
7.4.230.0000.00716.58
7.4.220.0180.00916.48
7.4.210.0080.00716.47
7.4.200.0070.00016.36
7.4.160.0080.00816.46
7.4.150.0120.00617.40
7.4.140.0080.01117.86
7.4.130.0110.00916.40
7.4.120.0070.00916.50
7.4.110.0100.00716.62
7.4.100.0130.00716.46
7.4.90.0100.00716.64
7.4.80.0090.01319.39
7.4.70.0100.00716.42
7.4.60.0060.01016.34
7.4.50.0000.00516.62
7.4.40.0090.01216.29
7.4.30.0060.01616.43
7.4.00.0070.01014.91
7.3.330.0000.00713.38
7.3.320.0050.00313.10
7.3.310.0030.00316.20
7.3.300.0030.00316.27
7.3.290.0040.00416.38
7.3.280.0110.01116.30
7.3.270.0090.00917.40
7.3.260.0100.01016.26
7.3.250.0120.00616.49
7.3.240.0100.00716.46
7.3.230.0100.00716.40
7.3.210.0070.01116.35
7.3.200.0080.00819.39
7.3.190.0080.01216.49
7.3.180.0090.00616.39
7.3.170.0030.01316.39
7.3.160.0060.01016.26
7.2.330.0200.00316.55
7.2.320.0090.00916.56
7.2.310.0060.01016.47
7.2.300.0060.01016.55
7.2.290.0090.00616.50
7.2.60.0030.01316.63
7.2.00.0040.01119.27
7.1.200.0100.00315.79
7.1.100.0180.01117.90
7.1.70.0000.00717.14
7.1.60.0160.00619.12
7.1.50.0070.01016.90
7.1.00.0030.07722.40
7.0.200.0030.00716.76
7.0.90.0000.07721.77
7.0.80.0000.07721.73
7.0.70.0070.08021.78
7.0.60.0000.07721.75
7.0.50.0070.08022.07
7.0.40.0070.05720.15
7.0.30.0030.04720.17
7.0.20.0070.08020.11
7.0.10.0000.08320.07
7.0.00.0000.09020.07
5.6.280.0100.05720.90
5.6.240.0070.08320.65
5.6.230.0030.04320.69
5.6.220.0100.07720.59
5.6.210.0030.08320.58
5.6.200.0170.07721.15
5.6.190.0000.04320.96
5.6.180.0030.06321.11
5.6.170.0030.08321.06
5.6.160.0000.09020.97
5.6.150.0130.07321.04
5.6.140.0030.04721.11
5.6.130.0070.07721.18
5.6.120.0100.04721.03
5.6.110.0070.08320.96
5.6.100.0070.07021.13
5.6.90.0100.07721.16
5.6.80.0030.05720.40
5.6.70.0030.03320.50
5.6.60.0030.07720.41
5.6.50.0070.04720.57
5.6.40.0030.04320.41
5.6.30.0000.06020.33
5.6.20.0000.03720.43
5.6.10.0070.06320.41
5.6.00.0070.08020.30
5.5.380.0030.04320.52
5.5.370.0100.07320.42
5.5.360.0000.08320.37
5.5.350.0030.07020.43
5.5.340.0170.07720.90
5.5.330.0030.08020.93
5.5.320.0030.08020.84
5.5.310.0070.07320.92
5.5.300.0100.08320.89
5.5.290.0130.06720.77
5.5.280.0070.07020.92
5.5.270.0030.08720.87
5.5.260.0000.08320.89
5.5.250.0070.04320.72
5.5.240.0030.04720.22
5.5.230.0030.08020.22
5.5.220.0000.03720.11
5.5.210.0070.03720.22
5.5.200.0070.07320.20
5.5.190.0100.07320.23
5.5.180.0000.07720.14
5.5.160.0000.04020.15
5.5.150.0000.08020.24
5.5.140.0030.07320.24
5.5.130.0030.04020.09
5.5.120.0100.06020.09
5.5.110.0170.03720.25
5.5.100.0030.07319.97
5.5.90.0130.03319.98
5.5.80.0100.06019.96
5.5.70.0130.05720.07
5.5.60.0030.04020.15
5.5.50.0130.06720.09
5.5.40.0100.06020.17
5.5.30.0000.07320.09
5.5.20.0100.07720.09
5.5.10.0130.03720.08
5.5.00.0070.07720.04
5.4.450.0030.08019.36
5.4.440.0030.05719.30
5.4.430.0030.07719.46
5.4.420.0000.08319.27
5.4.410.0030.08019.25
5.4.400.0030.06719.05
5.4.390.0070.08019.14
5.4.380.0000.03319.16
5.4.370.0070.06718.95
5.4.360.0030.05019.20
5.4.350.0000.07719.23
5.4.340.0070.08718.92
5.4.320.0100.07019.16
5.4.310.0070.08018.90
5.4.300.0030.07719.02
5.4.290.0030.06319.16
5.4.280.0030.06719.14
5.4.270.0130.07019.09
5.4.260.0030.07719.13
5.4.250.0000.05719.08
5.4.240.0070.08018.89
5.4.230.0030.03719.23
5.4.220.0000.08319.17
5.4.210.0100.07319.03
5.4.200.0100.04019.03
5.4.190.0030.06318.89
5.4.180.0030.07719.04
5.4.170.0070.07718.84
5.4.160.0070.07319.14
5.4.150.0030.04018.86
5.4.140.0100.03016.55
5.4.130.0030.06716.56
5.4.120.0030.08016.54
5.4.110.0030.03716.52
5.4.100.0070.06716.41
5.4.90.0130.06716.39
5.4.80.0030.05016.54
5.4.70.0000.07016.38
5.4.60.0100.06016.48
5.4.50.0070.05316.33
5.4.40.0000.04716.45
5.4.30.0030.03316.42
5.4.20.0000.08016.45
5.4.10.0070.05016.25
5.4.00.0030.05315.79

preferences:
58.03 ms | 401 KiB | 5 Q