3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tempToken = "eb97ed62-ef2b-4f4d-973a-a492a5a74f694d9297e2-ffef-4ee8-8df4-ffabdac2e3f0"; $clearText = "AuthToken=eb97ed62-ef2b-4f4d-973a-a492a5a74f694d9297e2-ffef-4ee8-8df4-ffabdac2e3f0&PayerId=2651346885082349&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.0170.00316.88
8.3.50.0070.01022.11
8.3.40.0100.01018.83
8.3.30.0070.00719.17
8.3.20.0000.00720.34
8.3.10.0050.00323.71
8.3.00.0040.00419.44
8.2.180.0100.01016.75
8.2.170.0100.00322.96
8.2.160.0100.00719.04
8.2.150.0090.00024.18
8.2.140.0000.00724.66
8.2.130.0050.00226.16
8.2.120.0080.00021.10
8.2.110.0100.00021.12
8.2.100.0120.00018.03
8.2.90.0050.00319.23
8.2.80.0040.00417.97
8.2.70.0040.00417.63
8.2.60.0000.00817.93
8.2.50.0040.00418.10
8.2.40.0030.00622.33
8.2.30.0070.00018.32
8.2.20.0000.00817.66
8.2.10.0000.00717.99
8.2.00.0050.00317.75
8.1.280.0030.01225.92
8.1.270.0050.00323.96
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0060.00321.27
8.1.230.0090.00317.42
8.1.220.0040.00417.78
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0100.00017.10
8.1.180.0040.00418.10
8.1.170.0080.00018.64
8.1.160.0040.00422.03
8.1.150.0000.00818.82
8.1.140.0050.00217.38
8.1.130.0040.00417.83
8.1.120.0040.00417.48
8.1.110.0000.00817.48
8.1.100.0050.00317.38
8.1.90.0070.00017.46
8.1.80.0040.00417.44
8.1.70.0030.00317.45
8.1.60.0050.00617.63
8.1.50.0000.00717.55
8.1.40.0040.00417.41
8.1.30.0090.00017.65
8.1.20.0050.00317.57
8.1.10.0000.00817.45
8.1.00.0040.00417.55
8.0.300.0000.00818.77
8.0.290.0050.00316.75
8.0.280.0040.00418.42
8.0.270.0030.00317.29
8.0.260.0000.00617.27
8.0.250.0000.00717.07
8.0.240.0070.00016.96
8.0.230.0070.00017.07
8.0.220.0030.00316.94
8.0.210.0070.00016.86
8.0.200.0030.00316.89
8.0.190.0000.00716.98
8.0.180.0040.00416.84
8.0.170.0080.00016.96
8.0.160.0000.00716.86
8.0.150.0070.00016.81
8.0.140.0040.00416.83
8.0.130.0030.00313.32
8.0.120.0000.00816.97
8.0.110.0000.00716.79
8.0.100.0000.00716.95
8.0.90.0070.00016.95
8.0.80.0160.00616.96
8.0.70.0000.00717.07
8.0.60.0070.00016.79
8.0.50.0040.00416.96
8.0.30.0080.01117.08
8.0.20.0130.01017.40
8.0.10.0000.00816.96
8.0.00.0120.00716.87
7.4.330.0050.00015.00
7.4.320.0000.00616.58
7.4.300.0050.00316.46
7.4.290.0070.00016.66
7.4.280.0000.00716.47
7.4.270.0040.00416.47
7.4.260.0030.00616.54
7.4.250.0000.00716.48
7.4.240.0050.00216.59
7.4.230.0050.00216.51
7.4.220.0140.00316.71
7.4.210.0090.00616.61
7.4.200.0040.00416.61
7.4.160.0050.01016.55
7.4.150.0190.00017.40
7.4.140.0120.00617.86
7.4.130.0100.00716.57
7.4.120.0080.01316.67
7.4.110.0110.00616.61
7.4.100.0060.01116.59
7.4.90.0070.01416.59
7.4.80.0060.01119.39
7.4.70.0050.01116.54
7.4.60.0090.00816.49
7.4.50.0000.00816.69
7.4.40.0190.00316.58
7.4.30.0040.01416.68
7.4.00.0030.01414.86
7.3.330.0050.00013.26
7.3.320.0000.00613.18
7.3.310.0070.00016.21
7.3.300.0060.00016.38
7.3.290.0060.00916.31
7.3.280.0060.01416.28
7.3.270.0070.01117.40
7.3.260.0190.00616.61
7.3.250.0110.00916.36
7.3.240.0060.01216.35
7.3.230.0140.00316.39
7.3.210.0100.00716.38
7.3.200.0060.00919.39
7.3.190.0030.01416.32
7.3.180.0120.00616.36
7.3.170.0090.01216.61
7.3.160.0040.01116.33
7.3.120.0020.01414.91
7.3.110.0060.01214.64
7.3.100.0080.00514.87
7.3.90.0090.00614.78
7.3.80.0070.00614.97
7.3.70.0110.00314.74
7.3.60.0060.00814.74
7.3.50.0040.01214.72
7.3.40.0050.00914.83
7.3.30.0060.00714.81
7.3.20.0050.00916.47
7.3.10.0080.00616.69
7.3.00.0030.01216.67
7.2.330.0090.00916.54
7.2.320.0140.00316.68
7.2.310.0100.01016.73
7.2.300.0080.00816.79
7.2.290.0060.00916.63
7.2.250.0070.01115.01
7.2.240.0060.01515.18
7.2.230.0060.00915.11
7.2.220.0110.00715.17
7.2.210.0040.01214.87
7.2.200.0020.01114.97
7.2.190.0060.00614.90
7.2.180.0060.00714.93
7.2.170.0070.00714.87
7.2.60.0080.00617.04
7.2.00.0030.00919.23
7.1.330.0090.00515.76
7.1.320.0070.00715.72
7.1.310.0050.00815.81
7.1.300.0050.00715.65
7.1.290.0060.01015.70
7.1.280.0050.00915.68
7.1.270.0070.00715.74
7.1.260.0070.00515.65
7.1.200.0080.00315.71
7.1.100.0090.00317.89
7.1.70.0060.00617.12
7.1.60.0000.01317.32
7.1.50.0100.00717.00
7.1.40.0030.01016.77
7.1.30.0190.01515.09
7.1.20.0080.00816.63
7.1.10.0040.00816.45
7.1.00.0030.00616.63
7.0.200.0040.00416.93
7.0.190.0000.01216.70
7.0.180.0040.00816.45
7.0.170.0120.00016.04
7.0.160.0050.00816.17
7.0.150.0030.00616.32
7.0.140.0050.00716.37
7.0.130.0060.00616.61
7.0.120.0050.00516.79
7.0.110.0030.00516.48
7.0.100.0000.01016.41
7.0.90.0090.00516.46
7.0.80.0070.00316.26
7.0.70.0000.00916.39
7.0.60.0050.00516.21
7.0.50.0040.00716.43
7.0.40.0040.00915.09
7.0.30.0050.00515.09
7.0.20.0020.00915.09
7.0.10.0050.00515.09
7.0.00.0080.00015.09
5.6.300.0030.04520.57
5.6.290.0060.05820.66
5.6.280.0030.04820.90
5.6.270.0030.04520.88
5.6.260.0030.07321.03
5.6.250.0070.04720.78
5.6.240.0060.04720.93
5.6.230.0100.04320.78
5.6.220.0070.05621.00
5.6.210.0070.09020.95
5.6.200.0070.03820.94
5.6.190.0040.04620.83
5.6.180.0070.04020.80
5.6.170.0090.03520.82
5.6.160.0000.05421.02
5.6.150.0100.05020.84
5.6.140.0060.04420.82
5.6.130.0070.04320.86
5.6.120.0070.04820.82
5.6.110.0390.04421.00
5.6.100.0040.05020.80
5.6.90.0070.04720.73
5.6.80.0060.04920.42
5.6.70.0100.04020.20
5.6.60.0030.05920.20
5.6.50.0000.05420.22
5.6.40.0000.04120.38
5.6.30.0100.05720.39
5.6.20.0070.04620.10
5.6.10.0000.04420.32
5.6.00.0030.04120.16
5.5.380.0030.04717.46
5.5.370.0100.04017.45
5.5.360.0000.05217.54
5.5.350.0030.04717.49
5.5.340.0290.02917.92
5.5.330.0060.03917.75
5.5.320.0030.05118.03
5.5.310.0000.05617.77
5.5.300.0000.04618.05
5.5.290.0090.03618.04
5.5.280.0100.04417.96
5.5.270.0070.06917.97
5.5.260.0180.03418.04
5.5.250.0000.04517.57
5.5.240.0100.03617.13
5.5.230.0070.06717.44
5.5.220.0070.03917.41
5.5.210.0030.04417.45
5.5.200.0030.05017.29
5.5.190.0000.04517.14
5.5.180.0000.05017.27
5.5.160.0070.03817.33
5.5.150.0130.07017.38
5.5.140.0070.03817.40
5.5.130.0190.03817.27
5.5.120.0100.03417.19
5.5.110.0030.04017.18
5.5.100.0030.03717.29
5.5.90.0000.04417.31
5.5.80.0070.05817.32
5.5.70.0030.04017.34
5.5.60.0060.03817.30
5.5.50.0030.07617.21
5.5.40.0030.04017.08
5.5.30.0070.03717.29
5.5.20.0070.03917.21
5.5.10.0030.04117.08
5.5.00.0240.03417.07
5.4.450.0030.06719.38
5.4.440.0100.04619.27
5.4.430.0090.04119.43
5.4.420.0070.04219.18
5.4.410.0030.05119.29
5.4.400.0030.04118.84
5.4.390.0070.03619.05
5.4.380.0000.04919.11
5.4.370.0030.04719.03
5.4.360.0060.03619.14
5.4.350.0030.04419.19
5.4.340.0070.03919.00
5.4.320.0130.04118.94
5.4.310.0070.04419.20
5.4.300.0060.03719.04
5.4.290.0100.04119.08
5.4.280.0100.04319.03
5.4.270.0030.04219.04
5.4.260.0070.03718.97
5.4.250.0100.03819.00
5.4.240.0070.04019.04
5.4.230.0040.04218.93
5.4.220.0100.03619.04
5.4.210.0030.04218.96
5.4.200.0000.04519.18
5.4.190.0100.03418.91
5.4.180.0070.04119.04
5.4.170.0100.05619.02
5.4.160.0030.04019.09
5.4.150.0070.03619.13
5.4.140.0070.03816.42
5.4.130.0100.03016.60
5.4.120.0160.03316.57
5.4.110.0070.03316.67
5.4.100.0030.03916.43
5.4.90.0030.03816.59
5.4.80.0000.04016.51
5.4.70.0000.03916.65
5.4.60.0030.04216.41
5.4.50.0000.04016.34
5.4.40.0000.04116.63
5.4.30.0030.03516.63
5.4.20.0070.03516.60
5.4.10.0100.06916.66
5.4.00.0000.04415.96
5.3.290.0000.04615.09
5.3.280.0030.04015.09
5.3.270.0070.03615.09
5.3.260.0030.04015.09
5.3.250.0070.03415.09
5.3.240.0100.03215.09
5.3.230.0130.03315.09
5.3.220.0130.02915.09
5.3.210.0070.03815.09
5.3.200.0060.04015.09
5.3.190.0170.04315.09
5.3.180.0030.03715.09
5.3.170.0060.03415.09
5.3.160.0030.03615.09
5.3.150.0030.03715.09
5.3.140.0030.03715.09
5.3.130.0000.04115.09
5.3.120.0100.03515.09
5.3.110.0060.05815.09
5.3.100.0100.03315.09
5.3.90.0070.03915.09
5.3.80.0030.03615.09
5.3.70.0030.04215.09
5.3.60.0100.04315.09
5.3.50.0120.03015.09
5.3.40.0100.03215.09
5.3.30.0060.03615.09
5.3.20.0030.03415.09
5.3.10.0070.03515.09
5.3.00.0070.03715.09
5.2.170.0070.02715.09
5.2.160.0040.02915.09
5.2.150.0000.03715.09
5.2.140.0030.03215.09
5.2.130.0040.02915.09
5.2.120.0000.03615.09
5.2.110.0030.03415.09
5.2.100.0030.03415.09
5.2.90.0070.02815.09
5.2.80.0030.02915.09
5.2.70.0000.03215.09
5.2.60.0030.02815.09
5.2.50.0180.03215.09
5.2.40.0000.03215.09
5.2.30.0070.02915.09
5.2.20.0030.03115.09
5.2.10.0030.02815.09
5.2.00.0030.03015.09
5.1.60.0000.02715.09
5.1.50.0030.02315.09
5.1.40.0000.03015.09
5.1.30.0000.02915.09
5.1.20.0030.02815.09
5.1.10.0030.02415.09
5.1.00.0030.02715.09
5.0.50.0000.03715.09
5.0.40.0030.01815.09
5.0.30.0030.03215.09
5.0.20.0040.01815.09
5.0.10.0030.02615.09
5.0.00.0030.03215.09
4.4.90.0030.01315.09
4.4.80.0000.01915.09
4.4.70.0000.01815.09
4.4.60.0040.01415.09
4.4.50.0030.01315.09
4.4.40.0100.02715.09
4.4.30.0030.01515.09
4.4.20.0000.01615.09
4.4.10.0030.01915.09
4.4.00.0000.02615.09
4.3.110.0000.02115.09
4.3.100.0030.01815.09
4.3.90.0040.01815.09
4.3.80.0000.03015.09
4.3.70.0030.01515.09
4.3.60.0000.01515.09
4.3.50.0060.01615.09
4.3.40.0030.02515.09
4.3.30.0000.02215.09
4.3.20.0000.01815.09
4.3.10.0030.01415.09
4.3.00.0030.01515.09

preferences:
40.95 ms | 401 KiB | 5 Q