3v4l.org

run code in 300+ PHP versions simultaneously
<?php $metrics = array ( 'nb_visits' => array ( 'name' => 'Visits', 'id' => 'nb_visits', 'documentation' => 'If a visitor comes to your website for the first time or if they visit a page more than 30 minutes after their last page view, this will be recorded as a new visit.', ), 'nb_actions' => array ( 'name' => 'Actions', 'id' => 'nb_actions', 'documentation' => 'The number of actions performed by your visitors. Actions can be page views, internal site searches, downloads or outlinks.', ), 'nb_pageviews' => array ( 'name' => 'Pageviews', 'id' => 'nb_pageviews', 'documentation' => 'The number of times this page was visited.', ), 'nb_uniq_visitors' => array ( 'name' => 'Unique visitors', 'id' => 'nb_uniq_visitors', 'documentation' => 'The number of unduplicated visitors coming to your website. Every user is only counted once, even if they visit the website multiple times a day.', ), 'nb_users' => array ( 'name' => 'Users', 'id' => 'nb_users', 'documentation' => 'The number of users logged in your website. It is the number of unique active users that have a User ID set (via the Tracking code function \'setUserId\').', ), 'bounce_rate' => array ( 'name' => 'Bounce Rate', 'id' => 'bounce_rate', 'documentation' => 'The percentage of visits that only had a single pageview. This means, that the visitor left the website directly from the entrance page.', ), 'nb_actions_per_visit' => array ( 'name' => 'Actions per Visit', 'id' => 'nb_actions_per_visit', 'documentation' => 'The average number of actions (page views, site searches, downloads or outlinks) that were performed during the visits.', ), 'avg_time_on_site' => array ( 'name' => 'Avg. Visit Duration (in seconds)', 'id' => 'avg_time_on_site', 'documentation' => 'The average duration of a visit.', ), 'conversion_rate' => array ( 'name' => 'Conversion Rate', 'id' => 'conversion_rate', 'documentation' => 'The percentage of visits that triggered a goal conversion.', ), 'nb_uniq_pageviews' => array ( 'name' => 'Unique Pageviews', 'id' => 'nb_uniq_pageviews', 'documentation' => 'The number of visits that included this page. If a page was viewed multiple times during one visit, it is only counted once.', ), 'nb_downloads' => array ( 'name' => 'Downloads', 'id' => 'nb_downloads', 'documentation' => 'The number of times this link was clicked.', ), 'nb_uniq_downloads' => array ( 'name' => 'Unique Downloads', 'id' => 'nb_uniq_downloads', 'documentation' => 'The number of visits that involved a click on this link. If a link was clicked multiple times during one visit, it is only counted once.', ), 'nb_outlinks' => array ( 'name' => 'Outlinks', 'id' => 'nb_outlinks', 'documentation' => 'The number of times this link was clicked.', ), 'nb_uniq_outlinks' => array ( 'name' => 'Unique Outlinks', 'id' => 'nb_uniq_outlinks', 'documentation' => 'The number of visits that involved a click on this link. If a link was clicked multiple times during one visit, it is only counted once.', ), 'nb_searches' => array ( 'name' => 'Searches', 'id' => 'nb_searches', 'documentation' => 'The number of visits that searched for this keyword on your website\'s search engine.', ), 'avg_time_generation' => array ( 'name' => 'Avg. generation time', 'id' => 'avg_time_generation', 'documentation' => 'The average time it took to generate the page. This metric includes the time it took the server to generate the web page, plus the time it took for the visitor to download the response from the server. A lower \'Avg. generation time\' means a faster website for your visitors!', ), 'nb_hits' => array ( 'name' => 'Pageviews', 'id' => 'nb_hits', 'documentation' => 'The number of times this page was visited.', ), 'Unique Pageviews (Actions)' => array ( 'name' => 'Unique Pageviews (Actions)', 'id' => 'nb_visits', 'documentation' => 'The number of visits that included this page. If a page was viewed multiple times during one visit, it is only counted once.', ), 'avg_time_on_page' => array ( 'name' => 'Avg. time on page', 'id' => 'avg_time_on_page', 'documentation' => 'The average amount of time visitors spent on this page (only the page, not the entire website).', ), 'Bounce Rate (Actions)' => array ( 'name' => 'Bounce Rate (Actions)', 'id' => 'bounce_rate', 'documentation' => 'The percentage of visits that started on this page and left the website straight away.', ), 'exit_rate' => array ( 'name' => 'Exit rate', 'id' => 'exit_rate', 'documentation' => 'The percentage of visits that left the website after viewing this page.', ), 'entry_nb_visits' => array ( 'name' => 'Entrances', 'id' => 'entry_nb_visits', 'documentation' => 'Number of visits that started on this page.', ), 'entry_bounce_count' => array ( 'name' => 'Bounces', 'id' => 'entry_bounce_count', 'documentation' => 'Number of visits that started and ended on this page. This means that the visitor left the website after viewing only this page.', ), 'exit_nb_visits' => array ( 'name' => 'Exits', 'id' => 'exit_nb_visits', 'documentation' => 'Number of visits that ended on this page.', ), 'Searches (Actions)' => array ( 'name' => 'Searches (Actions)', 'id' => 'nb_visits', 'documentation' => 'The number of visits that searched for this keyword on your website\'s search engine.', ), 'nb_pages_per_search' => array ( 'name' => 'Search Results pages', 'id' => 'nb_pages_per_search', 'documentation' => 'Visitors will search on your website, and sometimes click "next" to view more results. This is the average number of search results pages viewed for this keyword.', ), '% Search Exits (Actions)' => array ( 'name' => '% Search Exits (Actions)', 'id' => 'exit_rate', 'documentation' => 'The percentage of visits that left the website after searching for this Keyword on your Site Search engine.', ), 'nb_hits_following_search' => array ( 'name' => 'Clicked in search results', 'id' => 'nb_hits_following_search', 'documentation' => 'The number of times this Page was visited after a visitor did a search on your website, and clicked on this page in the search results.', ), 'Unique Clicks (Actions)' => array ( 'name' => 'Unique Clicks (Actions)', 'id' => 'nb_visits', 'documentation' => 'The number of visits that involved a click on this link. If a link was clicked multiple times during one visit, it is only counted once.', ), 'Unique Downloads (Actions)' => array ( 'name' => 'Unique Downloads (Actions)', 'id' => 'nb_visits', 'documentation' => 'The number of visits that involved a click on this link. If a link was clicked multiple times during one visit, it is only counted once.', ), 'nb_events' => array ( 'name' => 'Events', 'id' => 'nb_events', 'documentation' => 'Total number of events', ), 'sum_event_value' => array ( 'name' => 'Event value', 'id' => 'sum_event_value', 'documentation' => 'The sum of event values', ), 'min_event_value' => array ( 'name' => 'Minimum Event value', 'id' => 'min_event_value', 'documentation' => 'The minimum value for this event', ), 'max_event_value' => array ( 'name' => 'Maximum Event value', 'id' => 'max_event_value', 'documentation' => 'The maximum value for this event', ), 'nb_events_with_value' => array ( 'name' => 'Events with a value', 'id' => 'nb_events_with_value', 'documentation' => 'Number of events where an Event value was set', ), 'avg_event_value' => array ( 'name' => 'The average of all values for this event', 'id' => 'avg_event_value', 'documentation' => 'The average of all values for this event', ), 'nb_impressions' => array ( 'name' => 'Impressions', 'id' => 'nb_impressions', 'documentation' => 'The number of times a content block, such as a banner or an ad, was displayed on a page.', ), 'nb_interactions' => array ( 'name' => 'Content Interactions', 'id' => 'nb_interactions', 'documentation' => 'The number of times a content block was interacted with (eg, a \'click\' on a banner or ad).', ), 'interaction_rate' => array ( 'name' => 'Interaction Rate', 'id' => 'interaction_rate', 'documentation' => 'The ratio of content impressions to interactions.', ), 'avg_time_network' => array ( 'name' => 'Avg. network time', 'id' => 'avg_time_network', 'documentation' => 'Average time (in seconds) it takes to connect to the server. This includes the time needed to lookup DNS and establish a TCP connection. This value might be 0 after the first request to a domain as the browser might cache the connection.', ), 'avg_time_server' => array ( 'name' => 'Avg. server time', 'id' => 'avg_time_server', 'documentation' => 'Average time (in seconds) it takes the server to generate the page. This is the time between the server receiving the request and starting to serve the response.', ), 'avg_time_transfer' => array ( 'name' => 'Avg. transfer time', 'id' => 'avg_time_transfer', 'documentation' => 'Average time (in seconds) it takes the browser to download the response from the server. This is the time from receiving the first byte till the response is complete.', ), 'avg_time_dom_processing' => array ( 'name' => 'Avg. DOM processing time', 'id' => 'avg_time_dom_processing', 'documentation' => 'Average time (in seconds) the browser spends loading the webpage after the response was fully received and before the user can start interacting with it.', ), 'avg_time_dom_completion' => array ( 'name' => 'Avg. DOM completion time', 'id' => 'avg_time_dom_completion', 'documentation' => 'Average time (in seconds) it takes for the browser to load media and execute any Javascript code listening for the DOMContentLoaded event after the webpage was loaded and the user can already interact with it.', ), 'avg_time_on_load' => array ( 'name' => 'Avg. on load time', 'id' => 'avg_time_on_load', 'documentation' => 'Average time (in seconds) it takes the browser to execute Javascript code waiting for the window.load event. This event is triggered once the DOM has completely rendered.', ), 'avg_page_load_time' => array ( 'name' => 'Avg. page load time', 'id' => 'avg_page_load_time', 'documentation' => 'Average time (in seconds) it takes from requesting a page until the page is fully rendered within the browser', ), 'funnel_nb_conversions' => array ( 'name' => 'Funnel conversions', 'id' => 'funnel_nb_conversions', 'documentation' => 'The number of visits that have completed the funnel.', ), 'funnel_sum_entries' => array ( 'name' => 'Funnel entries', 'id' => 'funnel_sum_entries', 'documentation' => 'The sum of all visits that have entered the funnel.', ), 'funnel_sum_exits' => array ( 'name' => 'Funnel exits', 'id' => 'funnel_sum_exits', 'documentation' => 'The sum of all visits that have left the funnel before converting the funnel.', ), 'funnel_conversion_rate' => array ( 'name' => 'Funnel conversion rate', 'id' => 'funnel_conversion_rate', 'documentation' => 'The percentage of visits that have completed the funnel after entering it. It is the number of funnel conversions divided by the sum of all funnel entries.', ), 'funnel_abandoned_rate' => array ( 'name' => 'Funnel abandoned rate', 'id' => 'funnel_abandoned_rate', 'documentation' => 'The percentage of visits that have entered the funnel but did not complete it. It is the number of funnel exits divided by the number of funnel entries.', ), 'step_nb_visits' => array ( 'name' => 'Step visits', 'id' => 'step_nb_visits', 'documentation' => 'The number of visits that have entered this step of the funnel.', ), 'step_nb_entries' => array ( 'name' => 'Step entries', 'id' => 'step_nb_entries', 'documentation' => 'The number of visits that have entered the funnel at this step.', ), 'step_nb_exits' => array ( 'name' => 'Step exits', 'id' => 'step_nb_exits', 'documentation' => 'The number of visits that have left the funnel at this step.', ), 'step_nb_proceeded' => array ( 'name' => 'Step proceeded', 'id' => 'step_nb_proceeded', 'documentation' => 'The number of visits that have proceeded from this step to the next step in the funnel.', ), 'step_proceeded_rate' => array ( 'name' => 'Proceeded Rate', 'id' => 'step_proceeded_rate', 'documentation' => 'The percentage of visits that have proceeded from this step of the funnel to the next step.', ), ); usort($metrics, function ($a, $b) { return strcasecmp($a['name'], $b['name']); }); echo json_encode($metrics);

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.40.0120.00919.18
8.3.30.0110.00418.78
8.3.20.0040.00424.18
8.3.10.0080.00024.66
8.3.00.0080.00026.16
8.2.170.0070.00718.96
8.2.160.0070.00722.96
8.2.150.0030.00525.66
8.2.140.0030.00624.66
8.2.130.0060.00326.16
8.2.120.0040.00426.16
8.2.110.0030.00621.04
8.2.100.0000.01117.91
8.2.90.0030.00618.03
8.2.80.0000.00817.97
8.2.70.0040.00417.50
8.2.60.0030.00717.92
8.2.50.0050.00318.07
8.2.40.0000.00817.63
8.2.30.0040.00417.74
8.2.20.0050.00219.55
8.2.10.0020.00518.83
8.2.00.0070.00019.35
8.1.270.0040.00423.99
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00722.61
8.1.230.0120.00020.93
8.1.220.0000.00817.91
8.1.210.0040.00418.77
8.1.200.0040.00417.48
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0080.00018.62
8.1.160.0080.00020.74
8.1.150.0000.00718.57
8.1.140.0070.00017.38
8.1.130.0050.00218.86
8.1.120.0000.00717.53
8.1.110.0070.00417.51
8.1.100.0070.00017.41
8.1.90.0040.00417.49
8.1.80.0060.00617.56
8.1.70.0050.00217.43
8.1.60.0060.00317.57
8.1.50.0060.00317.48
8.1.40.0050.00317.61
8.1.30.0060.00317.72
8.1.20.0040.00417.75
8.1.10.0040.00417.54
8.1.00.0040.00417.62
8.0.300.0000.00720.34
8.0.290.0080.00016.88
8.0.280.0000.00718.50
8.0.270.0070.00016.95
8.0.260.0030.00318.51
8.0.250.0030.00317.05
8.0.240.0040.00417.11
8.0.230.0030.00317.00
8.0.220.0070.00016.93
8.0.210.0050.00216.85
8.0.200.0030.00616.98
8.0.190.0030.00516.88
8.0.180.0080.00016.97
8.0.170.0040.00416.87
8.0.160.0040.00417.00
8.0.150.0000.00716.82
8.0.140.0030.00616.92
8.0.130.0030.00313.34
8.0.120.0030.00616.94
8.0.110.0080.00016.92
8.0.100.0040.00416.96
8.0.90.0000.00716.91
8.0.80.0000.00716.95
8.0.70.0000.00916.97
8.0.60.0080.00016.98
8.0.50.0050.00316.98
8.0.30.0060.00316.94
8.0.20.0080.00017.04
8.0.10.0040.00417.10
8.0.00.0030.00517.07
7.4.330.0050.00015.55
7.4.320.0000.00816.56
7.4.300.0060.00016.70
7.4.290.0040.00416.53
7.4.280.0000.00716.59
7.4.270.0040.00416.58
7.4.260.0090.00016.50
7.4.250.0040.00416.58
7.4.240.0050.00216.55
7.4.230.0040.00416.67
7.4.220.0030.00516.67
7.4.210.0050.00216.59
7.4.200.0050.00316.71
7.4.190.0000.00816.74
7.4.180.0000.00716.71
7.4.160.0030.00316.66
7.4.150.0040.00416.60
7.4.140.0030.00316.54
7.4.130.0000.00716.48
7.4.120.0000.00716.44
7.4.110.0050.00316.40
7.4.100.0000.00716.48
7.4.90.0000.00716.41
7.4.80.0070.00016.45
7.4.70.0030.00316.45
7.4.60.0070.00016.41
7.4.50.0070.00016.47
7.4.40.0000.00716.43
7.4.30.0070.00016.38
7.4.20.0070.00016.55
7.4.10.0030.00316.60
7.4.00.0030.00316.66
7.3.330.0000.00716.36
7.3.320.0000.00513.36
7.3.310.0030.00316.23
7.3.300.0030.00316.25
7.3.290.0000.00716.34
7.3.280.0070.00016.41
7.3.270.0000.00716.10
7.3.260.0040.00416.39
7.3.250.0040.00416.18
7.3.240.0050.00216.39
7.3.230.0040.00416.32
7.3.220.0040.00416.14
7.3.210.0000.00816.15
7.3.200.0000.00816.14
7.3.190.0000.00916.23
7.3.180.0040.00416.18
7.3.170.0030.00516.28
7.3.160.0000.00816.30
7.3.150.0070.00016.17
7.3.140.0070.00016.31
7.3.130.0070.00016.18
7.3.120.0030.00316.19
7.3.110.0000.00716.29
7.3.100.0000.00716.26
7.3.90.0070.00016.38
7.3.80.0040.00416.28
7.3.70.0000.00716.26
7.3.60.0000.00716.30
7.3.50.0000.00716.47
7.3.40.0050.00316.50
7.3.30.0000.00816.32
7.3.20.0040.00418.12
7.3.10.0000.00818.16
7.3.00.0000.00717.99

preferences:
49.71 ms | 400 KiB | 5 Q