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); echo strlen($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("X", $pad); echo strlen($encodedNameValueString) . "\n"; 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.0100.01016.75
8.3.50.0100.00317.93
8.3.40.0090.00618.73
8.3.30.0110.00718.92
8.3.20.0040.00420.24
8.3.10.0040.00423.54
8.3.00.0000.00819.56
8.2.180.0060.01216.50
8.2.170.0120.00322.96
8.2.160.0000.01320.39
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.02
8.2.110.0080.00022.08
8.2.100.0080.00318.16
8.2.90.0030.00619.05
8.2.80.0050.00317.97
8.2.70.0050.00317.38
8.2.60.0040.00418.03
8.2.50.0040.00418.07
8.2.40.0000.00818.06
8.2.30.0050.00218.29
8.2.20.0040.00417.79
8.2.10.0040.00418.16
8.2.00.0030.00619.46
8.1.280.0060.00925.92
8.1.270.0040.00423.93
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.79
8.1.230.0030.00719.15
8.1.220.0040.00417.79
8.1.210.0090.00018.77
8.1.200.0030.00617.13
8.1.190.0000.00817.22
8.1.180.0050.00318.10
8.1.170.0040.00418.50
8.1.160.0000.00721.93
8.1.150.0000.00718.83
8.1.140.0040.00417.50
8.1.130.0080.00017.88
8.1.120.0020.00517.51
8.1.110.0030.00517.33
8.1.100.0070.00017.45
8.1.90.0070.00017.43
8.1.80.0040.00417.49
8.1.70.0030.00317.37
8.1.60.0030.00517.45
8.1.50.0040.00417.54
8.1.40.0000.00717.39
8.1.30.0030.00517.65
8.1.20.0080.00017.65
8.1.10.0070.00017.45
8.1.00.0070.00317.57
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.30
8.0.270.0070.00017.26
8.0.260.0030.00317.29
8.0.250.0030.00416.88
8.0.240.0000.00917.03
8.0.230.0000.00716.98
8.0.220.0060.00016.97
8.0.210.0080.00016.93
8.0.200.0000.00716.89
8.0.190.0040.00416.84
8.0.180.0070.00016.89
8.0.170.0000.00717.03
8.0.160.0040.00416.99
8.0.150.0070.00016.89
8.0.140.0000.00716.93
8.0.130.0000.00713.36
8.0.120.0000.00716.81
8.0.110.0040.00416.90
8.0.100.0020.00517.01
8.0.90.0000.00716.81
8.0.80.0000.01616.99
8.0.70.0070.00016.87
8.0.60.0030.00616.78
8.0.50.0000.00716.90
8.0.30.0090.01117.04
8.0.20.0100.01017.40
8.0.10.0040.00416.79
8.0.00.0070.01416.60
7.4.330.0000.00515.08
7.4.320.0000.00616.45
7.4.300.0060.00016.58
7.4.290.0030.00316.64
7.4.280.0060.00316.57
7.4.270.0000.00816.61
7.4.260.0000.00816.39
7.4.250.0050.00316.37
7.4.240.0040.00416.59
7.4.230.0070.00016.67
7.4.220.0090.01016.68
7.4.210.0070.00716.60
7.4.200.0000.00716.57
7.4.160.0050.01016.47
7.4.150.0130.00617.40
7.4.140.0130.01117.86
7.4.130.0080.00816.65
7.4.120.0080.01016.51
7.4.110.0070.01116.43
7.4.100.0170.00016.54
7.4.90.0090.00916.51
7.4.80.0060.01219.39
7.4.70.0130.00316.34
7.4.60.0060.01016.45
7.4.50.0000.00416.77
7.4.40.0080.00816.64
7.4.30.0170.00016.65
7.4.00.0000.01415.07
7.3.330.0030.00313.20
7.3.320.0000.00613.16
7.3.310.0030.00416.27
7.3.300.0080.00016.34
7.3.290.0030.01116.36
7.3.280.0070.01216.29
7.3.270.0140.00617.40
7.3.260.0150.00516.29
7.3.250.0090.01216.39
7.3.240.0060.00916.33
7.3.230.0080.00816.41
7.3.210.0030.02016.46
7.3.200.0100.00619.39
7.3.190.0110.01116.62
7.3.180.0130.00316.41
7.3.170.0130.00316.50
7.3.160.0030.01216.46
7.3.120.0150.00015.01
7.2.330.0100.00716.36
7.2.320.0030.01316.72
7.2.310.0090.01316.61
7.2.300.0110.00716.59
7.2.290.0030.01216.71
7.2.60.0030.00916.73
7.2.00.0030.01319.07
7.1.200.0030.00715.55
7.1.100.0040.01118.07
7.1.70.0000.00717.21
7.1.60.0070.01419.70
7.1.50.0090.01516.95
7.1.00.0100.07022.45
7.0.200.0100.00316.75
7.0.140.0070.07021.96
7.0.60.0030.04019.89
7.0.50.0030.06717.88
7.0.40.0130.06320.29
7.0.30.0530.05320.21
7.0.20.0300.06020.01
7.0.10.0130.07320.23
7.0.00.0070.07720.04
5.6.280.0100.06720.82
5.6.210.0070.08320.72
5.6.200.0130.07318.13
5.6.190.0070.04320.66
5.6.180.3400.04320.68
5.6.170.0300.06320.50
5.6.160.0170.07020.52
5.6.150.0100.08318.29
5.6.140.0100.05018.11
5.6.130.0030.08718.11
5.6.120.0100.08021.21
5.6.110.0000.04321.16
5.6.100.0070.08321.01
5.6.90.0130.04321.20
5.6.80.0130.07020.40
5.6.70.4530.04020.50
5.5.350.0000.07720.52
5.5.340.0100.07717.92
5.5.330.0170.06320.38
5.5.320.0270.08020.32
5.5.310.0300.07720.32
5.5.300.0030.08317.93
5.5.290.0070.08017.99
5.5.280.0100.06720.87
5.5.270.0100.08020.80
5.5.260.0130.07720.67
5.5.250.0070.05020.52
5.5.240.0270.07320.37
5.4.450.0430.04719.50
5.4.440.0300.03319.49
5.4.430.0200.05719.57
5.4.420.0500.04719.57
5.4.410.0300.03719.37
5.4.400.0330.04343.99
5.4.390.0400.04743.92
5.4.380.0200.04718.64
5.4.370.0070.06018.62
5.4.360.0170.04718.66
5.4.350.0170.06018.61
5.4.340.0100.05318.70
5.4.320.0040.03912.46
5.4.310.0100.03512.46
5.4.300.0070.03512.46
5.4.290.0040.04212.46
5.4.280.0090.04112.36
5.4.270.0050.03612.36
5.4.260.0050.03812.36
5.4.250.0030.03912.35
5.4.240.0030.03812.36
5.4.230.0030.04012.35
5.4.220.0040.03712.34
5.4.210.0050.03512.34
5.4.200.0080.03512.35
5.4.190.0110.03012.34
5.4.180.0050.03612.34
5.4.170.0100.03112.36
5.4.160.0060.03912.35
5.4.150.0070.03812.35
5.4.140.0100.03212.03
5.4.130.0060.04112.02
5.4.120.0040.04511.97
5.4.110.0060.03411.97
5.4.100.0060.03411.97
5.4.90.0080.03411.97
5.4.80.0030.04011.97
5.4.70.0080.03111.97
5.4.60.0060.03311.97
5.4.50.0090.03111.96
5.4.40.0050.03511.95
5.4.30.0040.03611.95
5.4.20.0070.03311.95
5.4.10.0090.03011.95
5.4.00.0050.03611.44
5.3.290.0060.04912.80
5.3.280.0050.03912.71
5.3.270.0040.04112.73
5.3.260.0060.03812.72
5.3.250.0050.03812.72
5.3.240.0080.03512.72
5.3.230.0030.04012.71
5.3.220.0090.03312.68
5.3.210.0040.03912.68
5.3.200.0050.03612.68
5.3.190.0090.03312.68
5.3.180.0060.03512.68
5.3.170.0070.03612.67
5.3.160.0050.03712.67
5.3.150.0050.03712.67
5.3.140.0100.03412.66
5.3.130.0080.03612.66
5.3.120.0040.04012.66
5.3.110.0070.03812.65
5.3.100.0090.03712.12
5.3.90.0030.03912.08
5.3.80.0040.03712.08
5.3.70.0040.03712.08
5.3.60.0080.03612.06
5.3.50.0070.03812.00
5.3.40.0070.03612.00
5.3.30.0040.03511.95
5.3.20.0050.03711.73
5.3.10.0060.03511.71
5.3.00.0040.03711.68
5.2.170.0060.0379.19
5.2.160.0060.0269.19
5.2.150.0050.0299.19
5.2.140.0050.0299.18
5.2.130.0030.0309.14
5.2.120.0040.0289.14
5.2.110.0030.0309.15
5.2.100.0050.0279.15
5.2.90.0060.0329.14
5.2.80.0070.0299.14
5.2.70.0020.0329.14
5.2.60.0080.0339.09
5.2.50.0050.0319.06
5.2.40.0050.0279.04
5.2.30.0030.0309.01
5.2.20.0060.0269.00
5.2.10.0040.0308.94
5.2.00.0040.0308.80
5.1.60.0040.0238.09
5.1.50.0060.0228.09
5.1.40.0010.0278.06
5.1.30.0000.0318.41
5.1.20.0060.0248.44
5.1.10.0050.0248.16
5.1.00.0060.0238.16
5.0.50.0050.0246.64
5.0.40.0020.0206.51
5.0.30.0030.0476.32
5.0.20.0030.0196.29
5.0.10.0030.0196.27
5.0.00.0010.0366.26
4.4.90.0030.0174.78
4.4.80.0020.0154.75
4.4.70.0060.0164.76
4.4.60.0010.0164.75
4.4.50.0030.0154.77
4.4.40.0030.0254.71
4.4.30.0020.0204.76
4.4.20.0040.0134.84
4.4.10.0010.0164.85
4.4.00.0050.0214.75
4.3.110.0010.0174.67
4.3.100.0010.0244.66
4.3.90.0050.0114.63
4.3.80.0030.0244.58
4.3.70.0020.0144.63
4.3.60.0000.0174.63
4.3.50.0030.0144.63
4.3.40.0030.0234.54
4.3.30.0020.0153.31
4.3.20.0000.0173.29
4.3.10.0030.0143.25
4.3.00.0030.01343.92

preferences:
62.36 ms | 400 KiB | 5 Q