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; // 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.0130.00718.43
8.3.50.0080.00722.05
8.3.40.0140.00018.84
8.3.30.0110.00419.07
8.3.20.0080.00020.33
8.3.10.0080.00023.53
8.3.00.0000.00819.55
8.2.180.0090.00916.63
8.2.170.0090.00622.96
8.2.160.0070.01020.35
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0000.00721.17
8.2.110.0060.00319.16
8.2.100.0030.00917.84
8.2.90.0000.00817.84
8.2.80.0040.00417.97
8.2.70.0000.00917.48
8.2.60.0030.00617.80
8.2.50.0030.00518.07
8.2.40.0050.00319.95
8.2.30.0070.00018.24
8.2.20.0050.00217.75
8.2.10.0040.00418.05
8.2.00.0040.00417.69
8.1.280.0090.00625.92
8.1.270.0050.00323.96
8.1.260.0050.00326.35
8.1.250.0070.00028.09
8.1.240.0000.01022.30
8.1.230.0040.00820.95
8.1.220.0040.00417.79
8.1.210.0080.00018.87
8.1.200.0030.00616.98
8.1.190.0040.00417.36
8.1.180.0060.00318.10
8.1.170.0080.00018.32
8.1.160.0040.00421.91
8.1.150.0000.00718.82
8.1.140.0080.00017.43
8.1.130.0070.00017.77
8.1.120.0030.00317.30
8.1.110.0050.00217.39
8.1.100.0100.00017.33
8.1.90.0080.00017.37
8.1.80.0000.00817.33
8.1.70.0000.00717.36
8.1.60.0000.00917.41
8.1.50.0020.00517.54
8.1.40.0060.00317.42
8.1.30.0030.00617.48
8.1.20.0040.00417.65
8.1.10.0030.00617.55
8.1.00.0000.00817.47
8.0.300.0000.00719.89
8.0.290.0040.00416.75
8.0.280.0070.00018.29
8.0.270.0000.00717.19
8.0.260.0000.00717.19
8.0.250.0070.00016.91
8.0.240.0000.00916.93
8.0.230.0000.00716.94
8.0.220.0000.00716.87
8.0.210.0070.00016.93
8.0.200.0000.00616.81
8.0.190.0040.00416.95
8.0.180.0000.00716.82
8.0.170.0040.00416.87
8.0.160.0030.00316.76
8.0.150.0040.00416.86
8.0.140.0000.00816.87
8.0.130.0030.00313.30
8.0.120.0000.00916.84
8.0.110.0040.00416.85
8.0.100.0040.00416.74
8.0.90.0000.00716.68
8.0.80.0000.01816.86
8.0.70.0050.00216.90
8.0.60.0040.00416.73
8.0.50.0040.00416.78
8.0.30.0130.00617.06
8.0.20.0080.01017.40
8.0.10.0000.00716.89
8.0.00.0110.00716.74
7.4.330.0060.00015.02
7.4.320.0000.00616.44
7.4.300.0060.00016.59
7.4.290.0040.00416.58
7.4.280.0020.00516.48
7.4.270.0000.00716.63
7.4.260.0030.00316.41
7.4.250.0030.00516.56
7.4.240.0020.00516.46
7.4.230.0030.00316.30
7.4.220.0160.00616.70
7.4.210.0070.00716.45
7.4.200.0030.00416.70
7.4.160.0060.01016.53
7.4.150.0070.01117.40
7.4.140.0070.01017.86
7.4.130.0070.01016.55
7.4.120.0090.00816.54
7.4.110.0080.01216.53
7.4.100.0110.00816.43
7.4.90.0170.00016.47
7.4.80.0130.00619.39
7.4.70.0080.00916.32
7.4.60.0100.01316.67
7.4.50.0030.00616.29
7.4.40.0130.00316.37
7.4.30.0130.00316.61
7.4.00.0140.00314.70
7.3.330.0000.00513.13
7.3.320.0050.00013.13
7.3.310.0040.00416.19
7.3.300.0000.00716.11
7.3.290.0070.00716.19
7.3.280.0100.00916.28
7.3.270.0170.00017.40
7.3.260.0160.00316.53
7.3.250.0100.00916.35
7.3.240.0060.01116.29
7.3.230.0080.00816.55
7.3.210.0080.00816.51
7.3.200.0140.00319.39
7.3.190.0060.01016.42
7.3.180.0060.01016.36
7.3.170.0120.00416.27
7.3.160.0030.01316.25
7.3.120.0000.01114.81
7.2.330.0090.00916.51
7.2.320.0130.00316.57
7.2.310.0130.00316.70
7.2.300.0130.00316.46
7.2.290.0030.01216.46
7.2.110.0110.00916.64
7.2.100.0150.00916.17
7.2.90.0240.00416.66
7.2.80.0210.00616.68
7.2.70.0170.01316.70
7.2.60.0120.01016.90
7.2.50.0240.00516.66
7.2.40.0230.00516.74
7.2.30.0160.01116.92
7.2.20.0150.00916.80
7.2.10.0180.01116.70
7.2.00.0060.00718.18
7.1.230.0170.00215.59
7.1.220.0180.00515.87
7.1.210.0170.00815.71
7.1.200.0020.01515.79
7.1.190.0180.00815.70
7.1.180.0130.01315.63
7.1.170.0150.01015.78
7.1.160.0140.01015.57
7.1.150.0140.00715.67
7.1.140.0070.01315.48
7.1.130.0180.00715.82
7.1.120.0230.00415.88
7.1.110.0210.00615.53
7.1.100.0080.01016.77
7.1.90.0120.01215.75
7.1.80.0130.01315.55
7.1.70.0140.00516.60
7.1.60.0140.01117.79
7.1.50.0090.01916.18
7.1.40.0320.01515.41
7.1.30.0330.01315.48
7.1.20.0250.02115.75
7.1.10.0260.00315.65
7.1.00.0110.04019.03
7.0.310.0100.01415.17
7.0.300.0160.01115.14
7.0.290.0120.01215.38
7.0.280.0180.00815.17
7.0.270.0200.00415.34
7.0.260.0240.00015.15
7.0.250.0130.01315.07
7.0.240.0150.00615.18
7.0.230.0160.00615.35
7.0.220.0150.00315.23
7.0.210.0200.00615.31
7.0.200.0080.01015.92
7.0.190.0180.00715.38
7.0.180.0170.00715.45
7.0.170.0270.01315.44
7.0.160.0400.00615.31
7.0.150.0190.00315.29
7.0.140.0080.04218.74
7.0.130.0220.00315.35
7.0.120.0110.01115.34
7.0.110.0120.00915.17
7.0.100.0130.00915.21
7.0.90.0180.00515.24
7.0.80.0110.01415.20
7.0.70.0100.01515.34
7.0.60.0160.04017.74
7.0.50.0110.02916.58
7.0.40.0140.02116.59
7.0.30.0290.03216.89
7.0.20.0160.03016.81
7.0.10.0100.03916.62
7.0.00.0170.04116.76
5.6.380.0090.00914.00
5.6.370.0190.00414.14
5.6.360.0220.00314.35
5.6.350.0180.00614.36
5.6.340.0230.00614.52
5.6.330.0190.00614.08
5.6.320.0250.00314.03
5.6.310.0190.00614.04
5.6.300.0190.00514.41
5.6.290.0160.01014.27
5.6.280.0080.04317.73
5.6.270.0220.00314.18
5.6.260.0140.01413.84
5.6.250.0180.00913.98
5.6.240.0160.00314.02
5.6.230.0180.00614.15
5.6.220.0110.01514.03
5.6.210.0150.04017.27
5.6.200.0150.04316.07
5.6.190.0090.04317.48
5.6.180.2110.02617.32
5.6.170.0170.02817.17
5.6.160.0140.04317.48
5.6.150.0120.03916.03
5.6.140.0110.04816.09
5.6.130.0090.03216.06
5.6.120.0100.02317.49
5.6.110.0110.04617.49
5.6.100.0030.02917.52
5.6.90.0150.04117.42
5.6.80.0110.02317.41
5.6.70.1470.02217.09
5.6.60.0130.01314.36
5.6.50.0220.00014.09
5.6.40.0130.01013.98
5.6.30.0190.00313.98
5.6.20.0160.00614.09
5.6.10.0220.00314.14
5.6.00.0170.00414.10
5.5.380.0060.00811.01
5.5.370.0060.00610.74
5.5.360.0140.00011.02
5.5.350.0070.03915.70
5.5.340.0080.03314.39
5.5.330.0040.04515.67
5.5.320.0110.02515.50
5.5.310.0230.03715.50
5.5.300.0090.04314.54
5.5.290.0050.04614.46
5.5.280.0030.05215.96
5.5.270.0130.04115.82
5.5.260.0150.04215.86
5.5.250.0180.03815.55
5.5.240.0160.04315.57
5.5.230.0130.00410.64
5.5.220.0120.00410.91
5.5.210.0100.00510.66
5.5.200.0100.00710.84
5.5.190.0050.01110.86
5.5.180.0050.00710.67
5.5.170.0140.01114.14
5.5.160.0120.00210.59
5.5.150.0140.00010.97
5.5.140.0060.01110.75
5.5.130.0140.00310.89
5.5.120.0120.00310.98
5.5.110.0120.00310.88
5.5.100.0080.00510.89
5.5.90.0130.00010.93
5.5.80.0070.00710.96
5.5.70.0040.01310.75
5.5.60.0130.00410.64
5.5.50.0130.00010.80
5.5.40.0090.00610.90
5.5.30.0080.00810.87
5.5.20.0140.00310.48
5.5.10.0030.01210.95
5.5.00.0100.00310.81
5.4.450.0270.02815.18
5.4.440.0580.02415.17
5.4.430.0330.02215.04
5.4.420.0330.03715.13
5.4.410.0260.02015.12
5.4.400.0180.02327.28
5.4.390.0200.02827.19
5.4.380.0190.02314.52
5.4.370.0200.02214.81
5.4.360.0050.03614.75
5.4.350.0120.03314.74
5.4.340.0100.03014.67
5.4.330.0090.00910.98
5.4.320.0100.02011.43
5.4.310.0100.02011.70
5.4.300.0080.02111.47
5.4.290.0040.02611.58
5.4.280.0090.02211.56
5.4.270.0090.02111.53
5.4.260.0090.02011.61
5.4.250.0090.02111.56
5.4.240.0100.02411.57
5.4.230.0090.02111.68
5.4.220.0110.02111.55
5.4.210.0080.02011.46
5.4.200.0140.02011.58
5.4.190.0080.02111.58
5.4.180.0070.02211.67
5.4.170.0070.02111.62
5.4.160.0070.02211.38
5.4.150.0120.02211.56
5.4.140.0080.02011.47
5.4.130.0090.02211.51
5.4.120.0100.02511.39
5.4.110.0020.02811.23
5.4.100.0020.02311.35
5.4.90.0090.02311.36
5.4.80.0030.02411.43
5.4.70.0080.02011.30
5.4.60.0060.01911.32
5.4.50.0060.01911.34
5.4.40.0060.02211.21
5.4.30.0040.02811.36
5.4.20.0070.02011.25
5.4.10.0080.01911.41
5.4.00.0080.02111.22
5.3.290.0090.02311.59
5.3.280.0090.01911.54
5.3.270.0090.02311.55
5.3.260.0090.02611.55
5.3.250.0100.01911.56
5.3.240.0070.02411.55
5.3.230.0110.02211.54
5.3.220.0050.02211.53
5.3.210.0080.02511.53
5.3.200.0070.02511.53
5.3.190.0070.02211.53
5.3.180.0080.01911.53
5.3.170.0090.01911.67
5.3.160.0070.02011.61
5.3.150.0060.02411.53
5.3.140.0040.02611.60
5.3.130.0070.02611.52
5.3.120.0050.02611.59
5.3.110.0090.02111.57
5.3.100.0110.02111.25
5.3.90.0080.02211.30
5.3.80.0100.02411.23
5.3.70.0070.02411.24
5.3.60.0080.02311.22
5.3.50.0040.02511.19
5.3.40.0080.02311.19
5.3.30.0070.02111.17
5.3.20.0080.02411.05
5.3.10.0100.02411.04
5.3.00.0060.02111.03
5.2.170.0050.0189.78
5.2.160.0070.0199.79
5.2.150.0050.0209.79
5.2.140.0050.0229.78
5.2.130.0070.0169.76
5.2.120.0080.0279.76
5.2.110.0050.0219.76
5.2.100.0040.0199.76
5.2.90.0050.0169.76
5.2.80.0040.0229.76
5.2.70.0070.0179.76
5.2.60.0070.0229.74
5.2.50.0050.0239.72
5.2.40.0070.0209.71
5.2.30.0050.0189.70
5.2.20.0090.0149.69
5.2.10.0040.0179.66
5.2.00.0050.0189.58
5.1.60.0050.0169.23
5.1.50.0040.0159.22
5.1.40.0050.0169.21
5.1.30.0050.0159.39
5.1.20.0080.0199.40
5.1.10.0050.0179.26
5.1.00.0060.0149.27
5.0.50.0040.0148.51
5.0.40.0050.0168.44
5.0.30.0040.0168.34
5.0.20.0010.0148.33
5.0.10.0040.0138.32
5.0.00.0020.0238.31
4.4.90.0030.0107.58
4.4.80.0030.0137.57
4.4.70.0050.0147.57
4.4.60.0020.0117.57
4.4.50.0050.0087.58
4.4.40.0040.0147.55
4.4.30.0040.0097.57
4.4.20.0040.0147.61
4.4.10.0040.0117.62
4.4.00.0020.0167.57
4.3.110.0020.0147.52
4.3.100.0030.0127.52
4.3.90.0070.0107.51
4.3.80.0020.0197.48
4.3.70.0050.0107.50
4.3.60.0050.0117.50
4.3.50.0050.0097.51
4.3.40.0050.0167.46
4.3.30.0020.0126.84
4.3.20.0030.0096.83
4.3.10.0030.0116.81
4.3.00.0050.01227.15

preferences:
45.64 ms | 401 KiB | 5 Q