3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $input = '{"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"}]}'; $input = 'H4sIAAAAAAAEAIVTXU/jMBD8K1aej2K7tJQ+0Zb21AdoH4sIAAAAAAAEAIVTXU/jMBD8K1aej2K7tJQ+0Zb21AdOiItAuhMPS7y0Ro5dORt0gPjvxGniVDk+/BTNzK69s5NXxpItgkqm7C+rziurT7JyPl8HNFldC85POOdjkfxo2AVQtr0AwiCQXIyPuDiSo1TIqTidjk6jMPXwhAb9vtWESylHH9C/IK9bLQ3baMc2zr6AwSLqfhNQWVQKEV9QFjTLMldaCoXhickh13ZcuNITU8hStFZ3HS+1UgZzsE315H+mbXGrq/Jb541i63znPKHv+lQmwMwj7Ad88J66Z1QwoZo/11fIYZ8I/qU6/9TDoH1j7K4qS4y2WPR3tCZsdrS+mcluOyvItXneMz3wAovM6x1pVw/+B3ZAmlw3T+oIzA2Y4LUcDnjE4d8elWIwHLXoHApsxFwMxhH/Oj3X+FBa1dQd3PGBl4ceUBOWvg3fZGyZgw43JRvwYBVIcb4J0CBzeRR9F8BFCJqvN3m17KNt8RX6MnIzpTwWRZ1BMAZDBuEeHoHda7T1p4vin2hVPVjM91x72qr2DxseC3ksziYyGvL2Dt9FrA25AwAA'; //$input = "SmackFactory"; echo strlen($input);//1756800 bytes $encrypted = encryptIt( $input ); $decrypted = decryptIt( $encrypted ); //echo ".encrip: " . $encrypted . ' decript: ' . $decrypted; echo '<br/>'.strlen($encrypted).'<br/>';//99 bytes function encryptIt( $q ) { $cryptKey = 'qJB0rGtIn5UB1xG03efyCp'; $qEncoded = base64_encode( mcrypt_encrypt( MCRYPT_RIJNDAEL_256, md5( $cryptKey ), $q, MCRYPT_MODE_CBC, md5( md5( $cryptKey ) ) ) ); return( $qEncoded ); } function decryptIt( $q ) { $cryptKey = 'qJB0rGtIn5UB1xG03efyCp'; $qDecoded = rtrim( mcrypt_decrypt( MCRYPT_RIJNDAEL_256, md5( $cryptKey ), base64_decode( $q ), MCRYPT_MODE_CBC, md5( md5( $cryptKey ) ) ), "\0"); return( $qDecoded ); } //$compressed = lzw_compress($string); //$compressed = gzdeflate($compressed, 9); /*echo $string*/ //echo gzinflate(gzinflate($compressed)); ?>
based on 1PfHb
Output for 7.0.6 - 7.3.0beta1
616 Fatal error: Uncaught Error: Call to undefined function mcrypt_encrypt() in /in/DAuE9:21 Stack trace: #0 /in/DAuE9(12): encryptIt('H4sIAAAAAAAEAIV...') #1 {main} thrown in /in/DAuE9 on line 21
Process exited with code 255.
Output for 5.4.12 - 5.5.34, 5.6.8 - 5.6.20, 7.0.0 - 7.0.5
616<br/>856<br/>
Output for 5.3.22 - 5.3.29, 5.5.35, 5.6.21 - 5.6.28
616 Fatal error: Call to undefined function mcrypt_encrypt() in /in/DAuE9 on line 21
Process exited with code 255.