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.60.0100.01018.40
8.3.50.0110.00921.91
8.3.40.0090.00618.84
8.3.30.0110.00922.14
8.3.20.0050.00320.29
8.3.10.0050.00320.66
8.3.00.0040.00421.89
8.2.180.0090.00916.63
8.2.170.0090.00622.96
8.2.160.0150.00019.46
8.2.150.0070.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0050.00220.87
8.2.110.0030.00721.10
8.2.100.0000.01117.91
8.2.90.0090.00017.63
8.2.80.0080.00018.92
8.2.70.0000.00719.25
8.2.60.0050.00317.61
8.2.50.0060.00318.09
8.2.40.0080.00320.60
8.2.30.0000.00719.39
8.2.20.0040.00417.84
8.2.10.0000.00718.23
8.2.00.0000.00718.08
8.1.280.0110.01125.92
8.1.270.0080.00022.14
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0040.00422.14
8.1.230.0070.00417.70
8.1.220.0040.00417.78
8.1.210.0090.00018.77
8.1.200.0080.00017.25
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0000.00818.51
8.1.160.0070.00020.71
8.1.150.0040.00418.87
8.1.140.0040.00419.53
8.1.130.0070.00019.21
8.1.120.0000.00717.43
8.1.110.0030.00617.32
8.1.100.0040.00317.45
8.1.90.0040.00417.49
8.1.80.0000.00717.49
8.1.70.0030.00317.45
8.1.60.0040.00817.50
8.1.50.0030.00617.46
8.1.40.0000.00917.48
8.1.30.0030.00517.73
8.1.20.0020.00517.55
8.1.10.0040.00417.59
8.1.00.0040.00417.53
8.0.300.0070.00018.77
8.0.290.0050.00216.75
8.0.280.0000.00718.39
8.0.270.0000.00717.42
8.0.260.0050.00216.90
8.0.250.0030.00517.08
8.0.240.0030.00317.07
8.0.230.0000.00816.88
8.0.220.0030.00616.96
8.0.210.0000.00716.82
8.0.200.0030.00316.90
8.0.190.0000.00917.01
8.0.180.0040.00416.99
8.0.170.0000.00816.81
8.0.160.0000.00716.96
8.0.150.0000.00816.93
8.0.140.0000.00816.82
8.0.130.0070.00013.35
8.0.120.0000.00816.86
8.0.110.0000.00716.95
8.0.100.0040.00416.98
8.0.90.0050.00216.96
8.0.80.0120.00316.94
8.0.70.0040.00416.82
8.0.60.0040.00416.90
8.0.50.0070.00016.80
8.0.30.0120.00617.06
8.0.20.0060.01317.40
8.0.10.0040.00317.07
8.0.00.0100.00917.04
7.4.330.0000.00516.89
7.4.320.0000.00616.48
7.4.300.0000.00616.68
7.4.290.0000.00716.66
7.4.280.0040.00416.54
7.4.270.0050.00516.65
7.4.260.0040.00416.60
7.4.250.0050.00216.55
7.4.240.0070.00016.62
7.4.230.0030.00316.27
7.4.220.0090.01216.48
7.4.210.0050.01016.49
7.4.200.0040.00416.52
7.4.160.0100.00716.79
7.4.150.0060.01217.40
7.4.140.0060.01517.86
7.4.130.0060.01216.52
7.4.120.0100.01216.55
7.4.110.0040.01216.70
7.4.100.0100.01316.60
7.4.90.0110.00716.54
7.4.80.0130.00319.39
7.4.70.0060.01116.68
7.4.60.0130.00716.40
7.4.50.0090.00616.41
7.4.40.0070.01416.53
7.4.30.0110.00616.54
7.4.10.0070.01314.88
7.4.00.0060.00515.05
7.3.330.0050.00013.22
7.3.320.0030.00313.22
7.3.310.0040.00416.39
7.3.300.0000.00716.36
7.3.290.0030.00316.31
7.3.280.0110.00916.32
7.3.270.0110.00617.40
7.3.260.0160.00416.48
7.3.250.0070.01116.41
7.3.240.0070.00916.37
7.3.230.0090.01216.55
7.3.210.0080.00916.34
7.3.200.0120.00616.41
7.3.190.0060.01516.33
7.3.180.0070.01016.36
7.3.170.0120.00616.36
7.3.160.0000.02016.43
7.3.130.0120.00314.87
7.3.120.0060.01214.70
7.3.110.0110.00714.96
7.3.100.0080.00014.82
7.3.90.0030.00614.86
7.3.80.0080.00414.89
7.3.70.0000.01514.82
7.3.60.0000.01514.99
7.3.50.0030.01014.91
7.3.40.0090.00614.76
7.3.30.0130.00314.80
7.3.20.0030.01016.77
7.3.10.0060.00616.57
7.3.00.0060.00916.52
7.2.330.0090.00916.58
7.2.320.0140.00416.69
7.2.310.0120.00916.42
7.2.300.0040.01216.73
7.2.290.0070.01016.41
7.2.260.0060.01314.89
7.2.250.0070.01115.25
7.2.240.0080.00415.00
7.2.230.0000.00814.82
7.2.220.0030.00615.06
7.2.210.0120.00015.08
7.2.200.0000.01115.07
7.2.190.0060.00614.75
7.2.180.0030.00615.09
7.2.170.0030.01214.64
7.2.160.0070.01014.96
7.2.150.0030.00916.78
7.2.140.0030.01316.71
7.2.130.0030.01016.95
7.2.120.0030.01316.55
7.2.110.0070.01316.48
7.2.100.0070.00716.82
7.2.90.0100.00616.96
7.2.80.0000.01616.82
7.2.70.0030.01316.96
7.2.60.0020.01316.89
7.2.50.0030.01016.84
7.2.40.0080.00816.63
7.2.30.0040.00716.84
7.2.20.0030.00916.55
7.2.10.0000.01316.78
7.2.00.0020.01017.98
7.1.330.0060.00615.83
7.1.320.0080.00015.83
7.1.310.0000.01415.75
7.1.300.0070.00715.51
7.1.290.0000.00915.64
7.1.280.0100.00615.73
7.1.270.0060.00615.57
7.1.260.0060.00615.97
7.1.250.0030.00915.58
7.1.240.0070.01015.76
7.1.230.0030.01315.46
7.1.220.0060.01015.51
7.1.210.0030.00915.54
7.1.200.0060.00615.67
7.1.190.0030.01015.57
7.1.180.0030.00715.78
7.1.170.0000.00815.89
7.1.160.0100.00715.43
7.1.150.0090.00015.69
7.1.140.0060.00915.88
7.1.130.0040.01115.36
7.1.120.0000.00815.77
7.1.110.0040.00715.53
7.1.100.0020.01016.68
7.1.90.0030.00615.90
7.1.80.0030.00615.70
7.1.70.0030.00816.34
7.1.60.0050.01517.35
7.1.50.0050.01116.19
7.1.40.0070.00715.77
7.1.30.0040.00815.66
7.1.20.0080.00415.62
7.1.10.0100.00315.68
7.1.00.0050.03819.14
7.0.330.0030.01015.52
7.0.320.0070.01115.36
7.0.310.0100.00715.48
7.0.300.0000.01415.37
7.0.290.0070.00715.56
7.0.280.0060.00615.52
7.0.270.0080.00415.37
7.0.260.0030.00715.59
7.0.250.0030.00915.64
7.0.240.0070.00715.23
7.0.230.0030.00715.22
7.0.220.0000.01415.57
7.0.210.0040.00715.58
7.0.200.0200.01115.18
7.0.190.0040.01515.18
7.0.180.0070.01115.41
7.0.170.0030.00915.54
7.0.160.0030.00615.28
7.0.150.0060.00915.23
7.0.140.0110.00315.25
7.0.130.0030.00615.43
7.0.120.0070.00715.33
7.0.110.0070.00715.30
7.0.100.0090.00615.47
7.0.90.0080.00815.32
7.0.80.0070.00815.47
7.0.70.0130.00015.33
7.0.60.0170.04417.68
7.0.50.0070.03516.60
7.0.40.0030.05016.96
7.0.30.0190.03516.87
7.0.20.0100.04216.89
7.0.10.0100.04516.82
7.0.00.0070.02316.84
5.6.400.0000.01714.50
5.6.390.0060.00914.48
5.6.380.0060.00314.66
5.6.370.0070.01014.53
5.6.360.0070.00714.15
5.6.350.0070.00714.42
5.6.340.0030.00914.22
5.6.330.0070.00714.42
5.6.320.0110.00414.21
5.6.310.0040.01414.42
5.6.300.0030.01214.61
5.6.290.0060.00614.34
5.6.280.0060.03317.59
5.6.270.0030.01014.20
5.6.260.0040.00914.43
5.6.250.0080.00614.50
5.6.240.0040.01114.17
5.6.230.0100.00314.21
5.6.220.0080.00814.16
5.6.210.0050.04617.49
5.6.200.0050.04216.35
5.6.190.0080.04317.34
5.6.180.0100.03717.43
5.6.170.0240.03317.33
5.6.160.0070.02817.51
5.6.150.0100.03716.21
5.6.140.0100.03316.29
5.6.130.0090.04016.20
5.6.120.0050.04817.66
5.6.110.0080.04917.78
5.6.100.0080.03517.56
5.6.90.0080.04117.63
5.6.80.0090.02817.42
5.6.70.0040.01114.21
5.6.60.0070.00714.20
5.6.50.0030.01014.11
5.6.40.0040.00814.32
5.6.30.0080.00614.49
5.6.20.0040.01513.96
5.6.10.0000.00814.24
5.6.00.0060.00614.05
5.5.380.0000.01614.31
5.5.370.0100.00713.94
5.5.360.0030.01113.95
5.5.350.0130.03017.08
5.5.340.0060.03616.07
5.5.330.0080.02317.25
5.5.320.0350.03717.23
5.5.310.0220.03817.23
5.5.300.0120.02516.04
5.5.290.0070.04516.23
5.5.280.0070.02217.59
5.5.270.0070.04217.44
5.5.260.0080.04317.40
5.5.250.0020.02717.40
5.5.240.0100.04317.03
5.5.230.0090.00613.78
5.5.220.0070.01013.80
5.5.210.0040.00714.10
5.5.200.0000.01014.18
5.5.190.0040.01213.86
5.5.180.0000.01413.89
5.5.170.0100.00313.95
5.5.160.0000.01314.21
5.5.150.0000.01114.07
5.5.140.0070.00713.81
5.5.130.0170.00014.21
5.5.120.0100.00613.72
5.5.110.0080.00814.01
5.5.100.0040.01413.69
5.5.90.0070.01013.93
5.5.80.0000.00914.10
5.5.70.0000.01213.82
5.5.60.0040.00714.08
5.5.50.0060.00613.84
5.5.40.0040.01113.98
5.5.30.0030.01213.89
5.5.20.0030.00614.18
5.5.10.0090.00613.82
5.5.00.0030.00913.96

preferences:
52.97 ms | 401 KiB | 5 Q