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(strlen($input)); $output = gzcompress($input, 9); var_dump(strlen($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.40.0140.00718.79
8.3.30.0070.00719.17
8.3.20.0000.00720.59
8.3.10.0000.00821.99
8.3.00.0080.00017.89
8.2.170.0040.01122.96
8.2.160.0100.00720.55
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0050.00226.16
8.2.120.0080.00021.08
8.2.110.0060.00322.13
8.2.100.0070.00417.91
8.2.90.0050.00319.42
8.2.80.0040.00417.97
8.2.70.0030.00517.75
8.2.60.0030.00517.93
8.2.50.0090.00018.07
8.2.40.0040.00418.28
8.2.30.0000.00818.25
8.2.20.0000.00917.88
8.2.10.0030.00618.26
8.2.00.0060.00317.94
8.1.270.0090.00023.96
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00920.70
8.1.230.0060.00621.15
8.1.220.0000.00818.77
8.1.210.0000.00819.03
8.1.200.0090.00317.48
8.1.190.0040.00417.34
8.1.180.0080.00018.10
8.1.170.0090.00018.76
8.1.160.0040.00422.23
8.1.150.0000.00819.06
8.1.140.0030.00517.56
8.1.130.0030.00317.99
8.1.120.0040.00417.66
8.1.110.0030.00517.66
8.1.100.0080.00017.55
8.1.90.0050.00217.60
8.1.80.0000.00817.59
8.1.70.0000.00717.66
8.1.60.0060.00317.75
8.1.50.0000.00917.58
8.1.40.0050.00517.58
8.1.30.0050.00317.68
8.1.20.0040.00417.79
8.1.10.0080.00017.68
8.1.00.0050.00317.64
8.0.300.0000.00820.13
8.0.290.0030.00616.88
8.0.280.0030.00318.55
8.0.270.0040.00417.37
8.0.260.0030.00317.30
8.0.250.0000.00716.96
8.0.240.0060.00317.07
8.0.230.0000.00716.97
8.0.220.0070.00017.02
8.0.210.0030.00317.02
8.0.200.0070.00017.04
8.0.190.0000.00717.07
8.0.180.0000.00817.07
8.0.170.0000.00817.06
8.0.160.0050.00217.03
8.0.150.0030.00516.95
8.0.140.0060.00316.86
8.0.130.0080.00013.50
8.0.120.0080.00016.89
8.0.110.0000.00716.98
8.0.100.0070.00017.05
8.0.90.0040.00416.84
8.0.80.0060.00917.05
8.0.70.0040.00417.08
8.0.60.0040.00416.95
8.0.50.0030.00616.90
8.0.30.0080.01217.17
8.0.20.0060.01317.40
8.0.10.0080.00017.18
8.0.00.0050.01516.85
7.4.330.0030.00315.00
7.4.320.0060.00016.65
7.4.300.0030.00316.62
7.4.290.0050.00216.61
7.4.280.0040.00416.69
7.4.270.0040.00316.49
7.4.260.0070.00016.70
7.4.250.0000.00716.52
7.4.240.0000.00816.73
7.4.230.0000.00816.52
7.4.220.0090.00916.82
7.4.210.0090.00616.75
7.4.200.0040.00416.53
7.4.160.0140.00416.67
7.4.150.0160.00817.40
7.4.140.0100.00817.86
7.4.130.0120.00716.72
7.4.120.0090.00916.71
7.4.110.0070.01016.48
7.4.100.0060.01216.75
7.4.90.0100.01016.67
7.4.80.0100.01019.39
7.4.70.0090.00916.55
7.4.60.0120.00616.64
7.4.50.0030.00616.59
7.4.40.0000.01616.72
7.4.30.0080.01416.62
7.4.00.0060.01115.10
7.3.330.0020.00213.34
7.3.320.0030.00313.12
7.3.310.0070.00016.21
7.3.300.0050.00216.37
7.3.290.0000.01416.42
7.3.280.0070.01116.40
7.3.270.0120.00617.40
7.3.260.0130.01316.56
7.3.250.0110.01216.42
7.3.240.0120.00616.43
7.3.230.0030.01716.39
7.3.210.0110.01216.45
7.3.200.0160.00719.39
7.3.190.0130.00416.25
7.3.180.0070.01016.43
7.3.170.0150.00416.37
7.3.160.0100.01016.64
7.3.120.0090.00815.14
7.3.110.0000.01615.18
7.3.100.0090.00614.58
7.3.90.0030.01715.17
7.3.80.0070.00714.88
7.3.70.0040.01514.79
7.3.60.0000.01314.62
7.3.50.0060.00915.07
7.3.40.0030.01314.79
7.3.30.0060.00614.89
7.3.20.0000.01216.80
7.3.10.0110.00516.61
7.3.00.0070.00916.79
7.2.330.0070.01016.52
7.2.320.0130.00416.49
7.2.310.0000.01816.65
7.2.300.0030.01316.79
7.2.290.0030.01316.75
7.2.250.0040.01215.18
7.2.240.0070.01115.00
7.2.230.0130.00315.30
7.2.220.0120.00315.28
7.2.210.0000.01715.36
7.2.200.0030.01715.10
7.2.190.0050.00514.97
7.2.180.0090.00615.32
7.2.170.0100.00714.95
7.2.130.0030.01016.65
7.2.120.0030.01216.99
7.2.110.0060.00916.55
7.2.100.0120.00316.92
7.2.90.0150.00016.99
7.2.80.0070.00416.85
7.2.70.0030.01316.77
7.2.60.0100.00316.88
7.2.50.0090.00616.86
7.2.40.0070.00716.77
7.2.30.0040.01116.86
7.2.20.0070.00716.89
7.2.10.0000.01316.79
7.2.00.0080.00517.98
7.1.330.0070.00715.55
7.1.320.0070.00315.87
7.1.310.0120.00415.84
7.1.300.0090.00615.74
7.1.290.0030.01115.78
7.1.280.0080.00815.96
7.1.270.0000.01115.80
7.1.260.0130.00315.82
7.1.250.0040.00415.65
7.1.200.0060.00615.57
7.1.100.0030.00618.12
7.1.70.0030.00517.18
7.1.60.0090.00919.25
7.1.50.0000.01016.89
7.1.00.0030.07722.47
7.0.200.0050.00316.91
7.0.140.0000.07722.05
7.0.110.0100.03720.12
7.0.100.0100.07020.04
7.0.90.0070.04720.20
7.0.80.0000.04720.12
7.0.70.0070.04320.07
7.0.60.0070.03720.10
7.0.50.0070.03720.07
7.0.40.0000.04019.71
7.0.30.0000.04719.70
7.0.20.0030.04019.74
7.0.10.0030.04719.86
7.0.00.0030.04019.64
5.6.280.0070.07021.24
5.6.260.0000.05020.69
5.6.250.0130.06720.85
5.6.240.0170.07720.89
5.6.230.0030.05020.89
5.6.220.0070.03720.65
5.6.210.0030.04720.87
5.6.200.0000.04720.64
5.6.190.0070.05320.85
5.6.180.0030.04020.76
5.6.170.0000.04320.81
5.6.160.0000.06020.81
5.6.150.0030.04020.82
5.6.140.0030.06320.87
5.6.130.0030.04321.04
5.6.120.0030.04720.84
5.6.110.0070.03720.80
5.6.100.0030.05020.73
5.6.90.0070.04320.64
5.6.80.0070.05720.23
5.6.70.0000.08320.24
5.6.60.0100.06020.26
5.6.50.0130.07720.27
5.6.40.0100.04320.13
5.6.30.0100.08020.20
5.6.20.0030.08020.19
5.6.10.0070.07320.09
5.6.00.0130.07020.23
5.5.380.0070.03317.78
5.5.370.0030.04017.71
5.5.360.0100.05017.71
5.5.350.0030.04017.66
5.5.340.0030.04018.02
5.5.330.0030.03718.27
5.5.320.0070.04018.11
5.5.310.0030.04018.27
5.5.300.0070.03718.24
5.5.290.0130.03718.07
5.5.280.0000.05018.27
5.5.270.0000.04718.29
5.5.260.0000.04318.21
5.5.250.0030.04018.05
5.5.240.0070.07717.82
5.5.230.0000.08017.75
5.5.220.0070.07317.44
5.5.210.0100.07317.45
5.5.200.0100.03717.38
5.5.190.0030.08017.64
5.5.180.0230.06317.55
5.5.160.0000.08317.37
5.5.150.0070.07017.45
5.5.140.0100.05017.54
5.5.130.0100.07317.55
5.5.120.0070.07017.63
5.5.110.0170.06317.36
5.5.100.0070.07017.28
5.5.90.0100.07317.53
5.5.80.0070.03317.49
5.5.70.0100.07717.51
5.5.60.0230.05017.51
5.5.50.0070.07317.52
5.5.40.0230.02717.27
5.5.30.0130.04317.44
5.5.20.0070.07317.45
5.5.10.0170.06717.35
5.5.00.0070.07317.47
5.4.450.0030.04019.56
5.4.440.0070.04019.46
5.4.430.0030.04019.45
5.4.420.0070.03719.48
5.4.410.0070.03319.36
5.4.400.0070.08019.03
5.4.390.0100.07719.16
5.4.380.0100.07019.07
5.4.370.0070.07719.23
5.4.360.0100.07719.29
5.4.350.0070.06719.21
5.4.340.0070.07319.16
5.4.320.0130.07319.17
5.4.310.0070.07719.11
5.4.300.0200.06319.16
5.4.290.0070.05019.13
5.4.280.0070.07719.16
5.4.270.0070.07319.14
5.4.260.0070.07319.04
5.4.250.0030.07019.07
5.4.240.0070.07019.00
5.4.230.0070.08019.28
5.4.220.0200.06719.40
5.4.210.0130.07719.31
5.4.200.0000.07319.13
5.4.190.0070.07318.97
5.4.180.0170.06719.15
5.4.170.0070.06719.12
5.4.160.0130.07319.09
5.4.150.0100.07319.14
5.4.140.0030.06716.38
5.4.130.0030.04016.55
5.4.120.0030.07016.59
5.4.110.0070.07716.55
5.4.100.0070.06316.57
5.4.90.0130.07016.54
5.4.80.0070.06316.60
5.4.70.0070.06716.50
5.4.60.0130.06016.52
5.4.50.0030.07716.59
5.4.40.0070.07316.51
5.4.30.0070.07716.52
5.4.20.0070.07016.52
5.4.10.0030.07316.52
5.4.00.0100.06316.00
5.3.290.0030.08314.74
5.3.280.0030.06014.58
5.3.270.0070.07714.57
5.3.260.0130.07014.58
5.3.250.0070.07014.83
5.3.240.0130.07014.66
5.3.230.0100.06714.81
5.3.220.0070.05014.80
5.3.210.0130.06714.78
5.3.200.0100.07314.51
5.3.190.0070.08014.80
5.3.180.0100.07014.58
5.3.170.0070.04314.61
5.3.160.0070.08314.50
5.3.150.0130.06714.69
5.3.140.0070.07714.72
5.3.130.0130.07314.52
5.3.120.0030.04714.60
5.3.110.0130.06314.49
5.3.100.0100.07314.13
5.3.90.0070.07314.02
5.3.80.0030.05713.98
5.3.70.0030.07714.04
5.3.60.0030.05714.09
5.3.50.0030.08014.11
5.3.40.0100.07314.02
5.3.30.0070.06713.97
5.3.20.0100.07313.75
5.3.10.0100.06713.66
5.3.00.0170.05713.61
5.2.170.0030.06711.18
5.2.160.0170.05311.20
5.2.150.0070.06711.24
5.2.140.0030.07011.32
5.2.130.0030.06311.21
5.2.120.0130.05711.16
5.2.110.0030.06311.22
5.2.100.0100.05711.16
5.2.90.0000.06711.18
5.2.80.0100.05711.39
5.2.70.0000.07011.03
5.2.60.0000.06711.11
5.2.50.0030.07011.21
5.2.40.0070.06311.29
5.2.30.0030.06710.91
5.2.20.0130.05011.11
5.2.10.0070.05711.14
5.2.00.0130.04310.81
5.1.60.0030.05310.21
5.1.50.0070.05010.02
5.1.40.0100.0479.93
5.1.30.0070.05310.53
5.1.20.0030.06010.35
5.1.10.0070.05310.19
5.1.00.0070.04710.29
5.0.50.0030.0478.52
5.0.40.0030.0438.44
5.0.30.0070.0378.20
5.0.20.0030.0438.24
5.0.10.0030.0478.21
5.0.00.0030.0638.29
4.4.90.0000.0377.02
4.4.80.0130.0277.02
4.4.70.0030.0377.02
4.4.60.0070.0307.02
4.4.50.0000.0377.02
4.4.40.0000.0577.02
4.4.30.0000.0407.02
4.4.20.0000.0407.02
4.4.10.0100.0277.02
4.4.00.0070.0337.02
4.3.110.0030.0377.02
4.3.100.0030.0337.02
4.3.90.0000.0337.02
4.3.80.0030.0407.02
4.3.70.0030.0337.02
4.3.60.0000.0377.02
4.3.50.0100.0277.02
4.3.40.0000.0477.02
4.3.30.0030.0337.02
4.3.20.0000.0407.02
4.3.10.0000.0377.02
4.3.00.0000.0277.02

preferences:
43.23 ms | 400 KiB | 5 Q