3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tempToken = "d6ed1a3c-51ff-48ea-be11-f579401cd7dfe37634fb-c00b-4069-ba12-d6e99d1a3e44"; $clearText = "AuthToken=d6ed1a3c-51ff-48ea-be11-f579401cd7dfe37634fb-c00b-4069-ba12-d6e99d1a3e44&PayerId=3439125637430349&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);

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.0160.00016.63
8.3.50.0120.00521.91
8.3.40.0090.00618.92
8.3.30.0070.00719.09
8.3.20.0070.00720.37
8.3.10.0040.00423.69
8.3.00.0040.00419.53
8.2.180.0120.00618.28
8.2.170.0120.00322.96
8.2.160.0100.00720.57
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00420.98
8.2.110.0030.00622.25
8.2.100.0110.00018.03
8.2.90.0040.00419.21
8.2.80.0040.00417.97
8.2.70.0000.00817.63
8.2.60.0060.00317.91
8.2.50.0030.00618.07
8.2.40.0040.00418.22
8.2.30.0000.00818.26
8.2.20.0000.00817.68
8.2.10.0030.00517.93
8.2.00.0060.00317.76
8.1.280.0070.00725.92
8.1.270.0060.00323.96
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00522.20
8.1.230.0000.01119.02
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.36
8.1.190.0030.00617.35
8.1.180.0000.00818.10
8.1.170.0000.00918.63
8.1.160.0000.00722.01
8.1.150.0040.00418.93
8.1.140.0000.00717.46
8.1.130.0030.00317.75
8.1.120.0000.00717.44
8.1.110.0040.00417.46
8.1.100.0000.00717.37
8.1.90.0040.00417.42
8.1.80.0040.00417.50
8.1.70.0030.00317.39
8.1.60.0090.00417.64
8.1.50.0030.00617.43
8.1.40.0040.00417.54
8.1.30.0000.00817.66
8.1.20.0050.00317.51
8.1.10.0000.00717.59
8.1.00.0050.00317.52
8.0.300.0040.00418.77
8.0.290.0000.00716.88
8.0.280.0030.00318.45
8.0.270.0000.00717.20
8.0.260.0030.00317.28
8.0.250.0000.00717.04
8.0.240.0000.00716.96
8.0.230.0040.00416.90
8.0.220.0030.00316.98
8.0.210.0000.00716.99
8.0.200.0030.00316.98
8.0.190.0000.00717.05
8.0.180.0040.00417.07
8.0.170.0040.00416.95
8.0.160.0040.00416.85
8.0.150.0050.00216.93
8.0.140.0020.00516.83
8.0.130.0000.00613.38
8.0.120.0050.00316.82
8.0.110.0040.00416.86
8.0.100.0000.00716.95
8.0.90.0020.00516.85
8.0.80.0070.01016.95
8.0.70.0040.00416.84
8.0.60.0040.00416.75
8.0.50.0040.00417.00
8.0.30.0060.01317.19
8.0.20.0100.01017.40
8.0.10.0050.00316.90
8.0.00.0110.01116.69
7.4.330.0000.00615.00
7.4.320.0000.00616.41
7.4.300.0000.00716.65
7.4.290.0030.00316.65
7.4.280.0000.00916.57
7.4.270.0030.00316.61
7.4.260.0050.00516.45
7.4.250.0080.00016.57
7.4.240.0040.00416.42
7.4.230.0040.00416.51
7.4.220.0110.00716.62
7.4.210.0040.01316.57
7.4.200.0040.00416.70
7.4.160.0100.01016.48
7.4.150.0120.01217.40
7.4.140.0100.00717.86
7.4.130.0160.01516.57
7.4.120.0100.00716.61
7.4.110.0100.00716.40
7.4.100.0200.00416.54
7.4.90.0160.00316.49
7.4.80.0070.01019.39
7.4.70.0090.01216.82
7.4.60.0060.01116.64
7.4.50.0040.00416.38
7.4.40.0070.01416.58
7.4.30.0070.01016.56
7.4.10.0060.01515.13
7.4.00.0030.01214.81
7.3.330.0000.00613.21
7.3.320.0070.00013.02
7.3.310.0000.00716.32
7.3.300.0030.00616.29
7.3.290.0030.01616.22
7.3.280.0080.01016.32
7.3.270.0080.00817.40
7.3.260.0090.01216.34
7.3.250.0130.00716.38
7.3.240.0140.00416.46
7.3.230.0100.01316.39
7.3.210.0060.01116.32
7.3.200.0110.00719.39
7.3.190.0090.01316.52
7.3.180.0100.00716.49
7.3.170.0100.00516.30
7.3.160.0030.01216.45
7.3.130.0060.01114.61
7.3.120.0050.00814.90
7.3.110.0070.01114.95
7.3.100.0040.01115.04
7.3.90.0070.00715.00
7.3.80.0040.00914.71
7.3.70.0080.00814.52
7.3.60.0100.00714.89
7.3.50.0060.00914.43
7.3.40.0050.00514.66
7.3.30.0130.00314.85
7.3.20.0100.00716.55
7.3.10.0030.01416.34
7.3.00.0000.01516.43
7.2.330.0130.01016.54
7.2.320.0140.00316.66
7.2.310.0040.01116.39
7.2.300.0160.00016.36
7.2.290.0120.00416.33
7.2.260.0070.01115.06
7.2.250.0080.00815.18
7.2.240.0090.00614.95
7.2.230.0090.00314.56
7.2.220.0060.00915.00
7.2.210.0070.01014.76
7.2.200.0050.00515.15
7.2.190.0090.00614.78
7.2.180.0070.00714.73
7.2.170.0070.00414.86
7.2.160.0030.00715.04
7.2.150.0090.00916.88
7.2.140.0080.00816.99
7.2.130.0090.00916.62
7.2.120.0090.00617.01
7.2.110.0030.00616.88
7.2.100.0040.00816.63
7.2.90.0060.01316.86
7.2.80.0120.00616.78
7.2.70.0040.01116.71
7.2.60.0060.00916.90
7.2.50.0000.01516.55
7.2.40.0110.00716.96
7.2.30.0060.00616.71
7.2.20.0040.01216.86
7.2.10.0110.00016.64
7.2.00.0030.00818.16
7.1.330.0030.01315.77
7.1.320.0030.01115.84
7.1.310.0040.01115.74
7.1.300.0070.01015.81
7.1.290.0060.00615.76
7.1.280.0090.00415.57
7.1.270.0090.00315.68
7.1.260.0030.01215.81
7.1.250.0120.00315.80
7.1.240.0070.00715.69
7.1.230.0060.00615.56
7.1.220.0070.00715.62
7.1.210.0080.01115.87
7.1.200.0070.00715.68
7.1.190.0030.01015.83
7.1.180.0130.00615.47
7.1.170.0110.00715.81
7.1.160.0110.00415.63
7.1.150.0100.00715.71
7.1.140.0040.00415.76
7.1.130.0030.00915.77
7.1.120.0030.00615.89
7.1.110.0120.00315.80
7.1.100.0060.00516.85
7.1.90.0000.01315.70
7.1.80.0030.01215.80
7.1.70.0030.00916.37
7.1.60.0050.01317.76
7.1.50.0090.00716.26
7.1.40.0060.00615.76
7.1.30.0030.01415.69
7.1.20.0000.01315.75
7.1.10.0040.01115.80
7.1.00.0020.04519.02
7.0.330.0100.00715.37
7.0.320.0070.00715.34
7.0.310.0060.01215.40
7.0.300.0090.00915.56
7.0.290.0030.01015.20
7.0.280.0000.01115.29
7.0.270.0080.00415.28
7.0.260.0030.00615.49
7.0.250.0000.01115.28
7.0.240.0110.00315.32
7.0.230.0000.01015.57
7.0.220.0000.01415.50
7.0.210.0070.00715.19
7.0.200.0060.00615.93
7.0.190.0070.00715.59
7.0.180.0030.01015.54
7.0.170.0080.00415.41
7.0.160.0080.00815.17
7.0.150.0060.00615.40
7.0.140.0040.03718.70
7.0.130.0000.01515.39
7.0.120.0080.00815.37
7.0.110.0030.01015.45
7.0.100.0000.01215.55
7.0.90.0000.01515.17
7.0.80.0030.01015.36
7.0.70.0120.00615.48
7.0.60.0050.04817.78
7.0.50.0070.02416.65
7.0.40.0070.04416.79
7.0.30.0310.03816.71
7.0.20.0150.02516.83
7.0.10.0110.02816.76
7.0.00.0030.04616.73
5.6.400.0070.00714.27
5.6.390.0070.00714.17
5.6.380.0040.01114.18
5.6.370.0030.01414.11
5.6.360.0090.00614.14
5.6.350.0040.00714.01
5.6.340.0000.01213.99
5.6.330.0130.00314.13
5.6.320.0060.00914.56
5.6.310.0090.00614.31
5.6.300.0090.00014.27
5.6.290.0000.01514.27
5.6.280.0070.04217.62
5.6.270.0060.00614.47
5.6.260.0000.01014.26
5.6.250.0060.00314.27
5.6.240.0100.00314.16
5.6.230.0090.00614.05
5.6.220.0060.01214.49
5.6.210.0060.04217.50
5.6.200.0100.03016.21
5.6.190.0050.02817.49
5.6.180.2120.02417.25
5.6.170.0180.04117.41
5.6.160.0020.02917.24
5.6.150.0130.02216.20
5.6.140.0120.02816.11
5.6.130.0030.02616.04
5.6.120.0080.03017.78
5.6.110.0080.03617.51
5.6.100.0080.04617.70
5.6.90.0110.03517.55
5.6.80.0080.04017.38
5.6.70.0040.00714.28
5.6.60.0080.00613.96
5.6.50.0030.01014.36
5.6.40.0110.00413.90
5.6.30.0000.01214.34
5.6.20.0100.00714.34
5.6.10.0040.01114.31
5.6.00.0030.01014.11
5.5.380.0000.01014.36
5.5.370.0040.01113.91
5.5.360.0060.01213.99
5.5.350.0150.04417.23
5.5.340.0090.04316.12
5.5.330.0060.03617.23
5.5.320.0130.02717.26
5.5.310.0100.02217.25
5.5.300.0070.04516.10
5.5.290.0060.03416.00
5.5.280.0100.04217.52
5.5.270.0020.04117.55
5.5.260.0080.04517.48
5.5.250.0170.03117.47
5.5.240.2110.02117.05
5.5.230.0090.00314.04
5.5.220.0040.00414.06
5.5.210.0030.01014.39
5.5.200.0100.00313.96
5.5.190.0100.00314.23
5.5.180.0090.00914.21
5.5.170.0030.00614.22
5.5.160.0070.00714.23
5.5.150.0000.01414.21
5.5.140.0030.00714.14
5.5.130.0030.00614.27
5.5.120.0070.00714.05
5.5.110.0070.00714.32
5.5.100.0090.00614.24
5.5.90.0030.00914.37
5.5.80.0060.00613.94
5.5.70.0060.00914.05
5.5.60.0030.01013.80
5.5.50.0040.00813.96
5.5.40.0030.01014.04
5.5.30.0030.01014.19
5.5.20.0080.00414.23
5.5.10.0110.00414.08
5.5.00.0100.00314.45
5.4.450.0180.02814.99
5.4.440.0100.02815.20
5.4.430.0280.02515.24
5.4.420.0290.02115.30
5.4.410.0250.01815.08
5.4.400.0160.02027.75
5.4.390.0080.02827.44
5.4.380.0070.03014.85
5.4.370.0090.02714.64
5.4.360.0080.03414.86
5.4.350.0080.02814.91
5.4.340.0140.02414.77
5.4.330.0050.00311.15
5.4.320.0080.02211.59
5.4.310.0060.02511.76
5.4.300.0040.02011.78
5.4.290.0050.02511.66
5.4.280.0060.01911.50
5.4.270.0050.02011.52
5.4.260.0080.02011.53
5.4.250.0080.02111.75
5.4.240.0060.02211.62
5.4.230.0080.02311.65
5.4.220.0030.02311.68
5.4.210.0060.02011.59
5.4.200.0030.02311.51
5.4.190.0050.02211.58
5.4.180.0060.02311.71
5.4.170.0020.02311.62
5.4.160.0050.02111.50
5.4.150.0060.02211.44
5.4.140.0050.02111.48
5.4.130.0060.02011.58
5.4.120.0060.02011.46
5.4.110.0050.01911.45
5.4.100.0040.02011.47
5.4.90.0050.02111.37
5.4.80.0090.02411.34
5.4.70.0070.01911.45
5.4.60.0070.01811.44
5.4.50.0020.02211.50
5.4.40.0070.02211.32
5.4.30.0030.02611.38
5.4.20.0050.02011.49
5.4.10.0030.02011.47
5.4.00.0040.02211.15
5.3.290.0070.02311.70
5.3.280.0040.02311.52
5.3.270.0060.01911.48
5.3.260.0090.01911.57
5.3.250.0040.02011.59
5.3.240.0030.02211.39
5.3.230.0060.02511.54
5.3.220.0060.02311.46
5.3.210.0060.02311.40
5.3.200.0050.02011.44
5.3.190.0060.02211.54
5.3.180.0020.02511.66
5.3.170.0060.01911.49
5.3.160.0070.01911.63
5.3.150.0040.02311.62
5.3.140.0050.02111.60
5.3.130.0060.02111.45
5.3.120.0020.02311.57
5.3.110.0050.02211.57
5.3.100.0090.01811.28
5.3.90.0050.02011.19
5.3.80.0040.02211.09
5.3.70.0040.02211.24
5.3.60.0070.01811.24
5.3.50.0020.02311.25
5.3.40.0060.02011.25
5.3.30.0060.02111.16
5.3.20.0040.01911.04
5.3.10.0090.01711.00
5.3.00.0020.02410.98
5.2.170.0070.0289.19
5.2.160.0030.0309.19
5.2.150.0070.0279.19
5.2.140.0060.0299.18
5.2.130.0030.0309.14
5.2.120.0040.0289.14
5.2.110.0020.0329.15
5.2.100.0050.0279.15
5.2.90.0030.0309.14
5.2.80.0050.0339.14
5.2.70.0030.0399.14
5.2.60.0100.0419.10
5.2.50.0070.0279.06
5.2.40.0050.0289.04
5.2.30.0050.0349.02
5.2.20.0060.0289.04
5.2.10.0070.0268.94
5.2.00.0020.0338.80
5.1.60.0020.0288.08
5.1.50.0050.0238.08
5.1.40.0060.0228.06
5.1.30.0040.0278.41
5.1.20.0050.0318.43
5.1.10.0030.0328.16
5.1.00.0060.0258.16
5.0.50.0000.0256.64
5.0.40.0030.0206.51
5.0.30.0050.0306.32
5.0.20.0010.0226.29
5.0.10.0040.0246.27
5.0.00.0040.0306.26
4.4.90.0030.0184.77
4.4.80.0000.0204.76
4.4.70.0000.0214.75
4.4.60.0050.0164.76
4.4.50.0020.0174.77
4.4.40.0030.0264.71
4.4.30.0030.0154.76
4.4.20.0030.0154.84
4.4.10.0020.0164.85
4.4.00.0030.0244.76
4.3.110.0030.0174.67
4.3.100.0020.0154.67
4.3.90.0050.0124.63
4.3.80.0000.0274.59
4.3.70.0040.0194.63
4.3.60.0060.0164.63
4.3.50.0040.0184.63
4.3.40.0030.0274.54
4.3.30.0030.0213.31
4.3.20.0040.0183.29
4.3.10.0040.0173.25
4.3.00.0000.01743.92

preferences:
42.69 ms | 401 KiB | 5 Q