3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tempToken = "ac7b7086-c6c6-4990-bf07-496a1462a53f34156ab3-6798-472f-b517-acdcf006c110"; $clearText = "AuthToken=ac7b7086-c6c6-4990-bf07-496a1462a53f34156ab3-6798-472f-b517-acdcf006c110&PayerId=3597720045321578&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); 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.70.0080.00816.88
8.3.60.0070.01316.50
8.3.50.0120.00521.99
8.3.40.0070.01418.79
8.3.30.0060.00919.04
8.3.20.0000.00720.25
8.3.10.0050.00323.35
8.3.00.0060.00319.68
8.2.180.0110.00718.21
8.2.170.0130.00322.96
8.2.160.0070.00722.16
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00421.09
8.2.110.0090.00022.29
8.2.100.0090.00319.26
8.2.90.0060.00319.08
8.2.80.0040.00417.97
8.2.70.0040.00417.75
8.2.60.0000.00818.04
8.2.50.0030.00618.07
8.2.40.0040.00418.34
8.2.30.0000.00818.36
8.2.20.0000.00717.66
8.2.10.0040.00417.97
8.2.00.0060.00317.81
8.1.280.0120.00625.92
8.1.270.0080.00023.84
8.1.260.0000.00726.35
8.1.250.0000.00828.09
8.1.240.0060.00323.96
8.1.230.0100.00319.09
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0000.00817.35
8.1.190.0080.00017.35
8.1.180.0030.00618.10
8.1.170.0030.00518.50
8.1.160.0080.00022.02
8.1.150.0000.00818.83
8.1.140.0050.00317.46
8.1.130.0030.00317.82
8.1.120.0000.00717.47
8.1.110.0000.00817.39
8.1.100.0040.00417.48
8.1.90.0000.00717.45
8.1.80.0050.00517.41
8.1.70.0030.00317.32
8.1.60.0000.00917.48
8.1.50.0050.00317.45
8.1.40.0080.00017.47
8.1.30.0000.00817.51
8.1.20.0000.00917.68
8.1.10.0040.00417.47
8.1.00.0000.00817.45
8.0.300.0000.00818.77
8.0.290.0070.00016.75
8.0.280.0000.00718.56
8.0.270.0030.00317.27
8.0.260.0030.00317.33
8.0.250.0030.00316.94
8.0.240.0040.00417.07
8.0.230.0030.00617.00
8.0.220.0000.00817.00
8.0.210.0030.00516.95
8.0.200.0000.00716.98
8.0.190.0040.00416.95
8.0.180.0070.00016.98
8.0.170.0040.00416.89
8.0.160.0040.00417.03
8.0.150.0040.00416.88
8.0.140.0040.00416.97
8.0.130.0000.00613.41
8.0.120.0000.00916.92
8.0.110.0040.00416.82
8.0.100.0000.00816.98
8.0.90.0030.00316.84
8.0.80.0090.00616.99
8.0.70.0040.00416.96
8.0.60.0000.00716.72
8.0.50.0050.00316.91
8.0.30.0090.01117.11
8.0.20.0100.00817.40
8.0.10.0050.00216.94
8.0.00.0060.01116.85
7.4.330.0050.00015.00
7.4.320.0030.00316.60
7.4.300.0000.00816.50
7.4.290.0030.00316.59
7.4.280.0030.00616.59
7.4.270.0070.00016.59
7.4.260.0040.00416.59
7.4.250.0000.00716.55
7.4.240.0020.00516.60
7.4.230.0000.00716.61
7.4.220.0040.01416.54
7.4.210.0100.00316.61
7.4.200.0000.00716.60
7.4.160.0100.00516.52
7.4.150.0140.00317.40
7.4.140.0110.01017.86
7.4.130.0050.01116.54
7.4.120.0050.01316.58
7.4.110.0030.01316.39
7.4.100.0040.01516.59
7.4.90.0090.01316.49
7.4.80.0130.01019.39
7.4.70.0090.01416.43
7.4.60.0030.01316.63
7.4.50.0000.00816.33
7.4.40.0120.00916.27
7.4.30.0070.01016.38
7.4.00.0030.01414.94
7.3.330.0030.00313.19
7.3.320.0000.00613.18
7.3.310.0030.00316.42
7.3.300.0040.00416.26
7.3.290.0110.00416.29
7.3.280.0100.00716.30
7.3.270.0130.00317.40
7.3.260.0120.00816.31
7.3.250.0130.00416.43
7.3.240.0130.01016.30
7.3.230.0030.01316.39
7.3.210.0100.00716.46
7.3.200.0070.00819.39
7.3.190.0100.00716.45
7.3.180.0000.01616.34
7.3.170.0090.00616.46
7.3.160.0110.00616.56
7.3.120.0070.00814.83
7.3.110.0100.01014.70
7.3.100.0040.00814.94
7.3.90.0090.00614.90
7.3.80.0060.00814.94
7.3.70.0040.01414.54
7.3.60.0000.01114.94
7.3.50.0030.01014.94
7.3.40.0070.01014.93
7.3.30.0090.00614.70
7.3.20.0070.00716.68
7.3.10.0110.00416.52
7.3.00.0070.01016.49
7.2.330.0140.00416.34
7.2.320.0090.01216.72
7.2.310.0030.01716.63
7.2.300.0130.00716.73
7.2.290.0170.00516.70
7.2.250.0030.01414.92
7.2.240.0100.01015.13
7.2.230.0000.02015.19
7.2.220.0060.00615.19
7.2.210.0070.00715.10
7.2.200.0050.00514.95
7.2.190.0110.00414.88
7.2.180.0070.00715.19
7.2.170.0070.01015.10
7.2.130.0190.00616.90
7.2.120.0200.00616.71
7.2.110.0110.01116.22
7.2.100.0170.00316.41
7.2.90.0160.01316.53
7.2.80.0100.01316.78
7.2.70.0140.00816.48
7.2.60.0090.01116.82
7.2.50.0120.00615.99
7.2.40.0170.01016.56
7.2.30.0090.00916.23
7.2.20.0090.00916.54
7.2.10.0130.00616.31
7.2.00.0070.00818.20
7.1.330.0080.00515.76
7.1.320.0070.01015.89
7.1.310.0050.00515.64
7.1.300.0040.00715.44
7.1.290.0110.00715.91
7.1.280.0120.00315.78
7.1.270.0060.00915.59
7.1.260.0050.00515.79
7.1.250.0100.01015.35
7.1.200.0070.00715.75
7.1.100.0000.01318.30
7.1.70.0000.01417.26
7.1.60.0100.01019.70
7.1.50.0100.01616.77
7.1.00.0030.07722.30
7.0.200.0070.00416.69
7.0.140.0070.07022.18
7.0.60.0100.07319.79
7.0.50.0100.05017.89
7.0.40.0130.08019.98
7.0.30.0230.06720.15
7.0.20.0330.06020.21
7.0.10.0130.08320.09
7.0.00.0070.08720.02
5.6.280.0000.07721.04
5.6.210.0100.07720.71
5.6.200.0100.08318.12
5.6.190.0000.05020.27
5.6.180.0400.04320.49
5.6.170.0070.05020.39
5.6.160.0100.07320.52
5.6.150.0170.05018.14
5.6.140.0100.07018.18
5.6.130.0170.03018.13
5.6.120.0000.07721.05
5.6.110.0100.07721.11
5.6.100.0100.08021.12
5.6.90.0030.04321.03
5.6.80.0030.03720.46
5.5.350.0000.08020.39
5.5.340.0070.08318.01
5.5.330.0070.03720.07
5.5.320.0070.08020.19
5.5.310.0230.03720.34
5.5.300.0170.04018.00
5.5.290.0100.08017.89
5.5.280.0070.08020.87
5.5.270.0070.05320.93
5.5.260.0030.04020.90
5.5.250.0000.04320.52
5.5.240.0230.06020.23
5.4.450.0700.05319.47
5.4.440.1100.05319.63
5.4.430.0930.05019.46
5.4.420.0870.04719.66
5.4.410.0970.07319.28
5.4.400.0930.05319.09
5.4.390.1030.06319.23
5.4.380.0200.06718.65
5.4.370.0100.05318.71
5.4.360.0100.05718.61
5.4.350.0530.05318.57
5.4.340.0200.05018.56
5.4.320.0050.03512.46
5.4.310.0070.03712.45
5.4.300.0050.04112.46
5.4.290.0050.04112.46
5.4.280.0070.04212.35
5.4.270.0070.05012.36
5.4.260.0080.03712.35
5.4.250.0060.03712.35
5.4.240.0070.03812.36
5.4.230.0070.03612.35
5.4.220.0090.03312.35
5.4.210.0080.04112.35
5.4.200.0060.04112.35
5.4.190.0060.03812.34
5.4.180.0080.04012.34
5.4.170.0040.03812.35
5.4.160.0060.03612.35
5.4.150.0070.03512.34
5.4.140.0060.03612.03
5.4.130.0060.03512.01
5.4.120.0090.03811.97
5.4.110.0060.03611.96
5.4.100.0000.04311.96
5.4.90.0090.03711.96
5.4.80.0060.03711.97
5.4.70.0050.03511.96
5.4.60.0080.03711.96
5.4.50.0060.03511.96
5.4.40.0090.03611.95
5.4.30.0080.04211.95
5.4.20.0060.03411.95
5.4.10.0040.03611.95
5.4.00.0050.03611.44
5.3.290.0060.04812.80
5.3.280.0070.03612.71
5.3.270.0040.04012.72
5.3.260.0070.03712.72
5.3.250.0050.03712.72
5.3.240.0050.03712.72
5.3.230.0050.03812.71
5.3.220.0060.04112.68
5.3.210.0090.03812.68
5.3.200.0110.03212.68
5.3.190.0080.04012.68
5.3.180.0080.03812.68
5.3.170.0050.03712.67
5.3.160.0090.03812.67
5.3.150.0100.03212.68
5.3.140.0090.03712.66
5.3.130.0100.04012.66
5.3.120.0070.03712.66
5.3.110.0120.03612.66
5.3.100.0080.03612.12
5.3.90.0080.03712.09
5.3.80.0070.03512.08
5.3.70.0050.03712.07
5.3.60.0060.03712.06
5.3.50.0050.03812.00
5.3.40.0080.03412.00
5.3.30.0090.03211.95
5.3.20.0020.03911.73
5.3.10.0060.03411.70
5.3.00.0070.04211.68
5.2.170.0050.0359.19
5.2.160.0070.0269.19
5.2.150.0080.0279.19
5.2.140.0050.0309.18
5.2.130.0070.0289.14
5.2.120.0070.0279.14
5.2.110.0080.0269.15
5.2.100.0070.0269.15
5.2.90.0050.0309.14
5.2.80.0090.0379.14
5.2.70.0060.0299.14
5.2.60.0060.0289.09
5.2.50.0040.0359.06
5.2.40.0060.0279.04
5.2.30.0010.0339.01
5.2.20.0060.0279.03
5.2.10.0070.0268.94
5.2.00.0080.0268.80
5.1.60.0040.0298.09
5.1.50.0090.0208.08
5.1.40.0060.0238.06
5.1.30.0060.0318.41
5.1.20.0050.0278.43
5.1.10.0040.0268.16
5.1.00.0050.0258.16
5.0.50.0040.0196.65
5.0.40.0020.0216.51
5.0.30.0030.0316.32
5.0.20.0040.0196.29
5.0.10.0040.0196.27
5.0.00.0050.0286.27
4.4.90.0020.0174.78
4.4.80.0050.0144.75
4.4.70.0020.0164.76
4.4.60.0030.0154.75
4.4.50.0020.0164.77
4.4.40.0060.0254.71
4.4.30.0020.0204.76
4.4.20.0030.0154.84
4.4.10.0040.0194.85
4.4.00.0020.0294.76
4.3.110.0020.0164.67
4.3.100.0020.0154.67
4.3.90.0030.0144.64
4.3.80.0030.0304.59
4.3.70.0020.0144.63
4.3.60.0030.0144.62
4.3.50.0020.0214.63
4.3.40.0030.0344.54
4.3.30.0030.0163.30
4.3.20.0010.0163.29
4.3.10.0040.0183.25
4.3.00.0000.02043.92

preferences:
43.15 ms | 401 KiB | 5 Q