3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tempToken = "fb7da1b8-1b98-4cdb-8f10-b327b59f5a76a3fd848b-0f85-44de-ad29-3972a4a6a2b8"; $clearText = "AuthToken=fb7da1b8-1b98-4cdb-8f10-b327b59f5a76a3fd848b-0f85-44de-ad29-3972a4a6a2b8&PayerId=2038251884870255&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"; echo md5($clearText) . "\n"; // 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 md5($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(chr($pad), $pad); echo md5($encodedNameValueString) . "\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 md5($aes128) . "\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.0000.01416.50
8.3.50.0100.00621.99
8.3.40.0130.00318.80
8.3.30.0080.00619.17
8.3.20.0040.00420.34
8.3.10.0000.00723.48
8.3.00.0040.00419.68
8.2.180.0100.01016.63
8.2.170.0110.00422.96
8.2.160.0040.01120.35
8.2.150.0040.00424.18
8.2.140.0070.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00421.02
8.2.110.0000.00822.20
8.2.100.0080.00317.72
8.2.90.0050.00319.22
8.2.80.0030.00517.97
8.2.70.0040.00417.75
8.2.60.0000.00817.90
8.2.50.0040.00418.07
8.2.40.0030.00618.16
8.2.30.0050.00218.32
8.2.20.0040.00417.88
8.2.10.0000.00718.13
8.2.00.0030.00617.80
8.1.280.0110.00425.92
8.1.270.0090.00023.81
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0000.00823.79
8.1.230.0070.00419.01
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0000.01017.35
8.1.190.0000.00817.35
8.1.180.0000.00718.10
8.1.170.0060.00318.59
8.1.160.0040.00422.07
8.1.150.0050.00318.81
8.1.140.0050.00317.45
8.1.130.0030.00317.87
8.1.120.0000.00717.37
8.1.110.0040.00417.48
8.1.100.0020.00517.51
8.1.90.0040.00417.46
8.1.80.0000.00817.38
8.1.70.0000.00717.36
8.1.60.0090.00317.61
8.1.50.0030.00517.42
8.1.40.0040.00417.42
8.1.30.0000.00817.61
8.1.20.0040.00417.69
8.1.10.0000.00717.51
8.1.00.0040.00417.48
8.0.300.0030.00718.77
8.0.290.0050.00216.75
8.0.280.0070.00018.52
8.0.270.0030.00317.15
8.0.260.0000.00617.31
8.0.250.0030.00316.94
8.0.240.0040.00417.04
8.0.230.0000.00716.89
8.0.220.0050.00316.86
8.0.210.0070.00016.89
8.0.200.0000.00716.96
8.0.190.0030.00516.95
8.0.180.0000.00716.88
8.0.170.0050.00316.94
8.0.160.0000.00716.93
8.0.150.0030.00616.96
8.0.140.0030.00316.93
8.0.130.0030.00313.45
8.0.120.0040.00416.94
8.0.110.0070.00016.97
8.0.100.0060.00316.76
8.0.90.0000.00817.01
8.0.80.0120.00316.91
8.0.70.0040.00416.93
8.0.60.0070.00016.70
8.0.50.0070.00016.96
8.0.30.0070.01516.91
8.0.20.0070.01117.40
8.0.10.0040.00416.84
8.0.00.0100.01416.57
7.4.330.0020.00215.13
7.4.320.0030.00316.51
7.4.300.0000.00716.60
7.4.290.0040.00416.58
7.4.280.0000.00716.50
7.4.270.0030.00316.60
7.4.260.0030.00716.51
7.4.250.0000.00816.62
7.4.240.0030.00416.61
7.4.230.0030.00316.42
7.4.220.0060.01616.68
7.4.210.0100.00316.61
7.4.200.0000.00716.66
7.4.160.0030.01316.36
7.4.150.0090.01217.40
7.4.140.0110.00617.86
7.4.130.0060.01016.43
7.4.120.0100.00716.49
7.4.110.0070.01016.53
7.4.100.0070.01016.45
7.4.90.0140.00616.61
7.4.80.0120.00919.39
7.4.70.0000.01716.48
7.4.60.0060.01216.66
7.4.50.0040.00016.37
7.4.40.0090.01516.46
7.4.30.0040.01416.52
7.4.10.0080.01116.37
7.4.00.0080.00915.57
7.3.330.0050.00013.13
7.3.320.0070.00013.13
7.3.310.0030.00316.35
7.3.300.0030.00316.19
7.3.290.0060.01316.39
7.3.280.0070.01116.32
7.3.270.0200.00317.40
7.3.260.0120.00616.41
7.3.250.0090.00816.46
7.3.240.0060.01216.49
7.3.230.0030.01316.39
7.3.210.0100.00716.41
7.3.200.0030.01219.39
7.3.190.0150.00016.37
7.3.180.0120.00316.58
7.3.170.0100.01316.32
7.3.160.0040.01116.35
7.3.130.0110.00716.18
7.3.120.0080.00815.39
7.3.110.0050.00816.41
7.3.100.0130.00716.46
7.3.90.0030.01316.32
7.3.80.0070.01016.46
7.3.70.0030.00916.42
7.3.60.0060.01016.34
7.3.50.0070.01116.31
7.3.40.0090.00316.29
7.3.30.0000.01216.29
7.3.20.0060.00618.17
7.3.10.0070.00318.07
7.3.00.0000.02017.96
7.2.330.0070.01016.32
7.2.320.0070.01516.34
7.2.310.0130.00716.71
7.2.300.0070.01016.34
7.2.290.0030.01316.56
7.2.260.0110.01116.58
7.2.250.0070.01016.60
7.2.240.0060.01316.43
7.2.230.0070.01116.68
7.2.220.0100.00616.41
7.2.210.0040.01416.76
7.2.200.0060.00916.59
7.2.190.0070.00716.44
7.2.180.0000.01016.41
7.2.170.0060.00616.65
7.2.160.0030.01416.65
7.2.150.0070.00318.51
7.2.140.0030.00818.39
7.2.130.0070.01018.54
7.2.120.0070.00718.32
7.2.110.0000.01318.24
7.2.100.0100.00318.41
7.2.90.0030.00718.37
7.2.80.0060.00618.25
7.2.70.0070.00718.04
7.2.60.0060.00617.50
7.2.50.0090.00418.30
7.2.40.0000.01018.24
7.2.30.0000.01018.23
7.2.20.0110.00818.32
7.2.10.0070.01318.32
7.2.00.0040.01018.86
7.1.330.0130.00717.21
7.1.320.0120.00017.18
7.1.310.0090.00317.18
7.1.300.0070.00717.19
7.1.290.0000.01417.33
7.1.280.0070.00717.33
7.1.270.0070.01117.36
7.1.260.0070.01017.26
7.1.250.0070.00317.19
7.1.240.0040.00817.27
7.1.230.0030.01217.23
7.1.220.0130.00016.76
7.1.210.0030.00617.21
7.1.200.0030.01016.39
7.1.190.0000.01517.38
7.1.180.0040.00417.29
7.1.170.0080.00817.17
7.1.160.0060.00617.44
7.1.150.0030.00617.18
7.1.140.0040.01217.30
7.1.130.0070.00717.29
7.1.120.0040.00417.33
7.1.110.0030.00917.25
7.1.100.0060.00917.48
7.1.90.0070.01017.33
7.1.80.0000.01517.26
7.1.70.0040.01017.32
7.1.60.0090.00918.50
7.1.50.0050.01416.92
7.1.40.0110.00017.54
7.1.30.0000.01217.35
7.1.20.0090.00617.35
7.1.10.0070.00717.08
7.1.00.0030.04219.81
7.0.330.0070.01116.92
7.0.320.0090.00316.58
7.0.310.0040.00816.80
7.0.300.0000.00916.93
7.0.290.0100.00316.80
7.0.280.0030.01216.83
7.0.270.0060.01216.81
7.0.260.0000.01016.99
7.0.250.0080.00817.00
7.0.240.0000.01316.85
7.0.230.0030.00917.13
7.0.220.0030.00817.03
7.0.210.0060.00616.81
7.0.200.0080.00116.79
7.0.190.0060.00617.04
7.0.180.0120.00317.14
7.0.170.0030.00716.92
7.0.160.0060.00616.98
7.0.150.0100.00317.07
7.0.140.0050.04019.52
7.0.130.0080.00816.91
7.0.120.0030.00616.98
7.0.110.0030.00617.01
7.0.100.0070.00716.79
7.0.90.0070.00317.08
7.0.80.0040.01216.99
7.0.70.0060.00616.84
7.0.60.0070.04818.43
7.0.50.0050.04717.50
7.0.40.0030.03117.55
7.0.30.0100.03017.54
7.0.20.0110.02517.51
7.0.10.0130.04817.54
7.0.00.0100.02217.57
5.6.400.0090.00915.69
5.6.390.0100.00315.75
5.6.380.0060.00615.67
5.6.370.0060.00615.81
5.6.360.0100.00315.85
5.6.350.0100.00715.79
5.6.340.0060.01215.75
5.6.330.0030.01215.65
5.6.320.0040.01115.93
5.6.310.0060.00815.89
5.6.300.0080.00415.77
5.6.290.0060.00915.87
5.6.280.0030.04218.51
5.6.270.0050.00515.89
5.6.260.0090.00015.66
5.6.250.0060.00615.66
5.6.240.0000.01115.75
5.6.230.0030.01015.73
5.6.220.0030.00616.14
5.6.210.0030.03618.15
5.6.200.0080.05017.00
5.6.190.0070.05118.25
5.6.180.0080.04118.29
5.6.170.0140.02218.11
5.6.160.0070.04518.09
5.6.150.0070.03217.02
5.6.140.0070.03817.05
5.6.130.0080.02217.04
5.6.120.0120.02518.29
5.6.110.0080.04418.49
5.6.100.0090.03218.54
5.6.90.0050.03818.43
5.6.80.0040.04718.14
5.6.70.0060.00315.80
5.6.60.0110.00715.64
5.6.50.0160.00315.85
5.6.40.0070.00715.80
5.6.30.0130.00315.72
5.6.20.0030.00915.68
5.6.10.0040.00715.81
5.6.00.0000.01215.86
5.5.380.0080.00415.60
5.5.370.0030.00715.64
5.5.360.0070.00615.25
5.5.350.0090.04018.09
5.5.340.0080.03816.79
5.5.330.0120.04017.91
5.5.320.0030.05017.84
5.5.310.0160.02717.86
5.5.300.0030.05116.77
5.5.290.0030.02716.86
5.5.280.0120.02418.28
5.5.270.0080.04618.26
5.5.260.0090.04018.28
5.5.250.0080.04518.14
5.5.240.0070.02717.88
5.5.230.0100.00615.66
5.5.220.0070.00315.86
5.5.210.0070.00315.80
5.5.200.0100.00715.72
5.5.190.0070.01015.79
5.5.180.0030.00915.78
5.5.170.0000.01515.63
5.5.160.0060.01015.67
5.5.150.0070.00715.52
5.5.140.0060.00915.67
5.5.130.0040.01215.72
5.5.120.0030.00915.55
5.5.110.0030.00615.79
5.5.100.0040.01115.75
5.5.90.0000.01815.46
5.5.80.0070.00715.39
5.5.70.0000.01315.64
5.5.60.0050.00515.73
5.5.50.0150.00315.59
5.5.40.0030.01715.79
5.5.30.0110.00415.63
5.5.20.0000.01415.79
5.5.10.0050.01015.51
5.5.00.0060.00915.77
5.4.450.0100.02316.03
5.4.440.0320.02015.97
5.4.430.0080.02915.92
5.4.420.0250.03015.92
5.4.410.0180.01615.97
5.4.400.0130.02528.50
5.4.390.0450.02628.26
5.4.380.0100.02715.59
5.4.370.0130.02615.54
5.4.360.0080.03015.64
5.4.350.0020.03715.59
5.4.340.0100.02715.51
5.4.330.0040.00712.53
5.4.320.0060.02312.56
5.4.310.0060.02312.47
5.4.300.0040.02212.46
5.4.290.0040.02412.55
5.4.280.0050.02112.39
5.4.270.0040.02212.38
5.4.260.0050.02412.42
5.4.250.0060.02212.37
5.4.240.0050.02312.38
5.4.230.0050.02212.37
5.4.220.0030.02512.38
5.4.210.0090.02112.44
5.4.200.0050.02212.37
5.4.190.0040.02412.38
5.4.180.0070.01912.49
5.4.170.0040.02312.37
5.4.160.0080.01912.38
5.4.150.0040.02412.45
5.4.140.0070.02012.32
5.4.130.0040.02312.27
5.4.120.0050.02112.23
5.4.110.0060.02412.32
5.4.100.0090.02512.21
5.4.90.0040.02412.26
5.4.80.0040.02612.23
5.4.70.0050.02012.29
5.4.60.0050.01912.18
5.4.50.0030.02412.25
5.4.40.0060.01912.22
5.4.30.0040.02112.24
5.4.20.0070.01812.28
5.4.10.0040.02612.21
5.4.00.0040.02211.96
5.3.290.0050.02712.82
5.3.280.0050.02312.70
5.3.270.0030.02712.91
5.3.260.0030.02912.84
5.3.250.0050.02112.82
5.3.240.0030.02212.76
5.3.230.0050.02212.84
5.3.220.0050.02412.76
5.3.210.0050.02412.79
5.3.200.0070.02112.73
5.3.190.0060.02012.86
5.3.180.0020.02512.88
5.3.170.0050.02312.84
5.3.160.0070.02112.86
5.3.150.0020.02412.88
5.3.140.0060.02112.82
5.3.130.0030.02212.78
5.3.120.0040.02712.80
5.3.110.0030.02912.75
5.3.100.0040.02412.54
5.3.90.0020.02512.55
5.3.80.0050.02112.42
5.3.70.0070.02012.39
5.3.60.0050.02212.54
5.3.50.0030.02112.38
5.3.40.0060.02212.39
5.3.30.0050.01912.45
5.3.20.0050.02212.44
5.3.10.0080.01812.20
5.3.00.0050.02412.18
5.2.170.0060.0299.19
5.2.160.0070.0389.19
5.2.150.0030.0339.19
5.2.140.0040.0379.18
5.2.130.0030.0309.14
5.2.120.0030.0309.14
5.2.110.0070.0269.15
5.2.100.0070.0269.14
5.2.90.0040.0299.14
5.2.80.0020.0329.14
5.2.70.0080.0289.14
5.2.60.0070.0279.10
5.2.50.0040.0299.06
5.2.40.0060.0289.04
5.2.30.0050.0309.02
5.2.20.0040.0299.03
5.2.10.0030.0308.94
5.2.00.0040.0298.80
5.1.60.0030.0258.08
5.1.50.0030.0258.08
5.1.40.0070.0328.05
5.1.30.0070.0358.41
5.1.20.0040.0278.43
5.1.10.0050.0248.16
5.1.00.0040.0268.16
5.0.50.0040.0206.64
5.0.40.0050.0176.51
5.0.30.0030.0326.32
5.0.20.0010.0226.29
5.0.10.0040.0256.27
5.0.00.0020.0316.27
4.4.90.0020.0164.78
4.4.80.0020.0154.75
4.4.70.0030.0164.76
4.4.60.0040.0164.75
4.4.50.0070.0144.77
4.4.40.0030.0324.71
4.4.30.0020.0224.75
4.4.20.0020.0174.84
4.4.10.0030.0164.85
4.4.00.0020.0254.76
4.3.110.0030.0154.67
4.3.100.0050.0124.67
4.3.90.0020.0154.63
4.3.80.0010.0254.58
4.3.70.0030.0144.63
4.3.60.0010.0164.63
4.3.50.0010.0184.63
4.3.40.0010.0254.54
4.3.30.0020.0223.31
4.3.20.0020.0163.29
4.3.10.0040.0133.25
4.3.00.0130.02043.92

preferences:
44.07 ms | 401 KiB | 5 Q