3v4l.org

run code in 300+ PHP versions simultaneously
<?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 = "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)); ?>

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.70.0070.00716.49
8.3.60.0150.00318.37
8.3.50.0130.00622.11
8.3.40.0110.00718.85
8.3.30.0110.00418.74
8.3.20.0050.00220.16
8.3.10.0040.00420.52
8.3.00.0080.00021.93
8.2.180.0140.00316.63
8.2.170.0150.00022.96
8.2.160.0110.00322.09
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0090.00020.79
8.2.120.0040.00426.35
8.2.110.0050.00520.32
8.2.100.0040.00817.84
8.2.90.0040.00419.21
8.2.80.0050.00317.97
8.2.70.0080.00017.50
8.2.60.0000.00817.93
8.2.50.0030.00718.09
8.2.40.0060.00320.42
8.2.30.0000.00819.36
8.2.20.0040.00417.66
8.2.10.0000.00718.01
8.2.00.0000.00718.02
8.1.280.0060.00925.92
8.1.270.0040.00422.20
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0000.00923.88
8.1.230.0110.00017.42
8.1.220.0040.00817.78
8.1.210.0030.00518.77
8.1.200.0060.00317.35
8.1.190.0040.00417.36
8.1.180.0000.00818.10
8.1.170.0030.00718.54
8.1.160.0000.00720.79
8.1.150.0040.00418.84
8.1.140.0060.00319.57
8.1.130.0030.00317.72
8.1.120.0030.00317.49
8.1.110.0090.00017.48
8.1.100.0080.00017.34
8.1.90.0050.00217.44
8.1.80.0070.00017.45
8.1.70.0030.00317.47
8.1.60.0070.00317.59
8.1.50.0030.00617.54
8.1.40.0050.00317.63
8.1.30.0050.00317.66
8.1.20.0000.00717.45
8.1.10.0040.00417.63
8.1.00.0000.00717.52
8.0.300.0040.00418.77
8.0.290.0030.00617.00
8.0.280.0000.00718.60
8.0.270.0030.00317.18
8.0.260.0000.00717.29
8.0.250.0040.00417.07
8.0.240.0030.00317.05
8.0.230.0000.00816.99
8.0.220.0100.00016.97
8.0.210.0040.00416.89
8.0.200.0060.00317.02
8.0.190.0030.00617.04
8.0.180.0070.00016.85
8.0.170.0030.00616.87
8.0.160.0030.00317.02
8.0.150.0000.00716.82
8.0.140.0000.00716.84
8.0.130.0030.00313.32
8.0.120.0040.00416.89
8.0.110.0080.00016.85
8.0.100.0040.00416.96
8.0.90.0080.00016.94
8.0.80.0140.00016.87
8.0.70.0090.00016.71
8.0.60.0050.00316.97
8.0.50.0000.00816.93
8.0.30.0090.01117.20
8.0.20.0100.01217.41
8.0.10.0040.00416.96
8.0.00.0100.01116.99
7.4.330.0030.00316.88
7.4.320.0000.00816.63
7.4.300.0040.00416.56
7.4.290.0080.00016.63
7.4.280.0040.00416.71
7.4.270.0030.00616.62
7.4.260.0000.00816.45
7.4.250.0020.00516.63
7.4.240.0030.00316.64
7.4.230.0030.00316.38
7.4.220.0100.00716.66
7.4.210.0040.01116.65
7.4.200.0070.00016.43
7.4.160.0090.00616.29
7.4.150.0070.01117.40
7.4.140.0170.00617.86
7.4.130.0080.01116.63
7.4.120.0110.01116.66
7.4.110.0070.01016.73
7.4.100.0090.00916.70
7.4.90.0110.00716.47
7.4.80.0070.01119.39
7.4.70.0090.00916.67
7.4.60.0060.01116.48
7.4.50.0090.00616.63
7.4.40.0060.01116.68
7.4.30.0130.00516.60
7.4.00.0100.00315.13
7.3.330.0000.00513.39
7.3.320.0000.00513.38
7.3.310.0030.00316.40
7.3.300.0030.00316.38
7.3.290.0070.00016.37
7.3.280.0100.00516.37
7.3.270.0120.00617.40
7.3.260.0060.01216.58
7.3.250.0120.00816.59
7.3.240.0110.01016.49
7.3.230.0080.01116.39
7.3.210.0070.01016.71
7.3.200.0060.01516.60
7.3.190.0120.00316.38
7.3.180.0080.00816.30
7.3.170.0030.01916.25
7.3.160.0060.01616.52
7.2.330.0110.00816.52
7.2.320.0060.01016.41
7.2.310.0070.01016.70
7.2.300.0090.01216.70
7.2.290.0080.00816.60
7.2.60.0070.00716.79
7.2.00.0110.00418.91
7.1.200.0030.00915.75
7.1.100.0070.01018.09
7.1.70.0000.01317.25
7.1.60.0110.01419.27
7.1.50.0140.00716.72
7.1.00.0100.07022.41
7.0.200.0390.00314.67
7.0.60.0330.06720.02
7.0.50.0130.07018.03
7.0.40.0070.04020.19
7.0.30.0270.05020.15
7.0.20.0270.08320.33
7.0.10.0030.05020.27
7.0.00.0030.04320.15
5.6.280.0070.06020.79
5.6.210.0170.07320.66
5.6.200.0130.04318.18
5.6.190.0100.08020.67
5.6.180.0300.08020.37
5.6.170.0300.07720.66
5.6.160.0030.05020.59
5.6.150.0100.07718.18
5.6.140.0030.05318.35
5.6.130.0070.06018.18
5.6.120.0130.08021.18
5.6.110.0100.07321.08
5.6.100.0030.09020.98
5.6.90.0130.08021.17
5.6.80.0100.08020.47
5.5.350.0270.07320.34
5.5.340.0000.04318.05
5.5.330.0130.04320.62
5.5.320.0630.06320.25
5.5.310.0200.08020.36
5.5.300.0100.04018.05
5.5.290.0100.04717.99
5.5.280.0100.06720.97
5.5.270.0070.07721.06
5.5.260.0070.08320.94
5.5.250.0000.04320.56
5.5.240.0100.07020.36

preferences:
64.14 ms | 401 KiB | 5 Q