3v4l.org

run code in 300+ PHP versions simultaneously
<?php $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"; // 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); // 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); // 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); // Use Base64 encoding to send the resulting bytes of the encrypted name value string $settingsCipher = base64_encode($aes128); echo $settingsCipher;

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.20
8.3.50.0110.00321.98
8.3.40.0150.00018.84
8.3.30.0110.00419.09
8.3.20.0080.00020.34
8.3.10.0000.00723.65
8.3.00.0080.00019.56
8.2.180.0110.01116.75
8.2.170.0040.01122.96
8.2.160.0030.01020.52
8.2.150.0030.00524.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0040.00421.01
8.2.110.0060.00320.34
8.2.100.0060.00617.85
8.2.90.0000.00818.09
8.2.80.0090.00017.97
8.2.70.0030.00617.63
8.2.60.0030.00617.90
8.2.50.0000.00818.07
8.2.40.0050.00317.91
8.2.30.0040.00418.09
8.2.20.0050.00217.70
8.2.10.0040.00417.96
8.2.00.0000.00817.80
8.1.280.0140.00025.92
8.1.270.0060.00323.91
8.1.260.0070.00026.35
8.1.250.0030.00528.09
8.1.240.0080.00022.03
8.1.230.0080.00320.89
8.1.220.0000.00817.77
8.1.210.0000.00818.79
8.1.200.0060.00317.25
8.1.190.0030.00517.23
8.1.180.0000.00818.10
8.1.170.0060.00318.72
8.1.160.0040.00422.00
8.1.150.0000.00818.81
8.1.140.0050.00317.45
8.1.130.0030.00317.88
8.1.120.0070.00017.48
8.1.110.0030.00517.39
8.1.100.0090.00017.48
8.1.90.0040.00317.44
8.1.80.0050.00217.45
8.1.70.0070.00017.42
8.1.60.0040.00417.41
8.1.50.0040.00417.45
8.1.40.0000.00817.43
8.1.30.0000.00817.64
8.1.20.0080.00017.64
8.1.10.0040.00417.48
8.1.00.0000.01117.41
8.0.300.0040.00420.09
8.0.290.0050.00216.63
8.0.280.0000.00718.41
8.0.270.0030.00317.20
8.0.260.0000.00617.13
8.0.250.0070.00016.88
8.0.240.0030.00617.01
8.0.230.0000.00716.86
8.0.220.0020.00516.89
8.0.210.0070.00016.93
8.0.200.0060.00016.98
8.0.190.0000.00716.99
8.0.180.0040.00416.94
8.0.170.0080.00016.95
8.0.160.0000.00816.96
8.0.150.0000.00816.75
8.0.140.0000.00716.90
8.0.130.0030.00313.38
8.0.120.0030.00616.86
8.0.110.0020.00516.84
8.0.100.0000.00816.88
8.0.90.0070.00016.84
8.0.80.0060.01016.84
8.0.70.0000.00716.93
8.0.60.0000.00716.96
8.0.50.0040.00416.78
8.0.30.0180.00516.97
8.0.20.0150.00617.40
8.0.10.0070.00017.01
8.0.00.0060.01016.87
7.4.330.0050.00015.04
7.4.320.0080.00016.60
7.4.300.0030.00316.52
7.4.290.0030.00316.44
7.4.280.0030.00516.52
7.4.270.0040.00416.45
7.4.260.0030.00316.57
7.4.250.0000.00816.56
7.4.240.0030.00416.53
7.4.230.0050.00316.71
7.4.220.0000.01716.43
7.4.210.0030.01116.63
7.4.200.0030.00316.61
7.4.160.0100.01316.59
7.4.150.0080.00817.40
7.4.140.0050.01317.86
7.4.130.0140.00216.65
7.4.120.0120.00816.49
7.4.110.0110.00716.40
7.4.100.0100.00716.43
7.4.90.0100.00716.60
7.4.80.0030.01919.39
7.4.70.0090.00816.40
7.4.60.0160.00016.61
7.4.50.0030.00616.53
7.4.40.0030.01416.46
7.4.30.0120.00316.43
7.4.00.0070.01015.20
7.3.330.0030.00313.06
7.3.320.0050.00012.99
7.3.310.0000.00716.13
7.3.300.0000.00616.10
7.3.290.0110.00316.22
7.3.280.0100.00616.30
7.3.270.0070.01017.40
7.3.260.0070.01316.29
7.3.250.0100.01016.47
7.3.240.0110.00516.26
7.3.230.0100.00616.39
7.3.210.0090.00616.30
7.3.200.0070.01119.39
7.3.190.0080.00816.27
7.3.180.0070.01416.59
7.3.170.0030.01316.41
7.3.160.0100.00716.34
7.3.120.0040.00814.80
7.2.330.0100.00716.72
7.2.320.0100.00616.75
7.2.310.0100.00716.52
7.2.300.0090.00616.54
7.2.290.0100.00716.63
7.2.60.0040.01116.83
7.2.00.0040.01219.21
7.1.200.0100.00315.84
7.1.100.0000.01118.32
7.1.70.0040.00417.29
7.1.60.0100.01419.70
7.1.50.0140.01016.94
7.1.00.0030.07722.36
7.0.200.0070.00716.63
7.0.140.0070.07021.95
7.0.60.0030.07719.95
7.0.50.0100.08317.90
7.0.40.0100.03720.32
7.0.30.0530.06020.24
7.0.20.0330.06720.18
7.0.10.0270.07320.30
7.0.00.0070.05720.22
5.6.280.0070.07021.10
5.6.210.0000.04720.71
5.6.200.0100.06718.21
5.6.190.0100.04720.58
5.6.180.0270.04320.27
5.6.170.0370.07320.55
5.6.160.0030.04320.43
5.6.150.0030.06718.09
5.6.140.0000.07018.18
5.6.130.0030.04318.09
5.6.120.0200.07321.02
5.6.110.0130.07021.12
5.6.100.0070.08021.07
5.6.90.0200.07721.05
5.6.80.0070.04720.50
5.6.70.4470.04020.42
5.5.350.0130.08320.49
5.5.340.0000.04717.89
5.5.330.0070.05720.21
5.5.320.4070.04020.34
5.5.310.0230.05720.32
5.5.300.0030.04017.91
5.5.290.0100.05717.88
5.5.280.0100.06320.89
5.5.270.0070.08020.70
5.5.260.0170.06720.78
5.5.250.0100.07720.86
5.5.240.0070.07020.32
5.4.450.0300.06319.30
5.4.440.3900.03319.11
5.4.430.0200.05019.68
5.4.420.0130.05319.30
5.4.410.0070.06019.20
5.4.400.0000.06318.90
5.4.390.0070.05718.98
5.4.380.0130.05718.53
5.4.370.0170.05018.68
5.4.360.0130.04718.80
5.4.350.0100.04011.98
5.4.340.0070.03911.97
5.4.320.0090.04312.46
5.4.310.0080.05412.46
5.4.300.0080.03512.46
5.4.290.0100.03912.46
5.4.280.0060.03812.36
5.4.270.0060.04012.36
5.4.260.0030.04012.35
5.4.250.0030.04512.35
5.4.240.0070.03412.36
5.4.230.0040.03912.34
5.4.220.0130.04612.35
5.4.210.0070.03412.35
5.4.200.0020.04212.35
5.4.190.0070.04012.34
5.4.180.0030.04012.34
5.4.170.0070.03812.35
5.4.160.0060.04712.35
5.4.150.0050.04112.35
5.4.140.0060.03812.03
5.4.130.0040.03912.02
5.4.120.0040.04211.98
5.4.110.0080.03511.97
5.4.100.0070.03511.97
5.4.90.0070.03611.97
5.4.80.0040.04011.97
5.4.70.0060.03611.97
5.4.60.0070.03611.97
5.4.50.0040.03811.96
5.4.40.0040.03611.95
5.4.30.0070.04311.95
5.4.20.0060.03511.95
5.4.10.0050.03611.95
5.4.00.0050.03711.44
5.3.290.0080.03812.80
5.3.280.0110.04112.71
5.3.270.0090.03912.72
5.3.260.0050.04212.71
5.3.250.0090.04112.72
5.3.240.0090.03812.72
5.3.230.0050.04012.71
5.3.220.0100.04212.68
5.3.210.0060.03912.68
5.3.200.0060.04012.68
5.3.190.0090.03812.68
5.3.180.0080.04212.68
5.3.170.0060.04412.66
5.3.160.0090.03812.67
5.3.150.0040.04012.68
5.3.140.0080.03712.66
5.3.130.0080.04012.66
5.3.120.0050.03912.66
5.3.110.0050.04012.66
5.3.100.0080.03812.12
5.3.90.0040.03912.09
5.3.80.0070.03912.08
5.3.70.0090.03712.08

preferences:
61.56 ms | 401 KiB | 5 Q