3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tempToken = "cecf180d-800e-43ee-82b5-2b22db814d9098b3bf2a-b5bd-4800-ac75-3e29d72b6155"; $clearText = "AuthToken=cecf180d-800e-43ee-82b5-2b22db814d9098b3bf2a-b5bd-4800-ac75-3e29d72b6155&PayerId=9979571404994689&PaymentProcessType=CreditCard&ProcessMethod=None&PaymentMethodStorageOption=None&ReturnURL=https://il01addproc.propay.com:443/Return.aspx "; // 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("M", $pad); echo $encodedNameValueString; echo "\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); // 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.0060.01218.30
8.3.50.0150.00322.05
8.3.40.0070.00718.68
8.3.30.0110.00419.17
8.3.20.0040.00420.29
8.3.10.0040.00423.61
8.3.00.0000.00819.79
8.2.180.0070.00716.50
8.2.170.0080.00822.96
8.2.160.0080.00620.39
8.2.150.0000.00724.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0060.00321.16
8.2.110.0030.00722.25
8.2.100.0040.00720.43
8.2.90.0070.00019.22
8.2.80.0000.00917.97
8.2.70.0080.00017.63
8.2.60.0000.00817.93
8.2.50.0000.00918.07
8.2.40.0000.00718.22
8.2.30.0050.00218.24
8.2.20.0000.00817.68
8.2.10.0040.00417.97
8.2.00.0040.00419.41
8.1.280.0000.01425.92
8.1.270.0090.00023.70
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00622.14
8.1.230.0100.00018.96
8.1.220.0080.00017.79
8.1.210.0000.00818.77
8.1.200.0000.00817.23
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0040.00418.51
8.1.160.0000.00722.06
8.1.150.0040.00418.73
8.1.140.0030.00517.31
8.1.130.0000.00717.71
8.1.120.0030.00517.40
8.1.110.0040.00417.38
8.1.100.0030.00717.39
8.1.90.0030.00317.28
8.1.80.0030.00417.43
8.1.70.0000.00717.34
8.1.60.0040.00417.55
8.1.50.0000.00817.49
8.1.40.0090.00017.51
8.1.30.0000.00817.64
8.1.20.0020.00517.67
8.1.10.0000.00717.48
8.1.00.0040.00417.49
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0000.00818.34
8.0.270.0030.00317.07
8.0.260.0000.00817.18
8.0.250.0000.00616.96
8.0.240.0030.00516.87
8.0.230.0080.00016.95
8.0.220.0030.00316.93
8.0.210.0000.00716.88
8.0.200.0030.00316.96
8.0.190.0030.00516.98
8.0.180.0000.00716.86
8.0.170.0030.00516.87
8.0.160.0080.00016.97
8.0.150.0000.00716.77
8.0.140.0040.00416.79
8.0.130.0060.00013.36
8.0.120.0040.00416.89
8.0.110.0040.00416.87
8.0.100.0040.00416.88
8.0.90.0070.00016.84
8.0.80.0030.01316.96
8.0.70.0000.00716.88
8.0.60.0030.00316.79
8.0.50.0000.00716.92
8.0.30.0130.01016.94
8.0.20.0090.00917.40
8.0.10.0050.00317.06
8.0.00.0140.01416.81
7.4.330.0000.00615.02
7.4.320.0070.00016.59
7.4.300.0040.00416.43
7.4.290.0070.00016.61
7.4.280.0030.00616.57
7.4.270.0000.00716.36
7.4.260.0030.00716.51
7.4.250.0000.00816.45
7.4.240.0020.00516.50
7.4.230.0000.00716.34
7.4.220.0090.00916.46
7.4.210.0080.00816.54
7.4.200.0000.00816.50
7.4.160.0090.00616.51
7.4.150.0100.00717.40
7.4.140.0120.00517.86
7.4.130.0080.00816.44
7.4.120.0080.00816.51
7.4.110.0110.00716.44
7.4.100.0100.01016.60
7.4.90.0070.01116.54
7.4.80.0040.01519.39
7.4.70.0130.00416.21
7.4.60.0130.00416.39
7.4.50.0000.00916.46
7.4.40.0100.01016.23
7.4.30.0030.01216.55
7.4.00.0110.00715.00
7.3.330.0060.00013.17
7.3.320.0030.00313.10
7.3.310.0000.00716.17
7.3.300.0040.00416.25
7.3.290.0110.00716.29
7.3.280.0070.00816.22
7.3.270.0070.01117.40
7.3.260.0110.01116.48
7.3.250.0060.01316.34
7.3.240.0060.00916.26
7.3.230.0030.01416.59
7.3.210.0030.01316.49
7.3.200.0060.01319.39
7.3.190.0100.01116.37
7.3.180.0140.00816.34
7.3.170.0090.00616.27
7.3.160.0090.01216.50
7.3.120.0040.01214.50
7.2.330.0090.00916.54
7.2.320.0070.01016.55
7.2.310.0100.00616.61
7.2.300.0100.00716.51
7.2.290.0210.00616.62
7.2.60.0000.01216.93
7.2.00.0040.00819.50
7.1.200.0110.00415.55
7.1.100.0070.00417.97
7.1.70.0070.00716.86
7.1.60.0070.01719.70
7.1.50.0070.01116.97
7.1.00.0000.08022.29
7.0.200.0090.00316.65
7.0.140.0070.06722.09
7.0.60.0030.08720.05
7.0.50.0130.07717.96
7.0.40.0100.09020.31
7.0.30.0300.07720.21
7.0.20.0330.05320.30
7.0.10.0070.05720.13
7.0.00.0100.08720.24
5.6.280.0030.07720.99
5.6.210.0000.06720.55
5.6.200.0130.04018.18
5.6.190.0030.07720.27
5.6.180.0330.07020.50
5.6.170.0270.05320.53
5.6.160.0100.08320.55
5.6.150.0070.08018.12
5.6.140.0200.07018.19
5.6.130.0100.08018.19
5.6.120.0030.04021.02
5.6.110.0030.09021.11
5.6.100.0130.07021.11
5.6.90.0030.08021.05
5.6.80.0100.06020.30
5.5.350.0200.03320.39
5.5.340.0030.08318.02
5.5.330.0100.04020.38
5.5.320.0270.04020.23
5.5.310.0300.08320.34
5.5.300.0030.04317.97
5.5.290.0170.07018.01
5.5.280.0100.07020.88
5.5.270.0030.05020.87
5.5.260.0130.08020.83
5.5.250.0130.08320.86
5.5.240.0030.07720.43
5.4.450.0170.03719.21
5.4.440.0130.04019.49
5.4.430.0170.03719.13
5.4.420.0130.04319.41
5.4.410.0230.04019.01
5.4.400.0130.04019.17
5.4.390.0200.04719.07
5.4.380.0170.03719.13
5.4.370.0130.04319.09
5.4.360.0170.04719.14
5.4.350.0170.03319.09
5.4.340.0200.04019.25
5.4.320.0200.03719.28
5.4.310.0230.03719.08
5.4.300.0130.03719.16
5.4.290.0130.04319.25
5.4.280.0130.04319.25
5.4.270.0200.03018.81
5.4.260.0130.03719.10
5.4.250.0170.04019.13
5.4.240.0200.07719.07
5.4.230.0200.07318.97
5.4.220.0170.04019.16
5.4.210.0200.03319.08
5.4.200.0170.03719.20
5.4.190.0200.04319.17
5.4.180.0170.03718.93
5.4.170.0170.04019.26
5.4.160.0130.07719.27
5.4.150.0270.05319.23
5.4.140.0230.03716.62
5.4.130.0200.04016.23
5.4.120.0270.03316.34
5.4.110.0230.04716.55
5.4.100.0270.06316.35
5.4.90.0230.05316.59
5.4.80.0270.05016.46
5.4.70.0570.04316.46
5.4.60.0270.05316.10
5.4.50.0130.04316.29
5.4.40.0200.04016.24
5.4.30.0130.03716.48
5.4.20.0130.03316.43
5.4.10.0170.04016.36
5.4.00.0200.03315.84
5.3.290.0170.03714.49
5.3.280.0070.05014.44
5.3.270.0130.03714.70
5.3.260.0170.03314.44
5.3.250.0200.04714.46
5.3.240.0230.03714.69
5.3.230.0230.04714.63
5.3.220.0200.07014.66
5.3.210.0200.04314.55
5.3.200.0230.07314.37
5.3.190.0200.07314.51
5.3.180.0270.05714.51
5.3.170.0200.05314.46
5.3.160.0230.06014.41
5.3.150.0270.04714.55
5.3.140.0130.08014.58
5.3.130.0200.03714.65
5.3.120.0130.04714.48
5.3.110.0170.04014.39
5.3.100.0300.06014.02
5.3.90.0300.05314.01
5.3.80.0170.07313.96
5.3.70.0170.04013.92
5.3.60.0200.03713.95
5.3.50.0170.03713.82
5.3.40.0170.05013.82
5.3.30.0200.05713.95
5.3.20.0200.03013.64
5.3.10.0000.05713.50
5.3.00.0200.03713.49
5.2.170.0130.06310.98
5.2.160.0070.03711.08
5.2.150.0100.03311.00
5.2.140.0130.03310.98
5.2.130.0200.02311.20
5.2.120.0100.03310.95
5.2.110.0200.05710.96
5.2.100.0170.06011.14
5.2.90.0270.02310.94
5.2.80.0170.03310.94
5.2.70.0230.05310.93
5.2.60.0170.03010.91
5.2.50.0070.03710.87
5.2.40.0130.03010.90
5.2.30.0100.04311.11
5.2.20.0170.04310.98
5.2.10.0070.03010.95
5.2.00.0130.02710.68
5.1.60.0070.04310.11
5.1.50.0130.0279.87
5.1.40.0200.0479.85
5.1.30.0100.03310.44
5.1.20.0170.04710.21
5.1.10.0100.04010.16
5.1.00.0030.0309.94
5.0.50.0070.0278.57
5.0.40.0070.0278.29
5.0.30.0000.0378.21
5.0.20.0070.0338.21
5.0.10.0030.0208.23
5.0.00.0000.0338.05
4.4.90.0070.0207.90
4.4.80.0070.0177.90
4.4.70.0030.0177.90
4.4.60.0070.0237.90
4.4.50.0070.0137.90
4.4.40.0070.0277.90
4.4.30.0030.0207.90
4.4.20.0070.0377.90
4.4.10.0030.0207.90
4.4.00.0030.0277.90
4.3.110.0070.0207.90
4.3.100.0070.0177.90
4.3.90.0070.0177.90
4.3.80.0000.0307.90
4.3.70.0070.0177.90
4.3.60.0130.0207.90
4.3.50.0070.0177.90
4.3.40.0070.0407.90
4.3.30.0070.0307.90
4.3.20.0070.0307.90
4.3.10.0030.0277.90
4.3.00.0030.0277.90

preferences:
32.79 ms | 400 KiB | 5 Q