3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tempToken = "bb01d09c-c1a5-4e5a-8a50-d1d020aceb9b06ca2784-29fe-4214-9bd5-d3bcf81daf6b"; $clearText = "AuthToken=bb01d09c-c1a5-4e5a-8a50-d1d020aceb9b06ca2784-29fe-4214-9bd5-d3bcf81daf6b&PayerId=8283117399884257&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); echo $aes128; echo "\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.60.0090.00918.43
8.3.50.0120.00522.05
8.3.40.0070.00718.83
8.3.30.0100.00319.23
8.3.20.0050.00320.16
8.3.10.0030.00623.71
8.3.00.0040.00419.67
8.2.180.0170.00316.50
8.2.170.0120.00322.96
8.2.160.0070.00720.23
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0000.00726.16
8.2.120.0040.00420.98
8.2.110.0040.00422.29
8.2.100.0000.01217.68
8.2.90.0080.00019.22
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0040.00417.91
8.2.50.0000.00818.07
8.2.40.0030.00618.02
8.2.30.0080.00018.18
8.2.20.0040.00417.74
8.2.10.0040.00417.95
8.2.00.0000.00819.44
8.1.280.0110.00425.92
8.1.270.0080.00023.96
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0060.00323.83
8.1.230.0080.00419.18
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.13
8.1.190.0040.00417.23
8.1.180.0030.00518.10
8.1.170.0060.00318.56
8.1.160.0070.00021.86
8.1.150.0000.00818.82
8.1.140.0020.00517.45
8.1.130.0000.00717.77
8.1.120.0040.00417.43
8.1.110.0050.00317.30
8.1.100.0000.00917.27
8.1.90.0030.00317.29
8.1.80.0070.00017.42
8.1.70.0000.00717.34
8.1.60.0030.00617.41
8.1.50.0000.00817.39
8.1.40.0080.00017.38
8.1.30.0040.00417.59
8.1.20.0040.00417.63
8.1.10.0000.00817.61
8.1.00.0040.00417.38
8.0.300.0000.00718.77
8.0.290.0060.00316.75
8.0.280.0070.00018.45
8.0.270.0040.00417.09
8.0.260.0000.00617.10
8.0.250.0000.00716.86
8.0.240.0030.00716.91
8.0.230.0070.00016.96
8.0.220.0030.00316.87
8.0.210.0000.00716.77
8.0.200.0000.00616.87
8.0.190.0080.00016.82
8.0.180.0000.00816.80
8.0.170.0080.00016.80
8.0.160.0040.00416.92
8.0.150.0030.00516.79
8.0.140.0050.00316.88
8.0.130.0060.00013.38
8.0.120.0050.00316.84
8.0.110.0030.00616.89
8.0.100.0030.00516.73
8.0.90.0040.00416.70
8.0.80.0040.01116.89
8.0.70.0070.00016.76
8.0.60.0000.00716.74
8.0.50.0040.00416.84
8.0.30.0120.01116.90
8.0.20.0080.01317.40
8.0.10.0050.00216.89
8.0.00.0080.01016.83
7.4.330.0000.00515.01
7.4.320.0060.00016.45
7.4.300.0000.00616.60
7.4.290.0050.00316.51
7.4.280.0040.00416.50
7.4.270.0040.00416.55
7.4.260.0050.00316.48
7.4.250.0000.00816.53
7.4.240.0060.00116.51
7.4.230.0020.00516.68
7.4.220.0120.00616.62
7.4.210.0130.00016.58
7.4.200.0070.00016.50
7.4.160.0080.00816.49
7.4.150.0100.01017.40
7.4.140.0090.01217.86
7.4.130.0070.00916.44
7.4.120.0080.00816.44
7.4.110.0110.00716.32
7.4.100.0130.00316.48
7.4.90.0060.00916.59
7.4.80.0110.00919.39
7.4.70.0130.00616.59
7.4.60.0070.01016.49
7.4.50.0030.00616.30
7.4.40.0110.00616.52
7.4.30.0090.00616.75
7.4.00.0070.01115.00
7.3.330.0060.00013.10
7.3.320.0030.00313.10
7.3.310.0030.00316.11
7.3.300.0030.00316.22
7.3.290.0160.00316.21
7.3.280.0090.01016.27
7.3.270.0170.00017.40
7.3.260.0120.01216.60
7.3.250.0080.00916.18
7.3.240.0030.01316.42
7.3.230.0060.00916.54
7.3.210.0120.01116.29
7.3.200.0000.01619.39
7.3.190.0080.00816.18
7.3.180.0060.01016.38
7.3.170.0090.00616.40
7.3.160.0110.00516.32
7.3.120.0030.01114.74
7.3.110.0100.00714.97
7.3.100.0040.01114.46
7.3.90.0040.00814.51
7.3.80.0030.01414.55
7.3.70.0100.00014.75
7.3.60.0040.00814.80
7.3.50.0070.01014.83
7.3.40.0130.00314.48
7.3.30.0050.00314.77
7.3.20.0120.00616.43
7.3.10.0130.00316.80
7.3.00.0040.01116.40
7.2.330.0100.00716.36
7.2.320.0140.00416.70
7.2.310.0030.01316.66
7.2.300.0080.00816.54
7.2.290.0100.00616.52
7.2.250.0040.01515.08
7.2.240.0030.01714.92
7.2.230.0090.00615.21
7.2.220.0080.00814.86
7.2.210.0000.01214.99
7.2.200.0120.00014.93
7.2.190.0080.00414.96
7.2.180.0090.00615.20
7.2.170.0030.00715.02
7.2.60.0040.01116.71
7.2.00.0030.00919.31
7.1.330.0030.00915.93
7.1.320.0090.00315.81
7.1.310.0060.00915.84
7.1.300.0130.00015.76
7.1.290.0030.01015.76
7.1.280.0090.00315.94
7.1.270.0100.00315.66
7.1.260.0040.01115.82
7.1.200.0000.01315.44
7.1.100.0030.01018.29
7.1.70.0030.01017.14
7.1.60.0100.01319.70
7.1.50.0040.02116.87
7.1.00.0000.08022.35
7.0.200.0070.00716.64
7.0.140.0100.06722.00
7.0.60.0130.07319.96
7.0.50.0030.08317.98
7.0.40.0030.06020.21
7.0.30.0230.04320.09
7.0.20.0430.06320.30
7.0.10.0070.06720.04
7.0.00.0070.05320.21
5.6.280.0000.07321.09
5.6.210.0130.07320.50
5.6.200.0070.03718.17
5.6.190.0200.07320.63
5.6.180.0200.04020.47
5.6.170.0330.07020.49
5.6.160.0070.04020.55
5.6.150.0000.04718.21
5.6.140.0070.05318.18
5.6.130.0030.05318.12
5.6.120.0030.08720.92
5.6.110.0170.07721.00
5.6.100.0130.08021.03
5.6.90.0030.04321.05
5.6.80.0030.08320.44
5.5.350.0230.07020.43
5.5.340.0100.08317.91
5.5.330.0030.04320.47
5.5.320.0370.07020.30
5.5.310.0270.07720.29
5.5.300.0100.03017.99
5.5.290.0070.08018.02
5.5.280.0100.08021.04
5.5.270.0030.06020.90
5.5.260.0000.08020.83
5.5.250.0000.04720.59
5.5.240.0000.08720.41
5.4.450.0530.03719.11
5.4.440.0130.05019.41
5.4.430.0130.03719.42
5.4.420.0600.03719.42
5.4.410.0700.03719.15
5.4.400.0170.04343.99
5.4.390.0400.04743.92
5.4.380.0170.05018.54
5.4.370.0100.05318.68
5.4.360.0200.05018.66
5.4.350.0130.05318.50
5.4.340.0100.05318.55
5.4.320.0110.03012.46
5.4.310.0040.03912.45
5.4.300.0050.03812.46
5.4.290.0100.03412.46
5.4.280.0040.03712.35
5.4.270.0040.03812.35
5.4.260.0070.03712.36
5.4.250.0060.03812.35
5.4.240.0060.03512.36
5.4.230.0090.04112.35
5.4.220.0070.03812.35
5.4.210.0060.03912.35
5.4.200.0090.03712.35
5.4.190.0070.03512.34
5.4.180.0020.05012.34
5.4.170.0060.03612.35
5.4.160.0060.03512.35
5.4.150.0050.03712.34
5.4.140.0040.03912.02
5.4.130.0050.03712.01
5.4.120.0070.04211.97
5.4.110.0060.04011.97
5.4.100.0050.03411.96
5.4.90.0060.03711.97
5.4.80.0040.03911.97
5.4.70.0050.04511.96
5.4.60.0070.03511.96
5.4.50.0090.03311.96
5.4.40.0040.05111.95
5.4.30.0050.04011.95
5.4.20.0070.03311.95
5.4.10.0070.04011.95
5.4.00.0060.03511.45
5.3.290.0050.03912.80
5.3.280.0110.03512.71
5.3.270.0050.03912.72
5.3.260.0050.03912.72
5.3.250.0080.03612.72
5.3.240.0090.03412.72
5.3.230.0120.03812.71
5.3.220.0040.03812.68
5.3.210.0070.03712.68
5.3.200.0080.04012.68
5.3.190.0090.03412.68
5.3.180.0050.04212.67
5.3.170.0030.04212.67
5.3.160.0050.03912.67
5.3.150.0090.03812.67
5.3.140.0060.03612.66
5.3.130.0060.03812.66
5.3.120.0070.03712.66
5.3.110.0040.04012.66
5.3.100.0080.04212.11
5.3.90.0090.03212.08
5.3.80.0060.03712.08
5.3.70.0080.04212.08
5.3.60.0050.03712.06
5.3.50.0080.03412.00
5.3.40.0070.03612.00
5.3.30.0070.03511.95
5.3.20.0100.02911.73
5.3.10.0060.03611.70
5.3.00.0070.03511.68
5.2.170.0040.0369.19
5.2.160.0060.0279.19
5.2.150.0050.0409.19
5.2.140.0020.0429.19
5.2.130.0020.0329.15
5.2.120.0060.0279.14
5.2.110.0020.0319.15
5.2.100.0080.0339.14
5.2.90.0060.0379.15
5.2.80.0050.0299.14
5.2.70.0050.0299.14
5.2.60.0050.0289.09
5.2.50.0060.0349.07
5.2.40.0060.0279.04
5.2.30.0040.0309.01
5.2.20.0020.0319.00
5.2.10.0040.0288.93
5.2.00.0060.0288.79
5.1.60.0070.0238.07
5.1.50.0050.0238.07
5.1.40.0060.0228.05
5.1.30.0080.0228.39
5.1.20.0030.0278.41
5.1.10.0060.0248.14
5.1.00.0060.0238.15
5.0.50.0030.0216.64
5.0.40.0010.0226.49
5.0.30.0040.0316.31
5.0.20.0050.0216.27
5.0.10.0030.0226.25
5.0.00.0040.0306.25
4.4.90.0040.0144.78
4.4.80.0030.0224.76
4.4.70.0050.0144.75
4.4.60.0020.0154.75
4.4.50.0020.0154.77
4.4.40.0050.0224.71
4.4.30.0030.0174.76
4.4.20.0040.0164.84
4.4.10.0010.0174.85
4.4.00.0010.0264.76
4.3.110.0040.0174.67
4.3.100.0020.0154.66
4.3.90.0050.0124.63
4.3.80.0020.0244.58
4.3.70.0030.0144.63
4.3.60.0050.0134.63
4.3.50.0020.0184.63
4.3.40.0040.0324.54
4.3.30.0020.0153.30
4.3.20.0030.0193.28
4.3.10.0040.0183.23
4.3.00.0070.01743.92

preferences:
40.4 ms | 401 KiB | 5 Q