3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input = '{"reportId":"79","report":{"Report":{"id":"79","report_group_id":"1","custom_report":null,"report_code":"ER106","report_name":"Applicant Open Days (AOD) Activity Report","report_desc":"How many students were invited to, then booked onto, attended or didn\'t attend an Applicant Open Day?","long_desc":"<h3>Key<\/h3>\n<ul>\n<li><strong>AOD1:<\/strong> Student was invited to an App Open day using AOD<\/li>\n<li><strong>AOD2:<\/strong> Student booked to come to an App Open day using AOD<\/li>\n<li><strong>AOD3:<\/strong> Student turned up to an App Open day using AOD<\/li>\n<li><strong>AOD4:<\/strong> Student did not turn up to an App Open day using AOD<\/li>\n\n<\/ul>","root_notes":null,"sql_statement":"SELECT \n\n\nDATE_FORMAT(ENT.date, \'%b %Y\') AS `month`,\nSUM( CASE ENT.activity_type_code WHEN \'AOD1\' THEN 1 ELSE 0 END ) AS \'AOD1\',\nSUM( CASE ENT.activity_type_code WHEN \'AOD2\' THEN 1 ELSE 0 END ) AS \'AOD2\',\nSUM( CASE ENT.activity_type_code WHEN \'AOD3\' THEN 1 ELSE 0 END ) AS \'AOD3\',\nSUM( CASE ENT.activity_type_code WHEN \'AOD4\' THEN 1 ELSE 0 END ) AS \'AOD4\'\n\nFROM `ent_enterprise_stats` ENT\n\n\nWHERE \n\n%%filter%%\n\nAND ENT.activity_type_code IN (\'AOD1\', \'AOD2\', \'AOD3\', \'AOD4\')\n\nGROUP BY DATE_FORMAT(ENT.date, \'%b %Y\')\n\nORDER BY DATE_FORMAT(ENT.date, \'%Y%m\')\n","live":"0","published":"1","created":null,"modified":null,"chart_title":"AOD Activity","global":"1","icon":"chart_column","category_field":"month","series":"AOD1,AOD2,AOD3,AOD4","chart_element":"column_chart","chart_height":null,"table_format":"text,number,number,number,number","insights_url":"https:\/\/studentcrm.zendesk.com\/hc\/en-gb\/articles\/200682392","report_type_id":"1","raw_data":[[{"month":"Oct 2013","AOD1":"1546","AOD2":"258","AOD3":"0","AOD4":"0"}],[{"month":"Nov 2013","AOD1":"6231","AOD2":"2062","AOD3":"51","AOD4":"3"}],[{"month":"Dec 2013","AOD1":"10965","AOD2":"3680","AOD3":"990","AOD4":"172"}],[{"month":"Jan 2014","AOD1":"9478","AOD2":"4250","AOD3":"1221","AOD4":"263"}],[{"month":"Feb 2014","AOD1":"378","AOD2":"1905","AOD3":"3580","AOD4":"1394"}],[{"month":"Mar 2014","AOD1":"113","AOD2":"45","AOD3":"29","AOD4":"9"}],[{"month":"Apr 2014","AOD1":"298","AOD2":"87","AOD3":"1595","AOD4":"1513"}],[{"month":"May 2014","AOD1":"392","AOD2":"32","AOD3":"19","AOD4":"11"}],[{"month":"Jun 2014","AOD1":"372","AOD2":"22","AOD3":"0","AOD4":"0"}],[{"month":"Jul 2014","AOD1":"127","AOD2":"6","AOD3":"0","AOD4":"0"}]],"data":{"Oct 2013":{"AOD1":"1546","AOD2":"258","AOD3":"0","AOD4":"0"},"Nov 2013":{"AOD1":"6231","AOD2":"2062","AOD3":"51","AOD4":"3"},"Dec 2013":{"AOD1":"10965","AOD2":"3680","AOD3":"990","AOD4":"172"},"Jan 2014":{"AOD1":"9478","AOD2":"4250","AOD3":"1221","AOD4":"263"},"Feb 2014":{"AOD1":"378","AOD2":"1905","AOD3":"3580","AOD4":"1394"},"Mar 2014":{"AOD1":"113","AOD2":"45","AOD3":"29","AOD4":"9"},"Apr 2014":{"AOD1":"298","AOD2":"87","AOD3":"1595","AOD4":"1513"},"May 2014":{"AOD1":"392","AOD2":"32","AOD3":"19","AOD4":"11"},"Jun 2014":{"AOD1":"372","AOD2":"22","AOD3":"0","AOD4":"0"},"Jul 2014":{"AOD1":"127","AOD2":"6","AOD3":"0","AOD4":"0"}},"table_data":[{"month":"Oct 2013","AOD1":"1546","AOD2":"258","AOD3":"0","AOD4":"0"},{"month":"Nov 2013","AOD1":"6231","AOD2":"2062","AOD3":"51","AOD4":"3"},{"month":"Dec 2013","AOD1":"10965","AOD2":"3680","AOD3":"990","AOD4":"172"},{"month":"Jan 2014","AOD1":"9478","AOD2":"4250","AOD3":"1221","AOD4":"263"},{"month":"Feb 2014","AOD1":"378","AOD2":"1905","AOD3":"3580","AOD4":"1394"},{"month":"Mar 2014","AOD1":"113","AOD2":"45","AOD3":"29","AOD4":"9"},{"month":"Apr 2014","AOD1":"298","AOD2":"87","AOD3":"1595","AOD4":"1513"},{"month":"May 2014","AOD1":"392","AOD2":"32","AOD3":"19","AOD4":"11"},{"month":"Jun 2014","AOD1":"372","AOD2":"22","AOD3":"0","AOD4":"0"},{"month":"Jul 2014","AOD1":"127","AOD2":"6","AOD3":"0","AOD4":"0"}]},"ReportType":{"id":"1","type_name":"Interactions"}},"chartHeight":400,"md5":"6fecbc49e6d6500ef1cd7745ad5ab630","establishmentName":"Coventry University","userName":"Dom Yeadon","today":"03 Jul 2014 at 18:14","reportCode":"ER106","lastRun":"03 Jul 2014 at 00:00","noReportData":false,"headers":["Month","AOD1","AOD2","AOD3","AOD4"],"data":[{"month":"Oct 2013","AOD1":"1546","AOD2":"258","AOD3":"0","AOD4":"0"},{"month":"Nov 2013","AOD1":"6231","AOD2":"2062","AOD3":"51","AOD4":"3"},{"month":"Dec 2013","AOD1":"10965","AOD2":"3680","AOD3":"990","AOD4":"172"},{"month":"Jan 2014","AOD1":"9478","AOD2":"4250","AOD3":"1221","AOD4":"263"},{"month":"Feb 2014","AOD1":"378","AOD2":"1905","AOD3":"3580","AOD4":"1394"},{"month":"Mar 2014","AOD1":"113","AOD2":"45","AOD3":"29","AOD4":"9"},{"month":"Apr 2014","AOD1":"298","AOD2":"87","AOD3":"1595","AOD4":"1513"},{"month":"May 2014","AOD1":"392","AOD2":"32","AOD3":"19","AOD4":"11"},{"month":"Jun 2014","AOD1":"372","AOD2":"22","AOD3":"0","AOD4":"0"},{"month":"Jul 2014","AOD1":"127","AOD2":"6","AOD3":"0","AOD4":"0"}],"format":{"Month":"text","AOD1":"number","AOD2":"number","AOD3":"number","AOD4":"number"},"categories":"\'Oct 2013\',\'Nov 2013\',\'Dec 2013\',\'Jan 2014\',\'Feb 2014\',\'Mar 2014\',\'Apr 2014\',\'May 2014\',\'Jun 2014\',\'Jul 2014\'","series":"{name: \"AOD1\", data: [1546,6231,10965,9478,378,113,298,392,372,127]},{name: \"AOD2\", data: [258,2062,3680,4250,1905,45,87,32,22,6]},{name: \"AOD3\", data: [0,51,990,1221,3580,29,1595,19,0,0]},{name: \"AOD4\", data: [0,3,172,263,1394,9,1513,11,0,0]}","hideFilters":false,"levels":{"41":"Schools","1":"Undergraduate","41,1":"All Levels","0":"Unknown"},"faculties":{"1000":"Business, Environment and Society (BES)","1016":"Coventry University London Campus (CULC)","1001":"Engineering and Computing (EC)","1002":"Health and Life Sciences (HLS)","1039":"Institute of Applied Entrepreneurship (IAE)","1003":"School of Art and Design (CSAD)","1000,1016,1001,1002,1039,1003":"All Faculties","0":"Unknown"},"yearsOfEntry":{"2011":2011,"2012":2012,"2013":2013,"2014":2014,"2015":2015,"2016":2016,"2017":2017,"2018":2018,"2019":2019,"0":"Unknown"},"defaultYearOfEntry":"2014","marketingUnits":{"1003":"Recruitment and Admissions Office","all":"All Marketing Units"},"app_id":"19","items_per_page":50,"app_permissions":{"ModuleOccurrences:1045":"write","ModuleOccurrences:1076":"write","ModuleOccurrences:1014":"write","ModuleOccurrences:1042":"write","ModuleOccurrences:1075":"write","ModuleOccurrences:1015":"write","ModuleOccurrences:1016":"write","ModuleOccurrences:1049":"write","AdHocs:*":"write","Courses:*":"write","EnterpriseReports:*":"super","Faculties:*":"read","Students:*":"write","Users:*":"super","StudentLogs:*":"write"},"dh_only":false,"userNeedToChangePassword":false,"multi_user":{"1079":"Branksome University","1002":"Coventry University","1007":"New Forest University"},"filter":{"establishment_id":"1002","year_of_entry":"2014"}}'; var_dump(str_len($input)); $output = gzcompress($input, 9); var_dump(str_len($output));

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.0090.00618.55
8.3.50.0110.00318.05
8.3.40.0160.00318.61
8.3.30.0080.00819.27
8.3.20.0040.00420.16
8.3.10.0040.00421.74
8.3.00.0030.00519.68
8.2.180.0120.00616.75
8.2.170.0080.00822.96
8.2.160.0100.00720.47
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0040.00421.11
8.2.110.0040.00422.14
8.2.100.0040.00721.01
8.2.90.0000.00719.17
8.2.80.0060.00317.97
8.2.70.0060.00317.63
8.2.60.0090.00017.93
8.2.50.0050.00318.07
8.2.40.0030.00618.16
8.2.30.0070.00018.02
8.2.20.0040.00417.55
8.2.10.0040.00418.11
8.2.00.0000.00817.64
8.1.270.0090.00023.70
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.88
8.1.230.0040.00819.03
8.1.220.0080.00017.74
8.1.210.0090.00018.77
8.1.200.0060.00617.35
8.1.190.0040.00417.13
8.1.180.0000.00818.10
8.1.170.0000.00918.66
8.1.160.0040.00421.92
8.1.150.0020.00518.88
8.1.140.0000.00817.33
8.1.130.0030.00317.84
8.1.120.0050.00217.41
8.1.110.0040.00417.31
8.1.100.0040.00417.46
8.1.90.0000.00717.43
8.1.80.0040.00417.34
8.1.70.0000.00717.36
8.1.60.0040.00417.51
8.1.50.0040.00417.52
8.1.40.0110.00017.59
8.1.30.0000.00817.65
8.1.20.0060.00317.53
8.1.10.0050.00217.63
8.1.00.0000.00717.43
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0030.00318.34
8.0.270.0000.00717.21
8.0.260.0060.00017.25
8.0.250.0030.00316.97
8.0.240.0000.00716.99
8.0.230.0030.00316.88
8.0.220.0000.00716.82
8.0.210.0040.00416.90
8.0.200.0070.00017.00
8.0.190.0030.00416.97
8.0.180.0040.00416.97
8.0.170.0040.00416.90
8.0.160.0000.00716.87
8.0.150.0040.00416.80
8.0.140.0040.00416.80
8.0.130.0030.00313.32
8.0.120.0040.00416.86
8.0.110.0060.00316.79
8.0.100.0040.00416.80
8.0.90.0000.00816.78
8.0.80.0060.00916.99
8.0.70.0040.00416.93
8.0.60.0050.00316.98
8.0.50.0080.00016.95
8.0.30.0110.01417.02
8.0.20.0080.01117.40
8.0.10.0040.00416.92
8.0.00.0110.00816.48
7.4.330.0020.00215.09
7.4.320.0060.00016.38
7.4.300.0030.00316.64
7.4.290.0030.00316.38
7.4.280.0030.00616.61
7.4.270.0030.00316.52
7.4.260.0000.00816.51
7.4.250.0000.00816.51
7.4.240.0030.00416.60
7.4.230.0050.00216.64
7.4.220.0230.00316.54
7.4.210.0030.01616.64
7.4.200.0040.00416.62
7.4.160.0120.00316.58
7.4.150.0030.01317.40
7.4.140.0130.00617.86
7.4.130.0090.00816.53
7.4.120.0080.00916.57
7.4.110.0060.01116.54
7.4.100.0090.00916.56
7.4.90.0140.00416.65
7.4.80.0090.00819.39
7.4.70.0120.00416.43
7.4.60.0100.00716.52
7.4.50.0050.00016.39
7.4.40.0080.00916.63
7.4.30.0040.00916.58
7.4.00.0070.00715.11
7.3.330.0000.00513.11
7.3.320.0000.00613.02
7.3.310.0070.00016.12
7.3.300.0000.00716.30
7.3.290.0070.00716.23
7.3.280.0060.01116.30
7.3.270.0100.00717.40
7.3.260.0130.01016.32
7.3.250.0110.00816.30
7.3.240.0070.01116.49
7.3.230.0130.00316.48
7.3.210.0150.00616.48
7.3.200.0140.00619.39
7.3.190.0130.01016.21
7.3.180.0130.00316.37
7.3.170.0030.01816.45
7.3.160.0100.01016.51
7.3.120.0090.00314.84
7.3.10.0100.00716.53
7.3.00.0060.00916.61
7.2.330.0060.01116.47
7.2.320.0070.01016.65
7.2.310.0030.01316.59
7.2.300.0100.00616.26
7.2.290.0070.01316.63
7.2.130.0060.00916.84
7.2.120.0450.00516.63
7.2.110.0060.00816.62
7.2.100.0070.00816.49
7.2.90.0550.00516.57
7.2.80.0100.00316.55
7.2.70.0090.00716.77
7.2.60.0050.01016.76
7.2.50.0060.01016.73
7.2.40.0100.00616.71
7.2.30.0070.00816.80
7.2.20.0080.00716.81
7.2.10.0080.00916.69
7.2.00.0050.00917.72
7.1.250.0000.01115.64
7.1.240.0100.00715.36
7.1.230.0080.00815.68
7.1.220.0070.01015.30
7.1.210.0120.00815.57
7.1.200.0090.00415.69
7.1.190.0110.00415.74
7.1.180.0100.01015.73
7.1.170.0110.00415.64
7.1.160.0120.00815.62
7.1.150.0140.00415.55
7.1.140.0090.00815.51
7.1.130.0110.00715.33
7.1.120.0130.00515.54
7.1.110.0080.00915.58
7.1.100.0150.00415.62
7.1.90.0210.00615.77
7.1.80.0100.00315.68
7.1.70.0030.00916.38
7.1.60.0110.01017.41
7.1.50.0080.00715.88
7.1.40.0100.00815.74
7.1.30.0140.00015.68
7.1.20.0140.00315.57
7.1.10.0130.00215.65
7.1.00.0020.04318.90
7.0.320.0090.00815.24
7.0.310.0120.00615.53
7.0.300.0130.00715.28
7.0.290.0090.00515.25
7.0.280.0000.01515.11
7.0.270.0150.00415.54
7.0.260.0100.00715.42
7.0.250.0110.00215.29
7.0.240.0090.00915.14
7.0.230.0480.00315.23
7.0.220.0120.00315.39
7.0.210.0700.00715.43
7.0.200.0110.00215.99
7.0.190.0000.02115.42
7.0.180.0080.00815.08
7.0.170.0090.00915.35
7.0.160.0090.00915.28
7.0.150.0070.00715.41
7.0.140.0090.03718.51
7.0.130.0080.00815.05
7.0.120.0260.00315.29
7.0.110.0070.01015.45
7.0.100.0560.00715.43
7.0.90.0000.01315.38
7.0.80.0140.00315.45
7.0.70.0130.00315.41
7.0.60.0060.02317.56
7.0.50.0070.04216.68
7.0.40.0060.02616.65
7.0.30.0340.03616.73
7.0.20.0160.04416.65
7.0.10.0180.04316.81
7.0.00.0130.02216.68
5.6.380.0070.00514.29
5.6.370.0100.00514.04
5.6.360.0080.00813.84
5.6.350.0140.00314.48
5.6.340.0150.00014.13
5.6.330.0130.00314.14
5.6.320.0140.00314.31
5.6.310.0060.00913.85
5.6.300.0050.00813.96
5.6.290.0030.01314.37
5.6.280.0070.04017.77
5.6.270.0040.01214.54
5.6.260.0140.00014.28
5.6.250.0080.01113.99
5.6.240.0100.00314.23
5.6.230.0060.01214.19
5.6.220.0080.00814.07
5.6.210.0110.03517.44
5.6.200.0140.04416.22
5.6.190.0140.04317.23
5.6.180.0190.04217.29
5.6.170.0150.04017.20
5.6.160.0030.02817.26
5.6.150.0090.04016.16
5.6.140.0120.03816.14
5.6.130.0050.03116.20
5.6.120.0190.03317.64
5.6.110.0080.03017.63
5.6.100.0080.02717.46
5.6.90.0240.03117.77
5.6.80.0130.03517.16
5.6.70.2340.02117.35
5.6.60.0120.00313.97
5.6.50.0120.00314.25
5.6.40.0060.00913.95
5.6.30.0130.00314.14
5.6.20.0120.00413.99
5.6.10.0080.00814.13
5.6.00.0120.00614.09
5.5.380.0000.01011.07
5.5.370.0090.00311.07
5.5.360.0050.00511.07
5.5.350.0140.03515.70
5.5.340.0100.01814.52
5.5.330.0060.04615.57
5.5.320.0220.03715.71
5.5.310.0140.04715.71
5.5.300.0110.03414.49
5.5.290.0120.02814.51
5.5.280.0050.02515.92
5.5.270.0110.04115.96
5.5.260.0100.04415.96
5.5.250.0090.04415.88
5.5.240.1980.02415.60
5.5.230.0110.00411.07
5.5.220.0080.00511.07
5.5.210.0070.00711.07
5.5.200.0030.00911.07
5.5.190.0040.00811.07
5.5.180.0080.00311.07
5.5.170.0150.00213.84
5.5.160.0030.00911.07
5.5.150.0050.00511.07
5.5.140.0030.01311.07
5.5.130.0090.00411.07
5.5.120.0100.00511.07
5.5.110.0100.00311.07
5.5.100.0080.00511.07
5.5.90.0080.00411.07
5.5.80.0140.00011.07
5.5.70.0110.00511.07
5.5.60.0070.00211.07
5.5.50.0070.00711.07
5.5.40.0120.00311.07
5.5.30.0080.00311.07
5.5.20.0080.00411.07
5.5.10.0090.00411.07
5.5.00.0100.00311.07
5.4.450.0150.01915.28
5.4.440.0180.02415.24
5.4.430.0160.01515.10
5.4.420.0080.02715.24
5.4.410.0150.02415.17
5.4.400.0150.02515.08
5.4.390.0080.02415.08
5.4.380.0240.03414.93
5.4.370.0190.02814.79
5.4.360.0170.02914.88
5.4.350.0270.02514.83
5.4.340.0230.02714.93
5.4.330.0110.00011.07
5.4.320.0050.02411.77
5.4.310.0040.02411.77
5.4.300.0040.02611.77
5.4.290.0080.02411.77
5.4.280.0060.02911.72
5.4.270.0060.02611.72
5.4.260.0070.02811.72
5.4.250.0060.03011.72
5.4.240.0070.02811.72
5.4.230.0070.02311.71
5.4.220.0060.03011.71
5.4.210.0080.02511.71
5.4.200.0120.02411.71
5.4.190.0070.02411.71
5.4.180.0090.01811.71
5.4.170.0070.02311.72
5.4.160.0060.02311.72
5.4.150.0060.02111.71
5.4.140.0090.02111.56
5.4.130.0020.02411.55
5.4.120.0100.01811.53
5.4.110.0090.01911.53
5.4.100.0080.01811.53
5.4.90.0080.01911.53
5.4.80.0090.02311.53
5.4.70.0070.01911.52
5.4.60.0080.01811.53
5.4.50.0080.02011.52
5.4.40.0080.02311.52
5.4.30.0110.01811.52
5.4.20.0090.01911.52
5.4.10.0070.01911.52
5.4.00.0050.02011.27
5.3.290.0080.02511.94
5.3.280.0090.01911.89
5.3.270.0060.02311.90
5.3.260.0080.02011.90
5.3.250.0110.01911.90
5.3.240.0080.02011.89
5.3.230.0080.01911.89
5.3.220.0090.02011.88
5.3.210.0050.02411.88
5.3.200.0080.02211.88
5.3.190.0060.02111.88
5.3.180.0070.02011.88
5.3.170.0040.02211.87
5.3.160.0040.02311.87
5.3.150.0080.01911.87
5.3.140.0070.02111.87
5.3.130.0090.02011.87
5.3.120.0080.02011.87
5.3.110.0060.02111.87
5.3.100.0060.02211.60
5.3.90.0100.01811.58
5.3.80.0090.02011.58
5.3.70.0090.02511.57
5.3.60.0070.02611.57
5.3.50.0110.02411.54
5.3.40.0080.02311.54
5.3.30.0080.02211.52
5.3.20.0060.02211.41
5.3.10.0070.02111.39
5.3.00.0050.02111.38
5.2.170.0050.01810.14
5.2.160.0050.01710.14
5.2.150.0050.01910.14
5.2.140.0080.02010.14
5.2.130.0030.02210.12
5.2.120.0080.01510.12
5.2.110.0050.01910.12
5.2.100.0040.02110.12
5.2.90.0080.01510.12
5.2.80.0090.01810.12
5.2.70.0060.01810.12
5.2.60.0080.02110.09
5.2.50.0090.01310.08
5.2.40.0080.01410.06
5.2.30.0060.01610.05
5.2.20.0030.01710.05
5.2.10.0050.01810.01
5.2.00.0040.0189.94
5.1.60.0040.0159.58
5.1.50.0020.0169.57
5.1.40.0070.0139.57
5.1.30.0080.0169.74
5.1.20.0070.0209.75
5.1.10.0080.0169.61
5.1.00.0070.0189.61
5.0.50.0050.0148.86
5.0.40.0060.0148.78
5.0.30.0040.0308.69
5.0.20.0050.0098.67
5.0.10.0060.0098.66
5.0.00.0060.0148.66
4.4.90.0030.0107.93
4.4.80.0060.0097.91
4.4.70.0030.0117.91
4.4.60.0040.0097.91
4.4.50.0030.0097.92
4.4.40.0040.0157.89
4.4.30.0010.0137.92
4.4.20.0050.0097.96
4.4.10.0020.0137.96
4.4.00.0040.0147.92
4.3.110.0040.0087.87
4.3.100.0040.0117.87
4.3.90.0020.0107.85
4.3.80.0050.0127.83
4.3.70.0030.0087.85
4.3.60.0020.0107.85
4.3.50.0040.0097.85
4.3.40.0010.0187.80
4.3.30.0020.0117.18
4.3.20.0030.0087.17
4.3.10.0020.0117.15
4.3.00.0090.00813.18

preferences:
41.01 ms | 400 KiB | 5 Q