3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '{"head":[{"FormId": "FR100400061","CatchDate": "2016-01-25T12:17:57","TravelerId": "80222557","TravelerName": "El gio gonzales","Status": 1,"CustAccount": "1004","CustName":"Court de Tennis","Middleman":"1008","MiddlemanName":"Wide World Importers","DataAreaId":"frrt","CreatedBy": "123","CreatedDateTime": "2016-01-25T12:17:57"}],"lines": [{"ItemId": "IVA21","FamilyId": "","FamilyDescription": "Zapatitos","TotalVal": 123.0,"TaxVal": 21.35,"BaseVal": 101.65,"FormId":"FR100400061","RefundVal": 13.0,"DataAreaId": "frrt"}],"traveler":[{"TravelerId":"80222557","Email":"garanda21@gmail.com","Name":"El gio gonzales","Country": "PE","CountryName": "Peru","Address":"Calle de abaja bien abajo","Gender": 1,"Birthdate":"23/12/1982"}]}'; /* $str = "sample data"; $bzstr = bzcompress($string, 9); echo $bzstr;*/ //$string = str_repeat('1234567890'.implode('',range('a','z')),48800); $sJSON = json_encode($string); echo $sJSON; echo strlen($sJSON);//1756800 bytes $compressed = gzdeflate($string, 9); //$compressed = gzdeflate($compressed, 9); echo '<br/>'.strlen($compressed).'<br/>';//99 bytes /*echo $string*/ //echo gzinflate(gzinflate($compressed)); ?>
Output for git.master, git.master_jit, rfc.property-hooks
"{\"head\":[{\"FormId\": \"FR100400061\",\"CatchDate\": \"2016-01-25T12:17:57\",\"TravelerId\": \"80222557\",\"TravelerName\": \"El gio gonzales\",\"Status\": 1,\"CustAccount\": \"1004\",\"CustName\":\"Court de Tennis\",\"Middleman\":\"1008\",\"MiddlemanName\":\"Wide World Importers\",\"DataAreaId\":\"frrt\",\"CreatedBy\": \"123\",\"CreatedDateTime\": \"2016-01-25T12:17:57\"}],\"lines\": [{\"ItemId\": \"IVA21\",\"FamilyId\": \"\",\"FamilyDescription\": \"Zapatitos\",\"TotalVal\": 123.0,\"TaxVal\": 21.35,\"BaseVal\": 101.65,\"FormId\":\"FR100400061\",\"RefundVal\": 13.0,\"DataAreaId\": \"frrt\"}],\"traveler\":[{\"TravelerId\":\"80222557\",\"Email\":\"garanda21@gmail.com\",\"Name\":\"El gio gonzales\",\"Country\": \"PE\",\"CountryName\": \"Peru\",\"Address\":\"Calle de abaja bien abajo\",\"Gender\": 1,\"Birthdate\":\"23\/12\/1982\"}]}"845<br/>405<br/>

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
51.01 ms | 403 KiB | 8 Q