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 ); } echo strlen($input);//1756800 bytes //$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.60.0150.00018.43
8.3.50.0110.00821.95
8.3.40.0070.00718.71
8.3.30.0120.00918.54
8.3.20.0040.00420.30
8.3.10.0080.00020.61
8.3.00.0080.00021.77
8.2.180.0120.00616.75
8.2.170.0100.00722.96
8.2.160.0120.00422.09
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00420.99
8.2.120.0000.00726.35
8.2.110.0030.00719.18
8.2.100.0080.00417.93
8.2.90.0000.00819.05
8.2.80.0080.00017.97
8.2.70.0000.00917.75
8.2.60.0000.00817.91
8.2.50.0040.00418.09
8.2.40.0070.00420.42
8.2.30.0000.00819.36
8.2.20.0000.00717.70
8.2.10.0000.00718.15
8.2.00.0020.00518.00
8.1.280.0150.00025.92
8.1.270.0080.00022.06
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0070.01020.93
8.1.230.0050.00517.45
8.1.220.0040.00417.78
8.1.210.0080.00018.77
8.1.200.0030.00617.23
8.1.190.0000.00817.22
8.1.180.0050.00318.10
8.1.170.0080.00018.57
8.1.160.0070.00020.68
8.1.150.0000.00718.77
8.1.140.0040.00419.54
8.1.130.0030.00317.67
8.1.120.0040.00417.33
8.1.110.0050.00317.31
8.1.100.0040.00417.41
8.1.90.0000.00717.35
8.1.80.0000.00717.38
8.1.70.0000.00717.44
8.1.60.0000.00917.50
8.1.50.0040.00417.54
8.1.40.0030.00617.55
8.1.30.0040.00417.56
8.1.20.0040.00417.54
8.1.10.0080.00017.63
8.1.00.0060.00317.51
8.0.300.0040.00418.77
8.0.290.0000.00716.59
8.0.280.0030.00318.52
8.0.270.0040.00417.34
8.0.260.0000.00717.24
8.0.250.0030.00317.04
8.0.240.0030.00317.01
8.0.230.0070.00016.98
8.0.220.0060.00316.95
8.0.210.0040.00416.82
8.0.200.0060.00016.86
8.0.190.0030.00517.00
8.0.180.0070.00016.85
8.0.170.0000.00816.98
8.0.160.0070.00016.88
8.0.150.0000.00716.84
8.0.140.0050.00216.75
8.0.130.0030.00313.32
8.0.120.0000.00816.86
8.0.110.0040.00416.92
8.0.100.0000.00716.90
8.0.90.0080.00016.96
8.0.80.0040.01116.88
8.0.70.0040.00416.72
8.0.60.0000.00816.78
8.0.50.0000.00816.77
8.0.30.0090.00917.19
8.0.20.0080.01317.40
8.0.10.0000.00717.06
8.0.00.0120.00916.96
7.4.330.0030.00316.67
7.4.320.0030.00316.48
7.4.300.0000.00716.44
7.4.290.0030.00316.53
7.4.280.0000.00716.68
7.4.270.0030.00716.43
7.4.260.0000.00816.61
7.4.250.0070.00016.41
7.4.240.0030.00516.60
7.4.230.0020.00516.62
7.4.220.0110.01316.49
7.4.210.0090.00616.57
7.4.200.0040.00416.65
7.4.160.0030.01316.43
7.4.150.0090.00817.40
7.4.140.0090.01217.86
7.4.130.0110.01016.52
7.4.120.0130.00916.64
7.4.110.0100.00716.41
7.4.100.0140.00416.55
7.4.90.0060.01216.48
7.4.80.0120.00619.39
7.4.70.0090.00916.60
7.4.60.0070.01016.51
7.4.50.0070.00716.68
7.4.40.0130.00916.58
7.4.30.0040.01316.72
7.4.00.0070.00715.12
7.3.330.0000.00613.33
7.3.320.0050.00013.15
7.3.310.0070.00016.39
7.3.300.0070.00016.24
7.3.290.0030.00316.36
7.3.280.0090.00716.34
7.3.270.0070.01017.40
7.3.260.0120.00616.32
7.3.250.0100.00916.38
7.3.240.0120.00716.43
7.3.230.0100.00716.43
7.3.210.0090.00916.42
7.3.200.0060.01416.44
7.3.190.0030.01416.28
7.3.180.0130.00616.61
7.3.170.0180.00016.43
7.3.160.0060.01416.66
7.3.10.0120.00616.81
7.3.00.0040.01216.38
7.2.330.0100.00716.48
7.2.320.0100.00716.79
7.2.310.0150.00616.60
7.2.300.0060.01216.64
7.2.290.0090.00916.29
7.2.130.0110.00416.98
7.2.120.0030.01016.86
7.2.110.0030.01016.80
7.2.100.0150.00016.58
7.2.90.0090.00616.97
7.2.80.0090.00616.63
7.2.70.0040.01416.99
7.2.60.0080.00916.87
7.2.50.0060.00616.83
7.2.40.0040.00816.86
7.2.30.0060.00616.88
7.2.20.0090.00616.62
7.2.10.0060.00616.96
7.2.00.0070.00618.04
7.1.250.0090.00615.64
7.1.200.0030.00715.58
7.1.100.0060.00617.78
7.1.70.0000.00716.97
7.1.60.0120.01219.27
7.1.50.0040.01816.88
7.1.00.0000.08022.51
7.0.200.0300.01014.60
7.0.60.0330.07720.05
7.0.50.0100.08317.98
7.0.40.0070.05320.30
7.0.30.0430.07320.30
7.0.20.0270.08720.30
7.0.10.0100.08720.24
7.0.00.0100.03720.28
5.6.280.0030.05321.14
5.6.210.0130.07720.73
5.6.200.0100.08018.21
5.6.190.0030.04720.51
5.6.180.0200.05020.49
5.6.170.0230.05720.54
5.6.160.0100.07020.62
5.6.150.0100.07018.25
5.6.140.0070.08018.23
5.6.130.0100.07318.21
5.6.120.0170.07021.11
5.6.110.0130.06021.13
5.6.100.0070.05321.15
5.6.90.0030.08720.97
5.6.80.0030.07720.48
5.5.350.0270.08020.43
5.5.340.0100.07718.02
5.5.330.0100.07020.26
5.5.320.0530.06720.34
5.5.310.0230.08020.47
5.5.300.0030.05317.96
5.5.290.0000.08718.13
5.5.280.0070.08320.91
5.5.270.0130.08020.92
5.5.260.0100.07020.89
5.5.250.0030.04020.55
5.5.240.0030.06020.16

preferences:
59.3 ms | 401 KiB | 5 Q