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)); ?>

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.0150.00018.30
8.3.60.0140.00718.55
8.3.50.0100.01022.05
8.3.40.0110.00418.75
8.3.30.0180.00018.85
8.3.20.0070.00020.16
8.3.10.0040.00420.69
8.3.00.0050.00321.77
8.2.190.0140.00416.88
8.2.180.0070.01116.73
8.2.170.0120.00622.96
8.2.160.0030.01022.30
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0050.00320.96
8.2.120.0040.00426.35
8.2.110.0060.00321.19
8.2.100.0090.00317.91
8.2.90.0050.00317.84
8.2.80.0040.00418.16
8.2.70.0000.01017.63
8.2.60.0080.00018.04
8.2.50.0040.00418.09
8.2.40.0060.00320.55
8.2.30.0030.00619.48
8.2.20.0050.00217.71
8.2.10.0040.00418.08
8.2.00.0040.00418.02
8.1.280.0070.01025.92
8.1.270.0040.00422.19
8.1.260.0030.00528.09
8.1.250.0070.00028.09
8.1.240.0060.00322.46
8.1.230.0090.00320.88
8.1.220.0080.00017.79
8.1.210.0040.00418.82
8.1.200.0060.00317.25
8.1.190.0060.00317.25
8.1.180.0040.00418.10
8.1.170.0030.00718.53
8.1.160.0040.00420.77
8.1.150.0040.00418.82
8.1.140.0050.00319.54
8.1.130.0000.00717.59
8.1.120.0000.00717.37
8.1.110.0040.00417.32
8.1.100.0000.00817.45
8.1.90.0000.00717.41
8.1.80.0000.00717.32
8.1.70.0030.00317.30
8.1.60.0070.00417.66
8.1.50.0090.00017.59
8.1.40.0070.00417.44
8.1.30.0000.00817.75
8.1.20.0000.00717.55
8.1.10.0000.00817.63
8.1.00.0040.00417.43
8.0.300.0000.00720.06
8.0.290.0040.00416.88
8.0.280.0000.00718.38
8.0.270.0000.00717.28
8.0.260.0000.00717.29
8.0.250.0070.00017.07
8.0.240.0030.00317.09
8.0.230.0070.00016.98
8.0.220.0030.00716.96
8.0.210.0000.00716.86
8.0.200.0040.00417.02
8.0.190.0030.00617.03
8.0.180.0000.00716.90
8.0.170.0050.00216.99
8.0.160.0040.00416.89
8.0.150.0000.00816.87
8.0.140.0050.00216.75
8.0.130.0070.00013.39
8.0.120.0040.00416.87
8.0.110.0040.00416.76
8.0.100.0000.00716.87
8.0.90.0040.00416.94
8.0.80.0060.00916.89
8.0.70.0040.00416.74
8.0.60.0050.00316.90
8.0.50.0040.00416.88
8.0.30.0060.01317.21
8.0.20.0100.00917.42
8.0.10.0000.00817.07
8.0.00.0070.01116.86
7.4.330.0050.00016.73
7.4.320.0030.00316.51
7.4.300.0040.00416.54
7.4.290.0000.00816.63
7.4.280.0000.00716.57
7.4.270.0030.00516.52
7.4.260.0000.00816.48
7.4.250.0030.00316.46
7.4.240.0000.00716.64
7.4.230.0000.00816.47
7.4.220.0120.01316.67
7.4.210.0090.00716.46
7.4.200.0040.00416.72
7.4.160.0090.01316.61
7.4.150.0090.01017.40
7.4.140.0040.01817.86
7.4.130.0100.00716.61
7.4.120.0140.00616.53
7.4.110.0130.00316.54
7.4.100.0160.00916.67
7.4.90.0060.01216.55
7.4.80.0150.00719.39
7.4.70.0250.02216.43
7.4.60.0130.00916.74
7.4.50.0040.00816.38
7.4.40.0120.00416.60
7.4.30.0150.00616.68
7.4.00.0090.00914.86
7.3.330.0050.00013.22
7.3.320.0050.00013.36
7.3.310.0040.00416.40
7.3.300.0000.00716.40
7.3.290.0000.00716.43
7.3.280.0110.00716.37
7.3.270.0060.01517.40
7.3.260.0070.01016.64
7.3.250.0090.01016.56
7.3.240.0080.00916.62
7.3.230.0150.00316.43
7.3.210.0070.01016.39
7.3.200.0070.01116.39
7.3.190.0060.01316.56
7.3.180.0150.00016.48
7.3.170.0090.00916.30
7.3.160.0090.01216.59
7.2.330.0070.01116.63
7.2.320.0100.00716.39
7.2.310.0110.00816.57
7.2.300.0070.01016.61
7.2.290.0090.00616.55
7.2.60.0070.00716.82
7.2.00.0030.01219.24
7.1.200.0000.01215.73
7.1.100.0210.00317.94
7.1.70.0030.00717.06
7.1.60.0110.01519.27
7.1.50.0040.01916.87
7.1.00.0070.07322.46
7.0.200.0240.00714.67
7.0.60.0330.07719.97
7.0.50.0070.07718.00
7.0.40.0070.09020.23
7.0.30.0330.07020.25
7.0.20.0270.08320.31
7.0.10.0000.09020.30
7.0.00.0070.03720.24
5.6.280.0030.06320.79
5.6.210.0000.07320.55
5.6.200.0100.08018.30
5.6.190.0130.05720.73
5.6.180.0300.06320.73
5.6.170.0270.07720.52
5.6.160.0100.06720.62
5.6.150.0070.08318.21
5.6.140.0030.06318.29
5.6.130.0100.05018.19
5.6.120.0000.09721.08
5.6.110.0100.08021.16
5.6.100.0100.04021.05
5.6.90.0000.09321.07
5.6.80.0100.06020.46
5.5.350.0370.07320.44
5.5.340.0030.08718.11
5.5.330.0000.05020.34
5.5.320.0600.07320.52
5.5.310.0230.06020.52
5.5.300.0000.05018.11
5.5.290.0000.06718.05
5.5.280.0030.08320.75
5.5.270.0130.08021.07
5.5.260.0130.07720.97
5.5.250.0030.04020.78
5.5.240.0030.08020.45

preferences:
77.35 ms | 401 KiB | 5 Q