3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tempToken = "b0e35f56-951d-435f-a7ff-79bea2eb9ced9be4f8fc-beb4-45ee-bf2e-5d8fc7f8a234"; $clearText = "AuthToken=b0e35f56-951d-435f-a7ff-79bea2eb9ced9be4f8fc-beb4-45ee-bf2e-5d8fc7f8a234&PayerId=2340638435635674&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.00616.50
8.3.50.0050.01121.98
8.3.40.0120.00318.88
8.3.30.0120.00318.91
8.3.20.0070.00020.25
8.3.10.0080.00023.66
8.3.00.0040.00419.56
8.2.180.0140.00416.50
8.2.170.0130.00322.96
8.2.160.0140.00020.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00621.00
8.2.110.0030.00622.43
8.2.100.0110.00018.09
8.2.90.0060.00319.17
8.2.80.0030.00517.97
8.2.70.0000.00817.63
8.2.60.0030.00517.80
8.2.50.0060.00318.07
8.2.40.0030.00619.95
8.2.30.0000.00718.18
8.2.20.0000.00817.75
8.2.10.0030.00618.04
8.2.00.0030.00519.40
8.1.280.0000.01425.92
8.1.270.0000.00823.79
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0090.00019.28
8.1.230.0060.00618.96
8.1.220.0050.00217.74
8.1.210.0040.00418.77
8.1.200.0000.00817.35
8.1.190.0050.00317.48
8.1.180.0040.00418.10
8.1.170.0030.00618.50
8.1.160.0050.00322.07
8.1.150.0040.00418.87
8.1.140.0000.00817.44
8.1.130.0030.00317.83
8.1.120.0000.00817.48
8.1.110.0050.00317.50
8.1.100.0040.00417.41
8.1.90.0000.00717.51
8.1.80.0070.00017.32
8.1.70.0050.00317.40
8.1.60.0030.00617.59
8.1.50.0000.00817.49
8.1.40.0040.00417.41
8.1.30.0030.00617.56
8.1.20.0080.00017.68
8.1.10.0040.00417.53
8.1.00.0000.00817.41
8.0.300.0030.00518.77
8.0.290.0060.00316.75
8.0.280.0070.00018.34
8.0.270.0050.00317.17
8.0.260.0030.00317.11
8.0.250.0000.00717.01
8.0.240.0000.00816.88
8.0.230.0000.00717.00
8.0.220.0070.00016.96
8.0.210.0070.00016.92
8.0.200.0060.00016.93
8.0.190.0000.00717.07
8.0.180.0040.00417.00
8.0.170.0000.00816.97
8.0.160.0040.00416.93
8.0.150.0000.00716.76
8.0.140.0000.00716.94
8.0.130.0000.00613.35
8.0.120.0000.00816.80
8.0.110.0050.00316.85
8.0.100.0050.00216.85
8.0.90.0040.00416.95
8.0.80.0040.01216.99
8.0.70.0040.00416.75
8.0.60.0020.00516.77
8.0.50.0070.00016.82
8.0.30.0090.01316.97
8.0.20.0160.00517.40
8.0.10.0000.00716.82
8.0.00.0100.00916.58
7.4.330.0020.00215.09
7.4.320.0000.00616.52
7.4.300.0000.00616.48
7.4.290.0000.00716.50
7.4.280.0070.00016.63
7.4.270.0070.00016.56
7.4.260.0000.00716.47
7.4.250.0040.00416.38
7.4.240.0000.00816.38
7.4.230.0030.00316.67
7.4.220.0090.01216.63
7.4.210.0100.00316.70
7.4.200.0030.00416.63
7.4.160.0120.00316.51
7.4.150.0100.00717.40
7.4.140.0110.02317.86
7.4.130.0070.01016.43
7.4.120.0120.00716.48
7.4.110.0070.01016.55
7.4.100.0200.00016.48
7.4.90.0030.01316.47
7.4.80.0110.00719.39
7.4.70.0140.00316.53
7.4.60.0100.01016.32
7.4.50.0060.00316.36
7.4.40.0060.00916.51
7.4.30.0060.01016.48
7.4.00.0070.00714.91
7.3.330.0000.00613.31
7.3.320.0000.00713.28
7.3.310.0000.00716.29
7.3.300.0000.00716.32
7.3.290.0070.00716.30
7.3.280.0090.01016.32
7.3.270.0100.00717.40
7.3.260.0100.00716.28
7.3.250.0130.00616.43
7.3.240.0110.00616.40
7.3.230.0080.01616.39
7.3.210.0130.00316.50
7.3.200.0100.00619.39
7.3.190.0060.01116.32
7.3.180.0100.00716.49
7.3.170.0090.00616.37
7.3.160.0200.00316.47
7.3.120.0070.01014.82
7.3.110.0030.01414.72
7.3.100.0060.00614.86
7.3.90.0060.01214.64
7.3.80.0000.01314.68
7.3.70.0040.01114.59
7.3.60.0070.00414.75
7.3.50.0070.00414.62
7.3.40.0070.00314.70
7.3.30.0000.00914.68
7.3.20.0030.01416.70
7.3.10.0030.01416.53
7.3.00.0030.01016.43
7.2.330.0050.01416.63
7.2.320.0070.01116.39
7.2.310.0100.00616.72
7.2.300.0080.00816.29
7.2.290.0130.00316.71
7.2.240.0130.00315.03
7.2.230.0000.01514.93
7.2.220.0090.00615.16
7.2.210.0040.01114.77
7.2.200.0080.00415.16
7.2.190.0140.00015.07
7.2.180.0050.00815.14
7.2.170.0120.00315.00
7.2.160.0070.01114.81
7.2.150.0100.00316.78
7.2.140.0130.00316.82
7.2.130.0030.01016.88
7.2.120.0060.00916.82
7.2.110.0060.00617.04
7.2.100.0070.01016.95
7.2.90.0110.00316.98
7.2.80.0050.00516.76
7.2.70.0100.00716.92
7.2.60.0040.01116.86
7.2.50.0040.01417.09
7.2.40.0070.00716.93
7.2.30.0090.00616.87
7.2.20.0040.00716.88
7.2.10.0090.00616.67
7.2.00.0090.00718.02
7.1.330.0100.00315.88
7.1.320.0050.00515.78
7.1.310.0140.00015.88
7.1.300.0070.00715.73
7.1.290.0070.00715.69
7.1.280.0120.00615.97
7.1.270.0040.00415.72
7.1.260.0030.01215.83
7.1.250.0100.00715.97
7.1.200.0030.01015.86
7.1.100.0080.00818.01
7.1.70.0000.01017.16
7.1.60.0130.01319.70
7.1.50.0070.01816.85
7.1.00.0000.07322.45
7.0.200.0090.00616.70
7.0.140.0000.07022.00
7.0.60.0000.09019.82
7.0.50.0100.05017.93
7.0.40.0000.09020.41
7.0.30.0600.06720.10
7.0.20.0270.06320.23
7.0.10.0200.07720.17
7.0.00.0070.08320.30
5.6.280.0000.07321.04
5.6.210.0130.07320.51
5.6.200.0200.05718.10
5.6.190.0100.05020.38
5.6.180.0070.05320.65
5.6.170.0430.07320.43
5.6.160.0070.05320.54
5.6.150.0100.07718.16
5.6.140.0070.03718.29
5.6.130.0000.04318.17
5.6.120.0100.08321.13
5.6.110.0000.08721.09
5.6.100.0030.04020.99
5.6.90.0100.08321.05
5.6.80.0070.03720.40
5.6.70.0200.05320.53
5.5.350.0030.06720.52
5.5.340.0170.07017.97
5.5.330.0100.04320.21
5.5.320.0430.06320.18
5.5.310.0230.07020.29
5.5.300.0030.08317.89
5.5.290.0000.04317.92
5.5.280.0130.07720.91
5.5.270.0170.06720.83
5.5.260.0230.06320.90
5.5.250.0070.04020.65
5.5.240.0130.05020.34
5.4.450.0430.03719.59
5.4.440.0500.05019.46
5.4.430.0600.04019.10
5.4.420.0330.04319.48
5.4.410.0200.04019.18
5.4.400.0230.03743.94
5.4.390.0430.04343.92
5.4.380.0170.06018.62
5.4.370.0130.05718.52
5.4.360.0170.04718.44
5.4.350.0130.05718.70
5.4.340.0100.05718.70
5.4.320.0050.05012.46
5.4.310.0050.04112.46
5.4.300.0020.03912.46
5.4.290.0040.03912.46
5.4.280.0100.03712.35
5.4.270.0070.04012.35
5.4.260.0060.04112.36
5.4.250.0050.03812.36
5.4.240.0070.04312.36
5.4.230.0100.03812.35
5.4.220.0050.03612.34
5.4.210.0080.03812.35
5.4.200.0090.03912.34
5.4.190.0070.03612.34
5.4.180.0040.03712.34
5.4.170.0050.03612.36
5.4.160.0070.04212.35
5.4.150.0070.04112.34
5.4.140.0100.03712.03
5.4.130.0060.03812.02
5.4.120.0070.03611.97
5.4.110.0040.03811.97
5.4.100.0090.03711.97
5.4.90.0100.03611.97
5.4.80.0060.03711.97
5.4.70.0070.03911.97
5.4.60.0060.03911.96
5.4.50.0070.03411.96
5.4.40.0040.03711.95
5.4.30.0070.04511.95
5.4.20.0060.03411.95
5.4.10.0070.03411.95
5.4.00.0120.03011.44
5.3.290.0070.03712.80
5.3.280.0050.04112.71
5.3.270.0070.03812.72
5.3.260.0070.04312.72
5.3.250.0060.03712.72
5.3.240.0070.03612.72
5.3.230.0080.04612.71
5.3.220.0040.04312.68
5.3.210.0060.03912.68
5.3.200.0070.03412.68
5.3.190.0050.04012.68
5.3.180.0020.04012.68
5.3.170.0090.03312.67
5.3.160.0040.03812.68
5.3.150.0060.03712.67
5.3.140.0060.03612.66
5.3.130.0070.03712.66
5.3.120.0090.03512.66
5.3.110.0090.03412.66
5.3.100.0060.03612.12
5.3.90.0030.04012.08
5.3.80.0070.03412.08
5.3.70.0050.03612.07
5.3.60.0070.03412.06
5.3.50.0070.03412.00
5.3.40.0060.03512.00
5.3.30.0050.03511.95
5.3.20.0040.03611.73
5.3.10.0110.03711.70
5.3.00.0070.03511.68
5.2.170.0040.0309.19
5.2.160.0050.0279.19
5.2.150.0050.0309.19
5.2.140.0070.0289.19
5.2.130.0030.0319.15
5.2.120.0080.0259.15
5.2.110.0040.0299.16
5.2.100.0100.0229.14
5.2.90.0030.0309.14
5.2.80.0070.0359.14
5.2.70.0060.0329.14
5.2.60.0070.0379.10
5.2.50.0040.0309.07
5.2.40.0060.0279.04
5.2.30.0050.0309.01
5.2.20.0090.0299.00
5.2.10.0050.0318.94
5.2.00.0070.0288.80
5.1.60.0030.0258.09
5.1.50.0070.0228.09
5.1.40.0040.0248.06
5.1.30.0050.0258.41
5.1.20.0030.0278.44
5.1.10.0060.0298.16
5.1.00.0050.0248.16
5.0.50.0050.0196.65
5.0.40.0020.0216.51
5.0.30.0020.0326.33
5.0.20.0030.0206.29
5.0.10.0040.0206.27
5.0.00.0050.0296.26
4.4.90.0040.0144.78
4.4.80.0020.0174.75
4.4.70.0020.0174.75
4.4.60.0020.0164.75
4.4.50.0050.0134.77
4.4.40.0030.0264.71
4.4.30.0030.0154.76
4.4.20.0050.0134.85
4.4.10.0040.0144.85
4.4.00.0020.0254.76
4.3.110.0030.0154.67
4.3.100.0040.0134.66
4.3.90.0040.0184.64
4.3.80.0030.0284.59
4.3.70.0030.0214.63
4.3.60.0040.0194.63
4.3.50.0020.0164.63
4.3.40.0010.0314.54
4.3.30.0030.0223.31
4.3.20.0030.0203.28
4.3.10.0000.0173.24
4.3.00.0200.02043.92

preferences:
41.28 ms | 401 KiB | 5 Q