3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tempToken = "cecf180d-800e-43ee-82b5-2b22db814d9098b3bf2a-b5bd-4800-ac75-3e29d72b6155"; $clearText = "AuthToken=cecf180d-800e-43ee-82b5-2b22db814d9098b3bf2a-b5bd-4800-ac75-3e29d72b6155&PayerId=9979571404994689&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); // 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("M", $pad); 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); // 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.0140.00718.55
8.3.50.0180.00822.05
8.3.40.0060.00918.67
8.3.30.0140.00019.04
8.3.20.0070.00020.16
8.3.10.0040.00423.53
8.3.00.0090.00019.67
8.2.180.0140.00716.63
8.2.170.0100.00322.96
8.2.160.0070.00720.46
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0020.00526.16
8.2.120.0070.00021.05
8.2.110.0060.00322.11
8.2.100.0070.00417.72
8.2.90.0000.00819.23
8.2.80.0050.00317.97
8.2.70.0040.00417.38
8.2.60.0040.00417.91
8.2.50.0040.00418.07
8.2.40.0030.00619.95
8.2.30.0030.00618.25
8.2.20.0040.00417.73
8.2.10.0070.00017.93
8.2.00.0000.00819.48
8.1.280.0110.00425.92
8.1.270.0000.00823.84
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00623.97
8.1.230.0080.00419.02
8.1.220.0090.00017.74
8.1.210.0060.00318.77
8.1.200.0090.00017.23
8.1.190.0060.00317.12
8.1.180.0060.00318.10
8.1.170.0040.00418.66
8.1.160.0040.00421.82
8.1.150.0060.00318.82
8.1.140.0080.00017.34
8.1.130.0070.00017.39
8.1.120.0070.00017.30
8.1.110.0050.00217.41
8.1.100.0080.00317.38
8.1.90.0000.00717.38
8.1.80.0040.00317.38
8.1.70.0070.00017.35
8.1.60.0040.00417.51
8.1.50.0000.00817.44
8.1.40.0090.00017.57
8.1.30.0040.00417.47
8.1.20.0080.00017.58
8.1.10.0000.00817.59
8.1.00.0040.00417.47
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0050.00318.23
8.0.270.0000.00817.19
8.0.260.0030.00316.77
8.0.250.0060.00016.96
8.0.240.0070.00416.95
8.0.230.0070.00016.84
8.0.220.0060.00016.80
8.0.210.0000.00716.91
8.0.200.0000.00616.94
8.0.190.0000.00816.81
8.0.180.0020.00516.87
8.0.170.0040.00416.97
8.0.160.0000.00716.86
8.0.150.0070.00016.75
8.0.140.0000.00716.73
8.0.130.0000.00613.33
8.0.120.0000.00716.85
8.0.110.0050.00316.94
8.0.100.0000.00816.91
8.0.90.0000.00716.82
8.0.80.0080.00816.84
8.0.70.0000.00716.76
8.0.60.0090.00016.78
8.0.50.0000.00716.77
8.0.30.0140.00917.07
8.0.20.0090.00917.40
8.0.10.0040.00416.91
8.0.00.0070.01216.55
7.4.330.0000.00515.03
7.4.320.0030.00316.58
7.4.300.0070.00016.59
7.4.290.0030.00316.44
7.4.280.0040.00416.49
7.4.270.0040.00416.63
7.4.260.0070.00016.61
7.4.250.0040.00416.56
7.4.240.0030.00516.48
7.4.230.0030.00616.53
7.4.220.0000.01816.52
7.4.210.0030.01016.58
7.4.200.0030.00316.53
7.4.160.0000.01616.63
7.4.150.0110.00717.40
7.4.140.0130.00517.86
7.4.130.0100.00916.54
7.4.120.0170.00316.51
7.4.110.0060.01216.64
7.4.100.0080.01116.36
7.4.90.0090.00916.51
7.4.80.0120.00619.39
7.4.70.0090.00616.57
7.4.60.0070.01016.54
7.4.50.0050.00016.60
7.4.40.0100.00716.29
7.4.30.0040.01216.48
7.4.00.0060.00814.85
7.3.330.0060.00013.15
7.3.320.0060.00013.01
7.3.310.0070.00016.44
7.3.300.0070.00316.26
7.3.290.0100.00316.24
7.3.280.0120.00616.26
7.3.270.0100.00617.40
7.3.260.0090.00916.52
7.3.250.0100.00916.25
7.3.240.0080.00816.45
7.3.230.0090.00916.39
7.3.210.0090.01016.30
7.3.200.0100.00719.39
7.3.190.0090.00816.28
7.3.180.0060.00916.64
7.3.170.0110.00416.54
7.3.160.0110.00516.59
7.3.120.0040.00814.64
7.2.330.0120.01216.60
7.2.320.0060.01016.60
7.2.310.0060.01216.65
7.2.300.0090.00816.65
7.2.290.0060.01016.70
7.2.80.0000.01416.63
7.2.60.0060.00616.93
7.1.200.0060.00615.59
7.1.70.0630.01015.08
7.1.60.0520.01715.36
7.1.50.0530.01815.13
7.1.40.0660.01715.08
7.1.30.0500.01215.08
7.1.20.0480.00315.08
7.1.10.0510.01015.08
7.1.00.0450.00815.08
7.0.200.0480.01215.08
7.0.190.0520.01015.08
7.0.180.0640.01015.08
7.0.170.0620.00715.08
7.0.160.0470.00815.08
7.0.150.0530.00915.08
7.0.140.0480.00315.08
7.0.130.0440.01015.08
7.0.120.0900.00715.08
7.0.110.0830.01015.08
7.0.100.0710.00715.08
7.0.90.0330.01015.08
7.0.80.0740.00615.08
7.0.70.0600.01015.08
7.0.60.0560.01015.08
7.0.50.0550.00715.08
7.0.40.0110.00715.08
7.0.30.0100.00515.08
7.0.20.0060.00915.08
7.0.10.0080.00415.08
7.0.00.0040.00815.08
5.6.300.0100.07020.82
5.6.290.0140.04120.93
5.6.280.0070.08720.83
5.6.270.0070.04720.88
5.6.260.0130.04620.95
5.6.250.0000.05021.02
5.6.240.0130.04920.95
5.6.230.0060.05120.88
5.6.220.0070.04620.80
5.6.210.0070.05220.79
5.6.200.0090.04721.02
5.6.190.0030.05320.93
5.6.180.0140.07820.82
5.6.170.0070.04720.96
5.6.160.0110.04321.05
5.6.150.0070.04320.82
5.6.140.0030.06220.93
5.6.130.0000.05020.76
5.6.120.0160.03920.85
5.6.110.0040.04620.85
5.6.100.0090.03820.91
5.6.90.0070.04220.82
5.6.80.0040.04120.33
5.6.70.0090.04020.17
5.6.60.0070.04420.34
5.6.50.0000.04920.17
5.6.40.0070.04820.18
5.6.30.0060.04520.35
5.6.20.0060.04020.33
5.6.10.0100.03820.09
5.6.00.0000.04420.23
5.5.380.0130.03317.51
5.5.370.0030.07717.50
5.5.360.0000.05217.54
5.5.350.0110.03617.42
5.5.340.0070.03918.07
5.5.330.0070.04618.00
5.5.320.0060.04917.91
5.5.310.0070.04917.77
5.5.300.0000.05818.11
5.5.290.0030.04217.83
5.5.280.0070.04617.94
5.5.270.0120.03818.11
5.5.260.0090.03517.83
5.5.250.0070.04317.73
5.5.240.0000.04417.15
5.5.230.0060.03917.32
5.5.220.0060.04517.43
5.5.210.0070.03917.35
5.5.200.0040.04017.13
5.5.190.0070.04817.34
5.5.180.0120.03417.32
5.5.160.0030.04117.32
5.5.150.0170.04517.41
5.5.140.0240.04117.38
5.5.130.0000.04617.31
5.5.120.0070.03917.40
5.5.110.0030.05517.26
5.5.100.0070.04817.34
5.5.90.0030.03717.22
5.5.80.0090.03717.08
5.5.70.0150.03117.02
5.5.60.0030.04117.18
5.5.50.0000.04517.01
5.5.40.0000.04117.14
5.5.30.0030.04317.12
5.5.20.0030.03817.22
5.5.10.0000.05716.98
5.5.00.0060.04217.00
5.4.450.0000.05419.44
5.4.440.0030.04119.30
5.4.430.0060.03919.30
5.4.420.0060.05419.31
5.4.410.0000.04219.13
5.4.400.0070.03619.22
5.4.390.0000.04419.03
5.4.380.0030.03818.98
5.4.370.0070.03819.18
5.4.360.0200.03919.22
5.4.350.0030.05019.11
5.4.340.0000.04718.86
5.4.320.0070.03919.02
5.4.310.0000.04219.03
5.4.300.0070.03619.18
5.4.290.0060.03718.86
5.4.280.0000.04319.19
5.4.270.0030.04619.09
5.4.260.0070.05018.91
5.4.250.0070.03719.09
5.4.240.0030.04718.90
5.4.230.0000.06819.08
5.4.220.0030.03919.01
5.4.210.0070.04219.18
5.4.200.0060.03918.92
5.4.190.0130.03519.10
5.4.180.0040.04218.85
5.4.170.0030.04018.97
5.4.160.0070.03819.09
5.4.150.0030.04319.01
5.4.140.0110.03216.50
5.4.130.0000.03916.59
5.4.120.0030.03816.51
5.4.110.0000.03916.36
5.4.100.0030.03516.52
5.4.90.0030.03816.70
5.4.80.0000.05016.54
5.4.70.0030.03416.53
5.4.60.0030.03916.68
5.4.50.0070.04016.64
5.4.40.0030.03516.41
5.4.30.0030.04216.68
5.4.20.0060.03516.49
5.4.10.0000.04516.68
5.4.00.0070.03315.84
5.3.290.0000.04415.08
5.3.280.0040.03715.08
5.3.270.0060.04715.08
5.3.260.0040.03715.08
5.3.250.0000.03815.08
5.3.240.0030.03915.08
5.3.230.0030.03615.08
5.3.220.0000.03915.08
5.3.210.0060.04315.08
5.3.200.0100.02915.08
5.3.190.0000.04015.08
5.3.180.0030.03615.08
5.3.170.0040.03515.08
5.3.160.0060.03415.08
5.3.150.0060.03915.08
5.3.140.0000.04215.08
5.3.130.0070.03415.08
5.3.120.0030.03915.08
5.3.110.0040.04215.08
5.3.100.0040.03615.08
5.3.90.0070.03415.08
5.3.80.0040.04015.08
5.3.70.0070.03315.08
5.3.60.0000.04115.08
5.3.50.0090.03315.08
5.3.40.0070.03315.08
5.3.30.0030.03715.08
5.3.20.0100.02915.08
5.3.10.0070.03115.08
5.3.00.0060.03515.08
5.2.170.0000.05015.08
5.2.160.0090.02915.08
5.2.150.0000.03415.08
5.2.140.0060.03215.08
5.2.130.0030.02715.08
5.2.120.0090.02815.08
5.2.110.0070.02715.08
5.2.100.0090.03315.08
5.2.90.0030.02915.08
5.2.80.0030.03115.08
5.2.70.0070.03615.08
5.2.60.0030.03815.08
5.2.50.0040.03115.08
5.2.40.0030.03115.08
5.2.30.0030.03015.08
5.2.20.0090.02815.08
5.2.10.0000.03515.08
5.2.00.0000.03615.08
5.1.60.0040.03215.08
5.1.50.0220.02615.08
5.1.40.0030.03415.08
5.1.30.0030.03015.08
5.1.20.0000.02915.08
5.1.10.0030.02715.08
5.1.00.0060.03215.09
5.0.50.0060.01815.09
5.0.40.0000.02215.09
5.0.30.0000.03215.09
5.0.20.0030.02215.09
5.0.10.0210.01215.09
5.0.00.0030.03015.09
4.4.90.0050.01215.08
4.4.80.0000.02215.08
4.4.70.0000.02015.08
4.4.60.0000.01815.08
4.4.50.0000.02115.08
4.4.40.0030.02615.08
4.4.30.0040.01415.08
4.4.20.0050.01415.08
4.4.10.0000.01615.09
4.4.00.0000.02815.09
4.3.110.0030.01515.09
4.3.100.0030.01715.09
4.3.90.0040.01815.09
4.3.80.0040.02515.09
4.3.70.0030.01615.09
4.3.60.0000.01815.09
4.3.50.0000.02315.09
4.3.40.0000.02715.09
4.3.30.0040.01415.09
4.3.20.0000.01715.09
4.3.10.0030.01515.09
4.3.00.0030.01415.09

preferences:
41.84 ms | 401 KiB | 5 Q