3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tempToken = "fb7da1b8-1b98-4cdb-8f10-b327b59f5a76a3fd848b-0f85-44de-ad29-3972a4a6a2b8"; $clearText = "AuthToken=fb7da1b8-1b98-4cdb-8f10-b327b59f5a76a3fd848b-0f85-44de-ad29-3972a4a6a2b8&PayerId=2038251884870255&PaymentProcessType=CreditCard&ProcessMethod=None&PaymentMethodStorageOption=None&ReturnURL=https://il01addproc.propay.com:443/Return.aspx "; // $tempToken = "1f25d31c-e8fe-4d68-be73-f7b439bfa0a329e90de6-4e93-4374-8633-22cef77467f5"; // $clearText = "AuthToken=1f25d31c-e8fe-4d68-be73-f7b439bfa0a329e90de6-4e93-4374-8633-22cef77467f5&PayerID=2833955147881261&Amount=10.00&CurrencyCode=USD&ProcessMethod=Capture&PaymentMethodStorageOption=None&InvoiceNumber=Invoice123&Comment1=comment1&Comment2=comment2&echo=echotest&ReturnURL=https://il01addproc.propay.com:443/Return.aspx&ProfileId=3351&PaymentProcessType=CreditCard&StandardEntryClassCode=&DisplayMessage=True&Protected=False"; echo md5($clearText) . "\n"; // Encode the TempToken string in UTF-8 $encodedTempToken = utf8_encode($tempToken); // Get the MD5 hash of $encodedTempToken in raw binary format with a length of 16 $md5Hash = md5($encodedTempToken, TRUE); // Encode the name value string in UTF-8 $encodedNameValueString = utf8_encode($clearText); echo md5($encodedNameValueString) . "\n"; // Pad the name value string using pkcs5_pad $blocksize = mcrypt_get_block_size('rijndael_128', 'cbc'); $pad = $blocksize - (strlen($encodedNameValueString) % $blocksize); $encodedNameValueString = $encodedNameValueString . str_repeat(chr($pad), $pad); echo md5($encodedNameValueString) . "\n"; // Use AES-128 encryption to encrypt the name value string with the key and IV both being equal to the MD5 hash of $encodedTempToken $aes128 = mcrypt_encrypt(MCRYPT_RIJNDAEL_128, $md5Hash, $encodedNameValueString, MCRYPT_MODE_CBC, $md5Hash); echo md5($aes128) . "\n"; // Use Base64 encoding to send the resulting bytes of the encrypted name value string $settingsCipher = base64_encode($aes128);

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.0120.00316.50
8.3.50.0130.01121.99
8.3.40.0150.00018.84
8.3.30.0120.00619.09
8.3.20.0040.00420.16
8.3.10.0030.00623.59
8.3.00.0030.00619.68
8.2.180.0120.00618.29
8.2.170.0040.01122.96
8.2.160.0070.00720.41
8.2.150.0030.00524.18
8.2.140.0030.00524.66
8.2.130.0030.00526.16
8.2.120.0080.00020.96
8.2.110.0030.00620.46
8.2.100.0080.00418.03
8.2.90.0080.00019.08
8.2.80.0080.00017.97
8.2.70.0040.00417.75
8.2.60.0030.00517.68
8.2.50.0000.00818.07
8.2.40.0050.00318.30
8.2.30.0050.00318.27
8.2.20.0030.00517.67
8.2.10.0070.00018.09
8.2.00.0090.00017.81
8.1.280.0110.01125.92
8.1.270.0040.00423.69
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0000.01023.84
8.1.230.0060.00617.52
8.1.220.0000.00917.75
8.1.210.0030.00618.77
8.1.200.0000.00817.48
8.1.190.0040.00417.35
8.1.180.0050.00318.10
8.1.170.0000.00818.59
8.1.160.0000.00722.03
8.1.150.0000.00818.89
8.1.140.0040.00417.37
8.1.130.0000.00717.71
8.1.120.0070.00017.49
8.1.110.0000.00717.35
8.1.100.0050.00317.45
8.1.90.0000.00717.52
8.1.80.0040.00417.46
8.1.70.0000.00717.50
8.1.60.0030.00617.60
8.1.50.0000.00917.54
8.1.40.0040.00417.43
8.1.30.0040.00417.60
8.1.20.0000.00817.50
8.1.10.0000.00717.56
8.1.00.0000.00717.41
8.0.300.0030.00618.77
8.0.290.0050.00216.63
8.0.280.0030.00318.49
8.0.270.0000.00817.36
8.0.260.0070.00017.26
8.0.250.0000.00717.00
8.0.240.0030.00316.92
8.0.230.0030.00317.02
8.0.220.0050.00217.01
8.0.210.0000.00716.96
8.0.200.0000.00716.92
8.0.190.0040.00417.01
8.0.180.0070.00016.88
8.0.170.0040.00416.88
8.0.160.0080.00016.97
8.0.150.0040.00416.86
8.0.140.0040.00416.80
8.0.130.0060.00013.41
8.0.120.0030.00716.90
8.0.110.0000.00816.81
8.0.100.0050.00516.96
8.0.90.0040.00416.85
8.0.80.0030.01417.03
8.0.70.0000.00817.01
8.0.60.0000.00716.78
8.0.50.0040.00417.01
8.0.30.0180.00317.10
8.0.20.0140.00517.40
8.0.10.0000.00716.98
8.0.00.0110.00916.86
7.4.330.0020.00215.03
7.4.320.0060.00016.54
7.4.300.0030.00316.52
7.4.290.0070.00016.61
7.4.280.0000.00816.50
7.4.270.0000.00816.41
7.4.260.0070.00316.40
7.4.250.0040.00416.43
7.4.240.0020.00516.55
7.4.230.0040.00416.60
7.4.220.0190.00316.54
7.4.210.0080.00616.60
7.4.200.0000.00716.54
7.4.160.0090.01216.57
7.4.150.0100.01017.40
7.4.140.0100.00817.86
7.4.130.0080.00816.52
7.4.120.0120.00816.74
7.4.110.0060.01216.46
7.4.100.0100.00716.63
7.4.90.0150.00616.62
7.4.80.0150.00619.39
7.4.70.0090.01016.63
7.4.60.0040.01816.59
7.4.50.0000.00516.52
7.4.40.0140.00316.65
7.4.30.0070.01016.52
7.4.10.0080.00715.19
7.4.00.0030.01215.05
7.3.330.0000.00613.02
7.3.320.0000.00713.16
7.3.310.0000.00716.21
7.3.300.0030.00316.24
7.3.290.0140.00416.41
7.3.280.0090.00816.33
7.3.270.0120.00617.40
7.3.260.0100.01016.31
7.3.250.0130.00516.32
7.3.240.0070.01016.35
7.3.230.0170.00016.54
7.3.210.0090.00916.32
7.3.200.0060.01019.39
7.3.190.0040.01216.52
7.3.180.0030.01316.57
7.3.170.0060.01016.40
7.3.160.0060.00916.33
7.3.130.0100.01014.86
7.3.120.0080.01014.75
7.3.110.0090.00814.99
7.3.100.0040.01014.90
7.3.90.0110.00514.85
7.3.80.0070.00414.97
7.3.70.0060.00814.61
7.3.60.0030.01214.65
7.3.50.0070.00214.86
7.3.40.0080.00814.77
7.3.30.0050.01214.69
7.3.20.0080.00816.43
7.3.10.0070.00816.59
7.3.00.0100.00516.60
7.2.330.0070.01016.32
7.2.320.0050.01316.61
7.2.310.0160.00716.75
7.2.300.0110.00616.69
7.2.290.0150.00616.34
7.2.260.0080.01114.96
7.2.250.0090.01014.87
7.2.240.0030.01214.93
7.2.230.0070.00814.98
7.2.220.0080.00314.94
7.2.210.0000.01515.02
7.2.200.0050.01014.94
7.2.190.0050.01014.86
7.2.180.0050.00514.89
7.2.170.0110.00714.95
7.2.160.0050.01314.88
7.2.150.0070.01016.93
7.2.140.0110.00016.79
7.2.130.0050.01316.88
7.2.120.0080.00816.76
7.2.110.0060.00717.02
7.2.100.0030.01116.97
7.2.90.0060.00816.74
7.2.80.0070.00716.99
7.2.70.0120.00016.79
7.2.60.0060.00816.88
7.2.50.0040.00716.71
7.2.40.0060.00616.88
7.2.30.0020.01116.76
7.2.20.0050.01016.93
7.2.10.0060.00716.88
7.2.00.0050.00917.70
7.1.330.0050.01015.58
7.1.320.0040.00715.65
7.1.310.0050.00815.73
7.1.300.0040.00615.78
7.1.290.0050.00615.70
7.1.280.0050.01015.74
7.1.270.0050.01315.89
7.1.260.0120.00215.70
7.1.250.0060.00615.77
7.1.240.0070.00615.45
7.1.230.0000.01315.82
7.1.220.0030.00815.66
7.1.210.0020.01215.73
7.1.200.0060.00615.71
7.1.190.0020.01115.74
7.1.180.0030.00715.76
7.1.170.0120.00315.73
7.1.160.0020.00915.71
7.1.150.0020.00915.92
7.1.140.0100.00515.59
7.1.130.0060.00515.88
7.1.120.0070.00315.79
7.1.110.0020.00915.66
7.1.100.0030.00716.71
7.1.90.0070.00615.72
7.1.80.0040.00915.84
7.1.70.0040.00616.16
7.1.60.0070.00817.02
7.1.50.0040.00816.13
7.1.40.0090.00515.71
7.1.30.0080.00615.67
7.1.20.0030.01115.86
7.1.10.0130.00015.71
7.1.00.0070.02717.84
7.0.330.0060.01215.39
7.0.320.0030.01015.26
7.0.310.0060.00515.31
7.0.300.0050.00815.26
7.0.290.0070.00215.42
7.0.280.0110.00315.24
7.0.270.0060.00415.30
7.0.260.0030.01015.40
7.0.250.0050.00815.33
7.0.240.0080.00515.31
7.0.230.0050.00615.62
7.0.220.0050.01115.44
7.0.210.0050.00715.57
7.0.200.0060.00615.82
7.0.190.0060.00315.52
7.0.180.0020.01115.28
7.0.170.0010.01115.39
7.0.160.0090.00515.39
7.0.150.0080.00315.23
7.0.140.0030.02917.65
7.0.130.0010.00915.37
7.0.120.0060.00415.30
7.0.110.0070.00715.56
7.0.100.0050.00815.51
7.0.90.0040.00615.46
7.0.80.0090.00515.41
7.0.70.0020.00715.37
7.0.60.0060.03216.90
7.0.50.0040.02216.25
7.0.40.0070.01915.59
7.0.30.0190.01815.60
7.0.20.0130.03015.60
7.0.10.0110.02215.60
7.0.00.0040.03615.75
5.6.400.0080.00714.52
5.6.390.0060.00614.41
5.6.380.0030.00614.30
5.6.370.0070.00414.40
5.6.360.0050.01014.47
5.6.350.0080.00514.16
5.6.340.0030.01014.38
5.6.330.0030.00814.24
5.6.320.0110.00314.30
5.6.310.0020.01014.30
5.6.300.0080.00314.38
5.6.290.0050.00814.46
5.6.280.0050.03016.56
5.6.270.0040.00914.22
5.6.260.0060.00514.46
5.6.250.0060.00814.49
5.6.240.0040.01214.19
5.6.230.0070.00714.27
5.6.220.0060.00614.16
5.6.210.0050.02916.41
5.6.200.0050.02315.68
5.6.190.0050.02116.31
5.6.180.0030.03316.43
5.6.170.0160.02616.33
5.6.160.0010.02416.40
5.6.150.0080.03115.74
5.6.140.0050.01715.55
5.6.130.0030.02215.63
5.6.120.0130.02716.48
5.6.110.0060.03016.54
5.6.100.0050.02516.47
5.6.90.0070.03216.40
5.6.80.0050.01916.21
5.6.70.0110.03016.36
5.6.60.0040.01114.08
5.6.50.0040.01013.96
5.6.40.0050.00714.13
5.6.30.0050.00814.18
5.6.20.0050.00614.08
5.6.10.0020.00714.04
5.6.00.0050.00714.27
5.5.380.0040.01014.13
5.5.370.0090.00314.33
5.5.360.0100.00314.07
5.5.350.0050.03416.33
5.5.340.0090.02815.52
5.5.330.0050.02416.28
5.5.320.0130.02516.29
5.5.310.0150.01916.25
5.5.300.0020.03115.51
5.5.290.0060.01715.42
5.5.280.0060.02316.49
5.5.270.0070.03316.44
5.5.260.0070.02716.43
5.5.250.0050.01816.23
5.5.240.0070.03016.13
5.5.230.0060.00614.23
5.5.220.0100.00314.20
5.5.210.0040.01114.11
5.5.200.0020.00914.26
5.5.190.0040.00914.30
5.5.180.0110.00113.99
5.5.170.0020.01014.18
5.5.160.0110.00314.15
5.5.150.0070.00514.17
5.5.140.0020.01314.17
5.5.130.0080.00614.25
5.5.120.0080.00414.25
5.5.110.0030.00914.24
5.5.100.0080.00514.03
5.5.90.0070.00913.95
5.5.80.0060.00614.23
5.5.70.0020.00814.28
5.5.60.0000.01314.04
5.5.50.0030.00914.25
5.5.40.0060.00814.04
5.5.30.0050.00814.11
5.5.20.0030.01014.21
5.5.10.0060.00814.12
5.5.00.0030.00814.07
5.4.450.0180.02114.45
5.4.440.0170.02214.56
5.4.430.0200.01614.45
5.4.420.0190.01614.38
5.4.410.0230.01814.38
5.4.400.0120.01822.72
5.4.390.0180.01722.61
5.4.380.0030.02614.22
5.4.370.0080.02114.13
5.4.360.0110.01614.11
5.4.350.0130.01814.14
5.4.340.0120.02014.17
5.4.330.0050.00511.87
5.4.320.0070.01712.08
5.4.310.0030.02112.12
5.4.300.0050.01712.11
5.4.290.0020.01912.04
5.4.280.0030.01812.16
5.4.270.0040.01512.07
5.4.260.0040.01812.07
5.4.250.0040.01912.05
5.4.240.0070.01612.16
5.4.230.0060.01612.08
5.4.220.0080.01312.05
5.4.210.0060.01512.13
5.4.200.0050.01612.06
5.4.190.0040.01612.02
5.4.180.0040.01912.03
5.4.170.0030.02212.00
5.4.160.0040.01812.07
5.4.150.0020.01911.99
5.4.140.0040.01811.97
5.4.130.0070.01611.91
5.4.120.0070.01411.99
5.4.110.0050.01611.99
5.4.100.0050.01511.94
5.4.90.0030.01911.84
5.4.80.0070.01311.95
5.4.70.0020.01611.88
5.4.60.0040.01711.98
5.4.50.0030.01711.95
5.4.40.0060.01711.95
5.4.30.0040.01411.94
5.4.20.0040.01811.95
5.4.10.0040.01611.97
5.4.00.0060.01511.74
5.3.290.0050.01912.00
5.3.280.0050.01712.01
5.3.270.0060.01612.07
5.3.260.0030.01812.01
5.3.250.0050.01812.03
5.3.240.0070.01911.93
5.3.230.0050.01812.04
5.3.220.0040.01612.00
5.3.210.0060.01511.98
5.3.200.0050.01711.92
5.3.190.0060.01812.05
5.3.180.0050.01512.04
5.3.170.0040.01912.07
5.3.160.0040.01911.98
5.3.150.0040.01612.06
5.3.140.0080.01211.99
5.3.130.0070.01612.06
5.3.120.0030.01612.02
5.3.110.0070.01612.03
5.3.100.0040.01711.88
5.3.90.0030.01811.87
5.3.80.0060.01711.77
5.3.70.0070.01311.81
5.3.60.0080.01711.82
5.3.50.0020.01911.73
5.3.40.0030.01611.73
5.3.30.0020.01711.77
5.3.20.0050.01411.67
5.3.10.0040.01511.59
5.3.00.0040.01511.54
5.2.170.0020.0369.19
5.2.160.0050.0369.19
5.2.150.0080.0309.19
5.2.140.0090.0349.18
5.2.130.0080.0259.14
5.2.120.0060.0269.14
5.2.110.0040.0289.15
5.2.100.0030.0299.15
5.2.90.0030.0309.14
5.2.80.0030.0309.14
5.2.70.0030.0319.14
5.2.60.0050.0299.10
5.2.50.0070.0279.07
5.2.40.0070.0269.04
5.2.30.0050.0289.02
5.2.20.0040.0299.04
5.2.10.0040.0288.94
5.2.00.0030.0318.80
5.1.60.0040.0248.09
5.1.50.0060.0238.08
5.1.40.0060.0348.05
5.1.30.0070.0248.41
5.1.20.0020.0318.43
5.1.10.0060.0238.16
5.1.00.0020.0288.16
5.0.50.0020.0266.64
5.0.40.0050.0176.51
5.0.30.0040.0306.32
5.0.20.0060.0176.29
5.0.10.0050.0186.27
5.0.00.0040.0306.27
4.4.90.0030.0164.78
4.4.80.0030.0154.76
4.4.70.0060.0134.75
4.4.60.0050.0194.75
4.4.50.0020.0164.77
4.4.40.0030.0284.70
4.4.30.0010.0194.75
4.4.20.0010.0164.84
4.4.10.0030.0154.85
4.4.00.0010.0274.76
4.3.110.0030.0154.67
4.3.100.0010.0174.66
4.3.90.0060.0204.63
4.3.80.0030.0244.59
4.3.70.0030.0144.63
4.3.60.0030.0144.62
4.3.50.0030.0154.63
4.3.40.0030.0234.54
4.3.30.0030.0213.30
4.3.20.0000.0213.29
4.3.10.0040.0133.24
4.3.00.0130.01043.92

preferences:
59.48 ms | 401 KiB | 5 Q