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"}]}';*/ $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)); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Wesqk
function name:  (null)
number of ops:  20
compiled vars:  !0 = $input, !1 = $encrypted, !2 = $decrypted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, 'SmackFactory'
    8     1        STRLEN                                           ~4      !0
          2        ECHO                                                     ~4
   10     3        INIT_FCALL_BY_NAME                                       'encryptIt'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $5      
          6        ASSIGN                                                   !1, $5
   11     7        INIT_FCALL_BY_NAME                                       'decryptIt'
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0  $7      
         10        ASSIGN                                                   !2, $7
   13    11        CONCAT                                           ~9      '.encrip%3A+', !1
         12        CONCAT                                           ~10     ~9, '+decript%3A+'
         13        CONCAT                                           ~11     ~10, !2
         14        ECHO                                                     ~11
   15    15        STRLEN                                           ~12     !1
         16        CONCAT                                           ~13     '%3Cbr%2F%3E', ~12
         17        CONCAT                                           ~14     ~13, '%3Cbr%2F%3E'
         18        ECHO                                                     ~14
   36    19      > RETURN                                                   1

Function encryptit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Wesqk
function name:  encryptIt
number of ops:  26
compiled vars:  !0 = $q, !1 = $cryptKey, !2 = $qEncoded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   RECV                                             !0      
   18     1        ASSIGN                                                   !1, 'qJB0rGtIn5UB1xG03efyCp'
   19     2        INIT_FCALL                                               'base64_encode'
          3        INIT_FCALL_BY_NAME                                       'mcrypt_encrypt'
          4        FETCH_CONSTANT                                   ~4      'MCRYPT_RIJNDAEL_256'
          5        SEND_VAL_EX                                              ~4
          6        INIT_FCALL                                               'md5'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $5      
          9        SEND_VAR_NO_REF_EX                                       $5
         10        SEND_VAR_EX                                              !0
         11        FETCH_CONSTANT                                   ~6      'MCRYPT_MODE_CBC'
         12        SEND_VAL_EX                                              ~6
         13        INIT_FCALL                                               'md5'
         14        INIT_FCALL                                               'md5'
         15        SEND_VAR                                                 !1
         16        DO_ICALL                                         $7      
         17        SEND_VAR                                                 $7
         18        DO_ICALL                                         $8      
         19        SEND_VAR_NO_REF_EX                                       $8
         20        DO_FCALL                                      0  $9      
         21        SEND_VAR                                                 $9
         22        DO_ICALL                                         $10     
         23        ASSIGN                                                   !2, $10
   20    24      > RETURN                                                   !2
   21    25*     > RETURN                                                   null

End of function encryptit

Function decryptit:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Wesqk
function name:  decryptIt
number of ops:  30
compiled vars:  !0 = $q, !1 = $cryptKey, !2 = $qDecoded
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   RECV                                             !0      
   24     1        ASSIGN                                                   !1, 'qJB0rGtIn5UB1xG03efyCp'
   25     2        INIT_FCALL                                               'rtrim'
          3        INIT_FCALL_BY_NAME                                       'mcrypt_decrypt'
          4        FETCH_CONSTANT                                   ~4      'MCRYPT_RIJNDAEL_256'
          5        SEND_VAL_EX                                              ~4
          6        INIT_FCALL                                               'md5'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                         $5      
          9        SEND_VAR_NO_REF_EX                                       $5
         10        INIT_FCALL                                               'base64_decode'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $6      
         13        SEND_VAR_NO_REF_EX                                       $6
         14        FETCH_CONSTANT                                   ~7      'MCRYPT_MODE_CBC'
         15        SEND_VAL_EX                                              ~7
         16        INIT_FCALL                                               'md5'
         17        INIT_FCALL                                               'md5'
         18        SEND_VAR                                                 !1
         19        DO_ICALL                                         $8      
         20        SEND_VAR                                                 $8
         21        DO_ICALL                                         $9      
         22        SEND_VAR_NO_REF_EX                                       $9
         23        DO_FCALL                                      0  $10     
         24        SEND_VAR                                                 $10
         25        SEND_VAL                                                 '%00'
         26        DO_ICALL                                         $11     
         27        ASSIGN                                                   !2, $11
   26    28      > RETURN                                                   !2
   27    29*     > RETURN                                                   null

End of function decryptit

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.01 ms | 941 KiB | 22 Q