3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tempToken = "a5c4e484-15f5-442b-b30d-84eb1848aad389ea132c-ef53-49b7-808c-8f015e93c4eb"; $clearText = "AuthToken=a5c4e484-15f5-442b-b30d-84eb1848aad389ea132c-ef53-49b7-808c-8f015e93c4eb&PayerId=5732052602226956&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.70.0110.01116.63
8.3.60.0100.01016.75
8.3.50.0090.00622.11
8.3.40.0060.01218.60
8.3.30.0060.01219.04
8.3.20.0040.00420.35
8.3.10.0040.00423.67
8.3.00.0000.00819.44
8.2.180.0150.00416.50
8.2.170.0130.00322.96
8.2.160.0100.00320.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0080.00021.16
8.2.110.0070.00322.26
8.2.100.0080.00318.03
8.2.90.0090.00019.09
8.2.80.0040.00417.97
8.2.70.0030.00617.50
8.2.60.0030.00617.93
8.2.50.0060.00318.07
8.2.40.0040.00420.01
8.2.30.0020.00518.30
8.2.20.0060.00317.73
8.2.10.0040.00418.12
8.2.00.0040.00417.65
8.1.280.0120.00325.92
8.1.270.0080.00023.92
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0100.00023.84
8.1.230.0100.00018.97
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0030.00617.38
8.1.190.0000.00817.23
8.1.180.0050.00318.10
8.1.170.0030.00518.48
8.1.160.0040.00422.00
8.1.150.0000.00718.82
8.1.140.0050.00217.44
8.1.130.0030.00317.82
8.1.120.0000.00717.43
8.1.110.0040.00417.49
8.1.100.0070.00017.33
8.1.90.0040.00417.34
8.1.80.0000.00817.28
8.1.70.0030.00317.33
8.1.60.0030.00617.54
8.1.50.0000.00717.45
8.1.40.0040.00417.42
8.1.30.0040.00417.63
8.1.20.0080.00017.63
8.1.10.0030.00517.54
8.1.00.0040.00417.43
8.0.300.0040.00418.77
8.0.290.0000.00716.75
8.0.280.0000.00718.45
8.0.270.0030.00317.24
8.0.260.0000.00717.30
8.0.250.0030.00316.94
8.0.240.0000.00816.87
8.0.230.0000.00716.92
8.0.220.0030.00316.84
8.0.210.0080.00016.89
8.0.200.0080.00017.05
8.0.190.0070.00017.00
8.0.180.0030.00316.87
8.0.170.0000.00816.95
8.0.160.0030.00317.00
8.0.150.0030.00316.86
8.0.140.0040.00416.80
8.0.130.0050.00013.39
8.0.120.0040.00416.93
8.0.110.0040.00416.91
8.0.100.0000.00716.81
8.0.90.0020.00516.91
8.0.80.0060.00916.86
8.0.70.0040.00416.97
8.0.60.0050.00316.79
8.0.50.0000.00716.82
8.0.30.0170.00616.99
8.0.20.0070.01317.40
8.0.10.0070.00016.94
8.0.00.0090.00916.77
7.4.330.0050.00015.09
7.4.320.0000.00716.40
7.4.300.0030.00316.59
7.4.290.0070.00016.63
7.4.280.0070.00016.46
7.4.270.0040.00416.40
7.4.260.0030.00316.57
7.4.250.0070.00016.45
7.4.240.0020.00516.55
7.4.230.0000.00716.52
7.4.220.0080.01216.59
7.4.210.0070.00716.48
7.4.200.0040.00416.39
7.4.160.0060.00916.61
7.4.150.0110.00717.40
7.4.140.0120.00517.86
7.4.130.0050.01416.62
7.4.120.0090.00916.49
7.4.110.0140.00516.40
7.4.100.0080.00816.49
7.4.90.0040.01316.55
7.4.80.0190.00619.39
7.4.70.0110.00616.57
7.4.60.0120.00716.50
7.4.50.0060.00316.65
7.4.40.0100.00616.63
7.4.30.0030.01316.64
7.4.00.0090.00314.74
7.3.330.0030.00313.26
7.3.320.0000.00613.25
7.3.310.0000.00616.41
7.3.300.0030.00316.31
7.3.290.0090.00616.36
7.3.280.0070.00916.34
7.3.270.0090.00917.40
7.3.260.0130.01116.43
7.3.250.0130.00516.46
7.3.240.0120.00616.44
7.3.230.0070.01016.51
7.3.210.0130.00316.36
7.3.200.0060.01019.39
7.3.190.0040.01616.40
7.3.180.0100.00716.45
7.3.170.0080.00816.33
7.3.160.0080.01216.48
7.3.120.0080.00814.94
7.2.330.0090.00916.82
7.2.320.0060.01216.70
7.2.310.0140.00716.72
7.2.300.0100.00716.68
7.2.290.0070.01416.51
7.2.60.0110.00416.86
7.2.00.0030.01019.53
7.1.200.0140.00015.39
7.1.100.0120.00417.92
7.1.70.0000.01017.12
7.1.60.0070.01819.70
7.1.50.0190.00616.90
7.1.00.0100.07022.46
7.0.200.0210.01015.01
7.0.140.0100.06722.12
7.0.60.0030.08319.98
7.0.50.0000.09017.98
7.0.40.0100.04020.09
7.0.30.0230.04320.32
7.0.20.0330.07720.22
7.0.10.0270.03720.30
7.0.00.0070.06020.11
5.6.280.0000.07721.12
5.6.210.0070.08720.54
5.6.200.0070.04318.19
5.6.190.0030.06720.35
5.6.180.0000.08720.68
5.6.170.0270.03320.52
5.6.160.0030.04020.61
5.6.150.0000.06018.29
5.6.140.0000.04318.19
5.6.130.0130.07318.12
5.6.120.0130.05321.07
5.6.110.0030.05721.18
5.6.100.0030.04021.03
5.6.90.0070.04021.13
5.6.80.0030.06020.42
5.6.70.4730.03720.54
5.5.350.0070.08020.44
5.5.340.0100.05017.93
5.5.330.0130.08020.39
5.5.320.0270.06320.27
5.5.310.0270.05020.29
5.5.300.0130.07317.96
5.5.290.0070.05318.00
5.5.280.0100.07720.87
5.5.270.0070.06720.80
5.5.260.0070.06020.91
5.5.250.0100.07320.70
5.5.240.0130.06720.22
5.4.450.0330.04319.27
5.4.440.0270.04719.42
5.4.430.0570.04319.60
5.4.420.0330.05019.25
5.4.410.0570.05319.29
5.4.400.0930.03319.14
5.4.390.0070.05743.92
5.4.380.0100.06018.51
5.4.370.0170.05318.63
5.4.360.0170.05318.71
5.4.350.0170.05318.53
5.4.340.0200.04718.59
5.4.320.0090.03812.46
5.4.310.0010.04212.46
5.4.300.0070.03512.46
5.4.290.0080.03612.46
5.4.280.0060.03712.36
5.4.270.0100.03812.36
5.4.260.0060.05112.35
5.4.250.0070.04312.36
5.4.240.0090.03512.36
5.4.230.0050.03812.34
5.4.220.0070.03512.34
5.4.210.0050.03712.35
5.4.200.0070.03612.35
5.4.190.0060.03612.34
5.4.180.0120.03412.34
5.4.170.0070.03612.35
5.4.160.0050.03712.35
5.4.150.0060.03512.34
5.4.140.0070.03712.03
5.4.130.0060.04312.02
5.4.120.0110.04111.98
5.4.110.0070.04911.97
5.4.100.0050.04011.97
5.4.90.0110.03211.97
5.4.80.0090.03511.97
5.4.70.0060.03711.97
5.4.60.0060.03411.96
5.4.50.0050.03711.96
5.4.40.0070.03411.95
5.4.30.0090.03211.95
5.4.20.0040.03711.95
5.4.10.0100.03011.95
5.4.00.0030.03811.45
5.3.290.0060.04012.80
5.3.280.0090.03512.71
5.3.270.0040.04112.73
5.3.260.0050.04212.72
5.3.250.0050.04112.72
5.3.240.0060.03712.72
5.3.230.0040.04112.70
5.3.220.0050.03812.68
5.3.210.0080.03712.68
5.3.200.0040.03812.68
5.3.190.0100.03512.68
5.3.180.0070.03612.67
5.3.170.0050.03812.67
5.3.160.0060.03712.67
5.3.150.0060.03812.67
5.3.140.0070.03612.66
5.3.130.0050.04112.66
5.3.120.0050.04112.66
5.3.110.0070.03812.66
5.3.100.0070.03612.12
5.3.90.0060.03812.09
5.3.80.0070.03512.07
5.3.70.0090.03412.08
5.3.60.0090.03612.07
5.3.50.0060.03912.00
5.3.40.0090.04112.00
5.3.30.0090.03211.95
5.3.20.0060.03511.73
5.3.10.0060.03511.70
5.3.00.0070.03511.68
5.2.170.0040.0319.19
5.2.160.0060.0279.19
5.2.150.0030.0329.19
5.2.140.0030.0329.18
5.2.130.0040.0309.15
5.2.120.0060.0279.14
5.2.110.0070.0279.15
5.2.100.0040.0299.15
5.2.90.0040.0339.14
5.2.80.0080.0319.14
5.2.70.0090.0269.14
5.2.60.0050.0319.09
5.2.50.0060.0299.06
5.2.40.0030.0319.04
5.2.30.0070.0289.02
5.2.20.0030.0319.00
5.2.10.0040.0378.94
5.2.00.0070.0308.80
5.1.60.0070.0308.08
5.1.50.0060.0328.09
5.1.40.0030.0358.06
5.1.30.0060.0268.41
5.1.20.0060.0268.43
5.1.10.0030.0288.16
5.1.00.0030.0268.16
5.0.50.0030.0206.65
5.0.40.0000.0226.50
5.0.30.0060.0296.32
5.0.20.0010.0226.29
5.0.10.0050.0186.27
5.0.00.0010.0336.25
4.4.90.0020.0164.78
4.4.80.0020.0164.75
4.4.70.0010.0174.75
4.4.60.0030.0164.75
4.4.50.0010.0174.77
4.4.40.0030.0254.71
4.4.30.0020.0174.76
4.4.20.0030.0164.85
4.4.10.0050.0144.85
4.4.00.0010.0274.76
4.3.110.0020.0164.67
4.3.100.0010.0204.67
4.3.90.0020.0224.63
4.3.80.0030.0324.58
4.3.70.0050.0174.63
4.3.60.0020.0154.63
4.3.50.0060.0144.63
4.3.40.0050.0224.54
4.3.30.0030.0153.31
4.3.20.0040.0153.28
4.3.10.0010.0163.24
4.3.00.0000.02043.92

preferences:
54.67 ms | 401 KiB | 5 Q