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 "; $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); 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.0070.00718.43
8.3.50.0080.00921.99
8.3.40.0100.00719.02
8.3.30.0090.00619.27
8.3.20.0080.00020.16
8.3.10.0040.00423.48
8.3.00.0040.00419.67
8.2.180.0100.00616.63
8.2.170.0110.00422.96
8.2.160.0070.00720.52
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0030.00621.03
8.2.110.0040.00422.30
8.2.100.0080.00417.84
8.2.90.0000.00819.22
8.2.80.0060.00317.97
8.2.70.0000.00917.50
8.2.60.0040.00417.93
8.2.50.0060.00318.07
8.2.40.0060.00318.22
8.2.30.0000.00718.24
8.2.20.0050.00217.81
8.2.10.0000.00818.01
8.2.00.0060.00317.80
8.1.280.0120.00325.92
8.1.270.0080.00023.84
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0060.00323.79
8.1.230.0070.00419.10
8.1.220.0000.00817.79
8.1.210.0030.00618.77
8.1.200.0040.00817.35
8.1.190.0000.00817.13
8.1.180.0080.00018.10
8.1.170.0000.00818.56
8.1.160.0070.00021.97
8.1.150.0040.00418.82
8.1.140.0070.00017.30
8.1.130.0000.00817.84
8.1.120.0030.00317.41
8.1.110.0000.00817.26
8.1.100.0070.00317.41
8.1.90.0070.00017.30
8.1.80.0070.00017.45
8.1.70.0020.00517.38
8.1.60.0050.00317.42
8.1.50.0020.00517.43
8.1.40.0030.00617.53
8.1.30.0000.00817.67
8.1.20.0030.00617.71
8.1.10.0040.00417.48
8.1.00.0030.00517.53
8.0.300.0050.00318.77
8.0.290.0040.00416.75
8.0.280.0000.00818.37
8.0.270.0030.00317.14
8.0.260.0060.00017.28
8.0.250.0000.00716.91
8.0.240.0060.00317.00
8.0.230.0040.00417.01
8.0.220.0000.00716.84
8.0.210.0030.00516.87
8.0.200.0040.00417.06
8.0.190.0050.00316.87
8.0.180.0000.00716.92
8.0.170.0000.00816.92
8.0.160.0000.00716.85
8.0.150.0000.00716.84
8.0.140.0040.00416.80
8.0.130.0050.00013.42
8.0.120.0080.00016.76
8.0.110.0040.00416.95
8.0.100.0040.00416.97
8.0.90.0070.00016.95
8.0.80.0120.00316.89
8.0.70.0070.00016.93
8.0.60.0000.00716.75
8.0.50.0030.00416.77
8.0.30.0150.00817.17
8.0.20.0120.01217.40
8.0.10.0040.00416.93
8.0.00.0120.00716.64
7.4.330.0050.00015.00
7.4.320.0030.00316.45
7.4.300.0000.00716.60
7.4.290.0030.00316.44
7.4.280.0040.00416.49
7.4.270.0030.00316.53
7.4.260.0000.00816.50
7.4.250.0040.00416.50
7.4.240.0040.00416.59
7.4.230.0070.00016.58
7.4.220.0150.00616.54
7.4.210.0060.00816.73
7.4.200.0070.00016.51
7.4.160.0090.00616.42
7.4.150.0040.01317.40
7.4.140.0090.01117.86
7.4.130.0080.01116.60
7.4.120.0120.00516.65
7.4.110.0120.01016.42
7.4.100.0000.01916.52
7.4.90.0080.00816.62
7.4.80.0090.00919.39
7.4.70.0090.00916.68
7.4.60.0030.01516.64
7.4.50.0000.00716.32
7.4.40.0030.01316.38
7.4.30.0120.00616.53
7.4.00.0160.00015.11
7.3.330.0000.00713.07
7.3.320.0000.00613.02
7.3.310.0070.00016.43
7.3.300.0080.00016.38
7.3.290.0080.01116.30
7.3.280.0110.00616.33
7.3.270.0160.00617.40
7.3.260.0110.00816.57
7.3.250.0110.00616.34
7.3.240.0070.01116.35
7.3.230.0080.00816.57
7.3.210.0080.00816.44
7.3.200.0080.00719.39
7.3.190.0070.01116.51
7.3.180.0090.00616.68
7.3.170.0090.00616.50
7.3.160.0070.01016.55
7.3.120.0060.00915.06
7.2.330.0160.00316.34
7.2.320.0070.01316.43
7.2.310.0120.00616.61
7.2.300.0100.00716.68
7.2.290.0060.01116.65
7.2.60.0150.00516.68
7.2.00.0000.01219.54
7.1.200.0060.00615.80
7.1.100.0040.00718.16
7.1.70.0040.00416.92
7.1.60.0140.01019.70
7.1.50.0120.01216.66
7.1.00.0030.07722.36
7.0.200.0100.00516.69
7.0.140.0000.07722.16
7.0.60.0100.06719.95
7.0.50.0200.06717.89
7.0.40.0070.09020.01
7.0.30.0500.07320.34
7.0.20.0270.05020.18
7.0.10.0000.04320.30
7.0.00.0100.07020.18
5.6.280.0000.07721.02
5.6.210.0070.04720.70
5.6.200.0070.08018.08
5.6.190.0030.04320.28
5.6.180.3130.04720.60
5.6.170.0170.04320.34
5.6.160.0130.08020.71
5.6.150.0100.05718.29
5.6.140.0030.08718.13
5.6.130.0000.04318.08
5.6.120.0170.03021.13
5.6.110.0130.08021.20
5.6.100.0100.08321.06
5.6.90.0170.07021.11
5.6.80.0100.08020.41
5.6.70.3970.04020.50
5.5.350.0370.05720.44
5.5.340.0070.08317.88
5.5.330.0030.04720.45
5.5.320.0270.05020.56
5.5.310.0300.07320.29
5.5.300.0030.06717.98
5.5.290.0100.07717.91
5.5.280.0100.04721.04
5.5.270.0100.04020.77
5.5.260.0100.08320.95
5.5.250.0070.07720.58
5.5.240.0330.06020.27
5.4.450.0530.06719.53
5.4.440.0800.05319.59
5.4.430.1030.06019.54
5.4.420.0970.05319.65
5.4.410.0900.06019.30
5.4.400.0970.06019.33
5.4.390.1270.06018.78
5.4.380.0030.05718.65
5.4.370.0000.07318.66
5.4.360.0200.04318.59
5.4.350.0070.05718.46
5.4.340.0070.05018.51
5.4.320.0030.03912.46
5.4.310.0050.03912.45
5.4.300.0090.04812.46
5.4.290.0060.03912.46
5.4.280.0060.04412.36
5.4.270.0090.03912.36
5.4.260.0060.04712.35
5.4.250.0030.04012.35
5.4.240.0060.03612.36
5.4.230.0050.03812.34
5.4.220.0040.03812.35
5.4.210.0070.03412.34
5.4.200.0060.03712.34
5.4.190.0050.03812.34
5.4.180.0090.04312.34
5.4.170.0070.03512.36
5.4.160.0130.04112.35
5.4.150.0040.03812.34
5.4.140.0080.03712.03
5.4.130.0070.04012.02
5.4.120.0030.03811.98
5.4.110.0110.03111.97
5.4.100.0060.03911.97
5.4.90.0070.03611.97
5.4.80.0100.03711.98
5.4.70.0080.03611.96
5.4.60.0110.03311.97
5.4.50.0070.03511.96
5.4.40.0060.05211.95
5.4.30.0040.03911.95
5.4.20.0040.03911.95
5.4.10.0060.03611.95
5.4.00.0070.03911.45
5.3.290.0090.03712.80
5.3.280.0060.04512.71
5.3.270.0070.04512.73
5.3.260.0090.04512.72
5.3.250.0050.04012.72
5.3.240.0060.03912.72
5.3.230.0070.03812.71
5.3.220.0030.04012.68
5.3.210.0090.03712.68
5.3.200.0050.04412.68
5.3.190.0070.03812.68
5.3.180.0080.04412.67
5.3.170.0100.03312.67
5.3.160.0050.03812.68
5.3.150.0070.04512.68
5.3.140.0060.04612.66
5.3.130.0080.03812.66
5.3.120.0090.03712.66
5.3.110.0110.03412.66
5.3.100.0030.04512.12
5.3.90.0030.03812.08
5.3.80.0100.03112.07
5.3.70.0040.03812.07
5.3.60.0070.03412.06
5.3.50.0060.03712.00
5.3.40.0060.03912.00
5.3.30.0060.03611.95
5.3.20.0060.03411.73
5.3.10.0070.03311.69
5.3.00.0050.03711.68
5.2.170.0060.0299.19
5.2.160.0070.0379.19
5.2.150.0050.0339.19
5.2.140.0030.0399.19
5.2.130.0050.0409.15
5.2.120.0050.0289.14
5.2.110.0040.0309.15
5.2.100.0050.0279.14
5.2.90.0020.0319.14
5.2.80.0050.0299.13
5.2.70.0030.0319.14
5.2.60.0060.0359.10
5.2.50.0050.0389.07
5.2.40.0040.0309.04
5.2.30.0050.0299.01
5.2.20.0060.0279.00
5.2.10.0070.0288.92
5.2.00.0070.0348.78
5.1.60.0040.0278.07
5.1.50.0070.0278.07
5.1.40.0040.0288.04
5.1.30.0030.0268.40
5.1.20.0050.0328.42
5.1.10.0030.0278.15
5.1.00.0030.0278.15
5.0.50.0030.0216.63
5.0.40.0020.0206.48
5.0.30.0020.0336.30
5.0.20.0050.0246.27
5.0.10.0030.0206.25
5.0.00.0030.0316.24
4.4.90.0040.0164.78
4.4.80.0050.0204.75
4.4.70.0050.0194.76
4.4.60.0030.0194.75
4.4.50.0010.0174.77
4.4.40.0000.0324.71
4.4.30.0030.0154.76
4.4.20.0030.0154.84
4.4.10.0020.0164.85
4.4.00.0020.0254.76
4.3.110.0030.0154.67
4.3.100.0020.0154.67
4.3.90.0050.0184.63
4.3.80.0050.0274.59
4.3.70.0050.0174.63
4.3.60.0050.0144.63
4.3.50.0020.0164.63
4.3.40.0020.0254.54
4.3.30.0010.0173.29
4.3.20.0010.0183.26
4.3.10.0010.0193.22
4.3.00.0070.01343.90

preferences:
38.97 ms | 401 KiB | 5 Q