3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tempToken = "a55017c7-ce6a-4198-9af1-0c530c5d901f6f5f2cf2-c5e4-4dca-bc2f-80f3eb017de8"; $clearText = "AuthToken=a55017c7-ce6a-4198-9af1-0c530c5d901f6f5f2cf2-c5e4-4dca-bc2f-80f3eb017de8&PayerId=3356997047357992&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"; // 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.0150.00318.36
8.3.50.0090.01422.05
8.3.40.0140.00018.68
8.3.30.0110.00419.04
8.3.20.0070.00020.22
8.3.10.0070.00023.61
8.3.00.0040.00419.56
8.2.180.0110.00718.41
8.2.170.0140.00022.96
8.2.160.0090.00620.34
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00420.88
8.2.110.0050.00522.29
8.2.100.0100.00317.97
8.2.90.0000.00719.05
8.2.80.0030.00617.97
8.2.70.0090.00017.50
8.2.60.0040.00417.91
8.2.50.0050.00518.07
8.2.40.0040.00418.03
8.2.30.0000.00718.23
8.2.20.0040.00417.58
8.2.10.0060.00317.96
8.2.00.0080.00017.73
8.1.280.0070.00725.92
8.1.270.0080.00023.98
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0090.00023.89
8.1.230.0110.00019.01
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0040.00417.23
8.1.190.0060.00317.00
8.1.180.0040.00418.10
8.1.170.0000.00818.59
8.1.160.0050.00221.91
8.1.150.0040.00418.81
8.1.140.0000.00717.25
8.1.130.0030.00317.80
8.1.120.0040.00417.28
8.1.110.0000.00717.42
8.1.100.0000.00717.36
8.1.90.0040.00417.32
8.1.80.0030.00717.27
8.1.70.0070.00017.35
8.1.60.0040.00717.49
8.1.50.0040.00417.37
8.1.40.0040.00417.47
8.1.30.0040.00417.59
8.1.20.0030.00517.65
8.1.10.0000.00817.59
8.1.00.0000.00717.48
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0040.00418.37
8.0.270.0030.00517.14
8.0.260.0030.00317.09
8.0.250.0070.00016.85
8.0.240.0030.00617.02
8.0.230.0030.00316.93
8.0.220.0060.00016.78
8.0.210.0050.00216.94
8.0.200.0070.00016.98
8.0.190.0080.00016.83
8.0.180.0000.00716.89
8.0.170.0000.00816.83
8.0.160.0000.00716.76
8.0.150.0000.00716.81
8.0.140.0000.00716.82
8.0.130.0050.00013.35
8.0.120.0050.00316.73
8.0.110.0000.00816.82
8.0.100.0000.00816.95
8.0.90.0050.00216.78
8.0.80.0060.00916.84
8.0.70.0040.00416.89
8.0.60.0040.00416.95
8.0.50.0050.00316.92
8.0.30.0080.01317.07
8.0.20.0120.00917.40
8.0.10.0060.00316.83
8.0.00.0080.01016.63
7.4.330.0060.00015.09
7.4.320.0030.00316.34
7.4.300.0040.00416.48
7.4.290.0040.00416.44
7.4.280.0050.00316.47
7.4.270.0000.00716.44
7.4.260.0030.00716.50
7.4.250.0050.00316.54
7.4.240.0010.00616.58
7.4.230.0030.00316.34
7.4.220.0140.00316.53
7.4.210.0080.00516.55
7.4.200.0030.00316.52
7.4.160.0080.00816.54
7.4.150.0140.00417.40
7.4.140.0130.00517.86
7.4.130.0080.01116.45
7.4.120.0110.00716.57
7.4.110.0070.01016.63
7.4.100.0070.01516.36
7.4.90.0100.01116.45
7.4.80.0170.00319.39
7.4.70.0140.00716.27
7.4.60.0070.01016.35
7.4.50.0090.00016.57
7.4.40.0060.01216.41
7.4.30.0060.00916.33
7.4.10.0060.01314.84
7.4.00.0030.01314.88
7.3.330.0000.00613.05
7.3.320.0000.00613.15
7.3.310.0000.00716.21
7.3.300.0030.00316.24
7.3.290.0070.00716.17
7.3.280.0130.00416.29
7.3.270.0110.00617.40
7.3.260.0060.01216.48
7.3.250.0110.00716.41
7.3.240.0080.01616.65
7.3.230.0060.01316.43
7.3.210.0070.01016.52
7.3.200.0100.00719.39
7.3.190.0090.00616.52
7.3.180.0060.01016.44
7.3.170.0030.01316.27
7.3.160.0040.01116.58
7.3.130.0060.01214.71
7.3.120.0110.00614.91
7.3.110.0030.01615.08
7.3.100.0000.01514.69
7.3.90.0030.01414.73
7.3.80.0070.00714.55
7.3.70.0090.00314.76
7.3.60.0130.00014.78
7.3.50.0060.00314.79
7.3.40.0030.01014.78
7.3.30.0050.00514.80
7.3.20.0070.00716.36
7.3.10.0070.00716.63
7.3.00.0100.00316.34
7.2.330.0090.00916.50
7.2.320.0090.00916.29
7.2.310.0070.01016.63
7.2.300.0090.00616.49
7.2.290.0060.00916.45
7.2.260.0060.00614.63
7.2.250.0060.01314.82
7.2.240.0070.00714.79
7.2.230.0070.01014.88
7.2.220.0000.01414.90
7.2.210.0000.01214.68
7.2.200.0100.00715.04
7.2.190.0110.00414.78
7.2.180.0060.00914.93
7.2.170.0100.00315.09
7.2.160.0100.00014.77
7.2.150.0110.00316.83
7.2.140.0060.00316.79
7.2.130.0070.00716.90
7.2.120.0100.00316.93
7.2.110.0040.01116.82
7.2.100.0030.01516.59
7.2.90.0090.00616.84
7.2.80.0030.01016.80
7.2.70.0030.01316.80
7.2.60.0100.00316.74
7.2.50.0060.00916.67
7.2.40.0040.01116.88
7.2.30.0100.00716.99
7.2.20.0090.00316.87
7.2.10.0090.00616.57
7.2.00.0030.01118.01
7.1.330.0000.01215.63
7.1.320.0060.00615.57
7.1.310.0070.00415.70
7.1.300.0030.01015.61
7.1.290.0100.00315.89
7.1.280.0000.01415.68
7.1.270.0040.01115.83
7.1.260.0060.00615.70
7.1.250.0040.01115.75
7.1.240.0000.01415.89
7.1.230.0100.00715.75
7.1.220.0040.01215.80
7.1.210.0060.00615.77
7.1.200.0050.01115.83
7.1.190.0100.00315.83
7.1.180.0080.00415.67
7.1.170.0030.01015.55
7.1.160.0110.00315.67
7.1.150.0030.01015.84
7.1.140.0090.00615.54
7.1.130.0000.01215.54
7.1.120.0070.00315.55
7.1.110.0030.00615.42
7.1.100.0030.01016.79
7.1.90.0060.00315.95
7.1.80.0060.01015.61
7.1.70.0020.00816.56
7.1.60.0060.01217.73
7.1.50.0020.01516.23
7.1.40.0030.00815.45
7.1.30.0000.01415.55
7.1.20.0040.01115.71
7.1.10.0040.00815.40
7.1.00.0100.03719.12
7.0.330.0030.01315.49
7.0.320.0070.01015.33
7.0.310.0080.00815.43
7.0.300.0000.01215.09
7.0.290.0100.00315.24
7.0.280.0080.00015.29
7.0.270.0120.00315.29
7.0.260.0100.00015.09
7.0.250.0000.01315.13
7.0.240.0070.00715.27
7.0.230.0080.00615.50
7.0.220.0000.01615.46
7.0.210.0060.00315.21
7.0.200.0080.00516.01
7.0.190.0060.00315.40
7.0.180.0040.00715.21
7.0.170.0060.00615.47
7.0.160.0030.01315.46
7.0.150.0060.00615.51
7.0.140.0030.04218.67
7.0.130.0070.00715.48
7.0.120.0000.01415.35
7.0.110.0030.01015.52
7.0.100.0070.00715.51
7.0.90.0040.01115.41
7.0.80.0090.00315.49
7.0.70.0030.00715.51
7.0.60.0070.03317.66
7.0.50.0090.04016.75
7.0.40.0070.04716.63
7.0.30.0200.04616.87
7.0.20.0080.03416.83
7.0.10.0030.03816.77
7.0.00.0020.03016.68
5.6.400.0060.00614.35
5.6.390.0100.00314.16
5.6.380.0070.00714.04
5.6.370.0100.00714.44
5.6.360.0060.00914.42
5.6.350.0060.01314.17
5.6.340.0060.00614.18
5.6.330.0070.01114.32
5.6.320.0060.00614.05
5.6.310.0090.00314.11
5.6.300.0110.00314.14
5.6.290.0070.00714.18
5.6.280.0030.04217.74
5.6.270.0070.00714.28
5.6.260.0030.00614.25
5.6.250.0000.01214.10
5.6.240.0040.00714.18
5.6.230.0100.00714.04
5.6.220.0080.00514.00
5.6.210.0030.03917.43
5.6.200.0050.02316.22
5.6.190.0080.04617.17
5.6.180.1790.02817.42
5.6.170.0100.03217.43
5.6.160.0080.03317.42
5.6.150.0070.04416.20
5.6.140.0050.02316.35
5.6.130.0080.04516.00
5.6.120.0080.03817.72
5.6.110.0100.03517.57
5.6.100.0050.02317.62
5.6.90.0060.03817.72
5.6.80.0070.03717.20
5.6.70.2280.01917.26
5.6.60.0040.00813.79
5.6.50.0000.01514.08
5.6.40.0030.00614.02
5.6.30.0060.00914.20
5.6.20.0040.00814.13
5.6.10.0030.01014.16
5.6.00.0090.00614.04
5.5.380.0110.00314.20
5.5.370.0080.00814.20
5.5.360.0000.01414.17
5.5.350.0070.03617.17
5.5.340.0020.02916.03
5.5.330.0150.04017.09
5.5.320.2130.01617.06
5.5.310.0120.03417.08
5.5.300.0050.02515.99
5.5.290.0030.04515.83
5.5.280.0080.04317.33
5.5.270.0070.03217.40
5.5.260.0100.04017.56
5.5.250.0110.03917.28
5.5.240.0220.03517.05
5.5.230.0080.00514.00
5.5.220.0050.00514.04
5.5.210.0140.00013.95
5.5.200.0070.00413.88
5.5.190.0090.00613.77
5.5.180.0090.00314.02
5.5.170.0000.01213.74
5.5.160.0040.00413.78
5.5.150.0000.01614.10
5.5.140.0080.00814.21
5.5.130.0030.01014.07
5.5.120.0070.00714.13
5.5.110.0030.01014.06
5.5.100.0040.01114.06
5.5.90.0130.00314.19
5.5.80.0000.01514.11
5.5.70.0110.00413.74
5.5.60.0080.00414.08
5.5.50.0080.00813.94
5.5.40.0090.00613.99
5.5.30.0080.00313.70
5.5.20.0030.00913.73
5.5.10.0030.00714.21
5.5.00.0080.00814.14
5.4.450.0100.02815.84
5.4.440.0100.04215.91
5.4.430.0140.02915.82
5.4.420.0100.03715.71
5.4.410.0100.02315.62
5.4.400.0150.02615.67
5.4.390.0170.03515.55
5.4.380.0120.02815.68
5.4.370.0120.04215.75
5.4.360.0120.03015.75
5.4.350.0070.03615.66
5.4.340.0150.03815.75
5.4.330.0030.00612.22
5.4.320.0140.02415.70
5.4.310.0130.03515.66
5.4.300.0120.02915.64
5.4.290.0170.03015.68
5.4.280.0200.02615.65
5.4.270.0130.04015.52
5.4.260.0170.03515.55
5.4.250.0160.03615.67
5.4.240.0150.04015.60
5.4.230.0100.02715.67
5.4.220.0100.02415.66
5.4.210.0140.02415.60
5.4.200.0160.02615.51
5.4.190.0130.02215.57
5.4.180.0170.03115.69
5.4.170.0160.03815.56
5.4.160.0110.04115.59
5.4.150.0150.03815.67
5.4.140.0170.03214.27
5.4.130.0150.03314.21
5.4.120.0080.03114.42
5.4.110.0130.02814.35
5.4.100.0100.02714.33
5.4.90.0080.02514.35
5.4.80.0240.01914.31
5.4.70.0130.03614.34
5.4.60.0120.02214.29
5.4.50.0200.02214.36
5.4.40.0180.03014.33
5.4.30.0150.03514.37
5.4.20.0200.03014.27
5.4.10.0180.02314.33
5.4.00.0130.02014.03
5.3.290.0120.02713.42
5.3.280.0130.03113.40
5.3.270.0150.03313.34
5.3.260.0200.03213.43
5.3.250.0180.03313.35
5.3.240.0130.04113.39
5.3.230.0180.03513.43
5.3.220.0120.03213.31
5.3.210.0130.02613.32
5.3.200.0230.03013.37
5.3.190.0180.03713.31
5.3.180.0200.03313.32
5.3.170.0150.02513.31
5.3.160.0170.04013.32
5.3.150.0170.03813.32
5.3.140.0160.03013.35
5.3.130.0080.02913.30
5.3.120.0160.03613.40
5.3.110.0140.04213.33
5.3.100.0150.03913.06
5.3.90.0190.03613.14
5.3.80.0150.03513.11
5.3.70.0180.03313.07
5.3.60.0180.02413.02
5.3.50.0210.02113.05
5.3.40.0140.02913.05
5.3.30.0160.03612.95
5.3.20.0140.03412.93
5.3.10.0100.02612.86
5.3.00.0220.02512.85
5.2.170.0200.06011.99
5.2.160.0200.05011.99
5.2.150.0170.04311.99
5.2.140.0170.04311.99
5.2.130.0230.05311.99
5.2.120.0100.04711.99
5.2.110.0270.03711.99
5.2.100.0200.05711.99
5.2.90.0200.05011.99
5.2.80.0130.04311.99
5.2.70.0200.05311.99
5.2.60.0200.04011.99
5.2.50.0270.03311.99
5.2.40.0130.03011.99
5.2.30.0200.05711.99
5.2.20.0230.05311.99
5.2.10.0130.05711.99
5.2.00.0170.05711.99
5.1.60.0200.04011.99
5.1.50.0170.05011.99
5.1.40.0170.03311.99
5.1.30.0130.03711.99
5.1.20.0130.04711.99
5.1.10.0300.03011.99
5.1.00.0230.03011.99
5.0.50.0130.04011.99
5.0.40.0070.03311.99
5.0.30.0030.06311.99
5.0.20.0100.04311.99
5.0.10.0100.04011.99
5.0.00.0130.06011.99
4.4.90.0070.02011.99
4.4.80.0100.03311.99
4.4.70.0070.03711.99
4.4.60.0100.03311.99
4.4.50.0070.03711.99
4.4.40.0070.04711.99
4.4.30.0070.03711.99
4.4.20.0130.01711.99
4.4.10.0070.04011.99
4.4.00.0100.05311.99
4.3.110.0070.03011.99
4.3.100.0070.02711.99
4.3.90.0100.04011.99
4.3.80.0100.05011.99
4.3.70.0070.02311.99
4.3.60.0100.03311.99
4.3.50.0030.03011.99
4.3.40.0100.03311.99
4.3.30.0030.02011.99
4.3.20.0030.03311.99
4.3.10.0100.03311.99
4.3.00.0070.03011.99

preferences:
48.05 ms | 400 KiB | 5 Q