3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tempToken = "1b76364f-ce5a-435a-94ad-8235e379c452972e0d26-c8da-4289-ab14-8c01165106e4"; $clearText = "AuthToken=1b76364f-ce5a-435a-94ad-8235e379c452972e0d26-c8da-4289-ab14-8c01165106e4&PayerId=7197202092114251&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(chr($pad), $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.70.0120.00318.55
8.3.60.0080.01116.63
8.3.50.0120.00521.92
8.3.40.0060.00818.87
8.3.30.0140.00319.08
8.3.20.0070.00020.16
8.3.10.0080.00023.48
8.3.00.0040.00419.66
8.2.180.0140.00716.63
8.2.170.0100.00322.96
8.2.160.0130.00020.43
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0080.00020.92
8.2.110.0000.00822.11
8.2.100.0080.00418.09
8.2.90.0000.00919.22
8.2.80.0060.00317.97
8.2.70.0080.00017.50
8.2.60.0080.00017.93
8.2.50.0050.00318.07
8.2.40.0030.00619.82
8.2.30.0050.00218.17
8.2.20.0040.00417.55
8.2.10.0050.00317.96
8.2.00.0000.00819.58
8.1.280.0120.00325.92
8.1.270.0030.00524.01
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00723.95
8.1.230.0080.00318.99
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.13
8.1.190.0000.00817.23
8.1.180.0060.00318.10
8.1.170.0030.00518.46
8.1.160.0040.00422.05
8.1.150.0070.00018.65
8.1.140.0020.00517.38
8.1.130.0030.00317.80
8.1.120.0040.00417.37
8.1.110.0040.00417.26
8.1.100.0070.00017.38
8.1.90.0070.00017.28
8.1.80.0030.00317.44
8.1.70.0030.00317.36
8.1.60.0030.00617.39
8.1.50.0080.00017.40
8.1.40.0050.00317.43
8.1.30.0000.00817.59
8.1.20.0000.00717.64
8.1.10.0040.00417.57
8.1.00.0000.00917.47
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.27
8.0.270.0000.00717.19
8.0.260.0000.00617.19
8.0.250.0030.00317.00
8.0.240.0030.00616.95
8.0.230.0030.00316.84
8.0.220.0030.00316.78
8.0.210.0060.00016.89
8.0.200.0030.00516.83
8.0.190.0040.00416.82
8.0.180.0000.00816.95
8.0.170.0040.00416.79
8.0.160.0030.00316.88
8.0.150.0040.00416.93
8.0.140.0000.00816.89
8.0.130.0000.00613.30
8.0.120.0080.00016.95
8.0.110.0050.00216.80
8.0.100.0000.00716.93
8.0.90.0020.00516.83
8.0.80.0060.00916.88
8.0.70.0000.00716.88
8.0.60.0000.00816.77
8.0.50.0000.00816.84
8.0.30.0130.00716.97
8.0.20.0090.01417.40
8.0.10.0040.00417.09
8.0.00.0100.00816.68
7.4.330.0050.00015.01
7.4.320.0030.00316.55
7.4.300.0060.00016.60
7.4.290.0000.00716.61
7.4.280.0040.00416.59
7.4.270.0030.00416.40
7.4.260.0070.00016.38
7.4.250.0040.00416.56
7.4.240.0020.00516.50
7.4.230.0050.00216.69
7.4.220.0110.01016.68
7.4.210.0040.01116.61
7.4.200.0030.00316.70
7.4.160.0130.00316.48
7.4.150.0200.00017.40
7.4.140.0080.00817.86
7.4.130.0060.00916.47
7.4.120.0120.00516.56
7.4.110.0110.01116.47
7.4.100.0120.00616.45
7.4.90.0070.01116.32
7.4.80.0130.01019.39
7.4.70.0090.00916.47
7.4.60.0090.00816.44
7.4.50.0090.00016.24
7.4.40.0120.00416.55
7.4.30.0030.01316.39
7.4.10.0060.01214.64
7.4.00.0080.00815.07
7.3.330.0000.00613.14
7.3.320.0000.00613.20
7.3.310.0070.00016.32
7.3.300.0080.00016.09
7.3.290.0150.00016.23
7.3.280.0050.01116.29
7.3.270.0090.01317.40
7.3.260.0190.00316.50
7.3.250.0070.01016.38
7.3.240.0070.01016.22
7.3.230.0070.01016.39
7.3.210.0070.01016.52
7.3.200.0000.01519.39
7.3.190.0040.01216.52
7.3.180.0140.00416.26
7.3.170.0120.00416.34
7.3.160.0060.01516.24
7.3.130.0110.00814.82
7.3.120.0060.01114.81
7.3.110.0050.01014.89
7.3.100.0100.00314.64
7.3.90.0040.00614.74
7.3.80.0070.01014.92
7.3.70.0040.00914.86
7.3.60.0060.00614.61
7.3.50.0060.00814.67
7.3.40.0030.01414.74
7.3.30.0030.01214.86
7.3.20.0050.01016.65
7.3.10.0050.00916.49
7.3.00.0050.00716.52
7.2.330.0060.01316.66
7.2.320.0070.01016.33
7.2.310.0090.01316.55
7.2.300.0100.01016.61
7.2.290.0060.00916.39
7.2.260.0120.00315.13
7.2.250.0040.01414.95
7.2.240.0110.00615.13
7.2.230.0060.01114.83
7.2.220.0030.01014.99
7.2.210.0080.00714.91
7.2.200.0030.01014.81
7.2.190.0050.01115.01
7.2.180.0030.00915.06
7.2.170.0070.00914.65
7.2.160.0040.01415.14
7.2.150.0060.01316.65
7.2.140.0040.00816.68
7.2.130.0050.00816.72
7.2.120.0050.00616.80
7.2.110.0050.00916.88
7.2.100.0050.00816.61
7.2.90.0030.01116.84
7.2.80.0090.00616.93
7.2.70.0070.00616.74
7.2.60.0070.00616.85
7.2.50.0070.00716.60
7.2.40.0060.00716.83
7.2.30.0010.01116.75
7.2.20.0030.01016.72
7.2.10.0010.01216.83
7.2.00.0090.00517.47
7.1.330.0030.01015.57
7.1.320.0040.00915.50
7.1.310.0050.00715.87
7.1.300.0030.00915.93
7.1.290.0060.00815.63
7.1.280.0060.00315.59
7.1.270.0070.00815.64
7.1.260.0040.00915.61
7.1.250.0050.00615.62
7.1.240.0030.01015.83
7.1.230.0060.00615.85
7.1.220.0070.00715.57
7.1.210.0040.01115.46
7.1.200.0030.01015.78
7.1.190.0050.00315.82
7.1.180.0000.01415.89
7.1.170.0090.00015.70
7.1.160.0070.00715.66
7.1.150.0030.00615.65
7.1.140.0080.00415.51
7.1.130.0070.01115.63
7.1.120.0040.00815.87
7.1.110.0000.01415.89
7.1.100.0030.00916.67
7.1.90.0040.01115.91
7.1.80.0040.01115.58
7.1.70.0040.00416.40
7.1.60.0120.00817.73
7.1.50.0050.01416.27
7.1.40.0000.01415.80
7.1.30.0100.00715.86
7.1.20.0000.01015.64
7.1.10.0070.00715.82
7.1.00.0050.04919.12
7.0.330.0050.00315.50
7.0.320.0060.00615.43
7.0.310.0030.00715.11
7.0.300.0000.01115.44
7.0.290.0060.00315.54
7.0.280.0060.00815.45
7.0.270.0080.00815.38
7.0.260.0000.01515.20
7.0.250.0070.00715.30
7.0.240.0070.00715.58
7.0.230.0030.00715.50
7.0.220.0000.01615.27
7.0.210.0050.00815.50
7.0.200.0040.00816.04
7.0.190.0030.01215.22
7.0.180.0080.00815.47
7.0.170.0030.01315.47
7.0.160.0140.00015.38
7.0.150.0100.00315.18
7.0.140.0030.03818.84
7.0.130.0000.01615.54
7.0.120.0090.00315.51
7.0.110.0110.00315.50
7.0.100.0000.01315.51
7.0.90.0090.00315.31
7.0.80.0070.00715.20
7.0.70.0060.00615.24
7.0.60.0050.04617.72
7.0.50.0080.03916.81
7.0.40.0050.04916.73
7.0.30.0170.04216.83
7.0.20.0170.04216.75
7.0.10.0130.04216.88
7.0.00.0110.03616.66
5.6.400.0060.00613.85
5.6.390.0070.00714.21
5.6.380.0030.00714.37
5.6.370.0060.00614.41
5.6.360.0030.01014.18
5.6.350.0070.00714.06
5.6.340.0070.00414.32
5.6.330.0100.00614.32
5.6.320.0080.00814.02
5.6.310.0040.00813.98
5.6.300.0000.01214.00
5.6.290.0070.00714.46
5.6.280.0030.04517.56
5.6.270.0040.01413.89
5.6.260.0000.01213.98
5.6.250.0130.00014.18
5.6.240.0130.00314.38
5.6.230.0130.00314.09
5.6.220.0030.01014.27
5.6.210.0040.03917.32
5.6.200.0070.02416.16
5.6.190.0070.03217.15
5.6.180.0060.04117.35
5.6.170.0110.02117.25
5.6.160.0020.02917.33
5.6.150.0030.03516.11
5.6.140.0100.03516.07
5.6.130.0100.02016.21
5.6.120.0080.02217.61
5.6.110.0100.02017.56
5.6.100.0020.02717.58
5.6.90.0030.04917.70
5.6.80.0080.03317.34
5.6.70.0030.01014.26
5.6.60.0070.00713.98
5.6.50.0050.00514.06
5.6.40.0040.01113.97
5.6.30.0070.01013.90
5.6.20.0070.00713.86
5.6.10.0030.01014.16
5.6.00.0030.01013.99
5.5.380.0070.00713.81
5.5.370.0060.01014.07
5.5.360.0070.00414.15
5.5.350.0100.04017.35
5.5.340.0160.03515.86
5.5.330.0110.04017.12
5.5.320.0180.03817.04
5.5.310.0190.04017.27
5.5.300.0050.04715.93
5.5.290.0060.04016.11
5.5.280.0070.02617.38
5.5.270.0030.04817.59
5.5.260.0020.04017.56
5.5.250.0070.04517.27
5.5.240.0070.02516.99
5.5.230.0100.00314.07
5.5.220.0070.00713.76
5.5.210.0060.00613.71
5.5.200.0030.01614.07
5.5.190.0190.00013.66
5.5.180.0060.00614.13
5.5.170.0070.00714.06
5.5.160.0100.00314.06
5.5.150.0060.00613.89
5.5.140.0060.00913.88
5.5.130.0030.01014.01
5.5.120.0030.00713.61
5.5.110.0080.00313.92
5.5.100.0040.01113.93
5.5.90.0040.01113.94
5.5.80.0060.00713.86
5.5.70.0120.00314.00
5.5.60.0080.00013.85
5.5.50.0070.00713.95
5.5.40.0090.00613.67
5.5.30.0060.01214.02
5.5.20.0030.01014.32
5.5.10.0000.01314.18
5.5.00.0080.00413.88
5.4.450.0180.02416.15
5.4.440.0270.02415.93
5.4.430.0120.02216.17
5.4.420.0300.02216.08
5.4.410.0130.02315.95
5.4.400.0050.03028.35
5.4.390.0280.03028.32
5.4.380.0160.02315.66
5.4.370.0080.03115.65
5.4.360.0150.02315.68
5.4.350.0050.03315.70
5.4.340.0150.02215.71
5.4.330.0060.00312.71
5.4.320.0020.02612.59
5.4.310.0070.01912.59
5.4.300.0050.02112.59
5.4.290.0020.02212.58
5.4.280.0050.02412.53
5.4.270.0060.01812.53
5.4.260.0050.02112.53
5.4.250.0040.02312.53
5.4.240.0060.02212.54
5.4.230.0060.02312.53
5.4.220.0050.02212.53
5.4.210.0060.02012.53
5.4.200.0070.01912.53
5.4.190.0070.02312.53
5.4.180.0030.02212.53
5.4.170.0070.02012.53
5.4.160.0060.02312.53
5.4.150.0050.02112.53
5.4.140.0040.02112.37
5.4.130.0030.02212.36
5.4.120.0060.01912.34
5.4.110.0020.02312.34
5.4.100.0070.02112.34
5.4.90.0080.02012.34
5.4.80.0060.02312.34
5.4.70.0070.01912.34
5.4.60.0060.02012.34
5.4.50.0060.02112.34
5.4.40.0090.01812.33
5.4.30.0080.02012.33
5.4.20.0040.02212.33
5.4.10.0030.02212.33
5.4.00.0080.02012.08
5.3.290.0040.02212.76
5.3.280.0030.02212.71
5.3.270.0020.02612.72
5.3.260.0020.02612.72
5.3.250.0040.02312.72
5.3.240.0060.01912.72
5.3.230.0050.02412.71
5.3.220.0020.02512.70
5.3.210.0040.02312.70
5.3.200.0040.02212.70
5.3.190.0050.02112.69
5.3.180.0030.02312.70
5.3.170.0050.02212.69
5.3.160.0050.02212.69
5.3.150.0070.02212.69
5.3.140.0020.02512.69
5.3.130.0050.02212.69
5.3.120.0030.02412.69
5.3.110.0020.02512.68
5.3.100.0040.01912.42
5.3.90.0050.02512.40
5.3.80.0060.01912.39
5.3.70.0060.02212.39
5.3.60.0070.01812.39
5.3.50.0070.02012.36
5.3.40.0060.02112.36
5.3.30.0040.02212.33
5.3.20.0040.02312.22
5.3.10.0040.02112.20
5.3.00.0060.02112.20
5.2.170.0040.0329.19
5.2.160.0040.0319.19
5.2.150.0050.0319.19
5.2.140.0040.0369.19
5.2.130.0060.0279.14
5.2.120.0050.0289.14
5.2.110.0040.0339.16
5.2.100.0070.0279.14
5.2.90.0060.0289.15
5.2.80.0070.0289.14
5.2.70.0050.0299.14
5.2.60.0060.0349.10
5.2.50.0090.0249.07
5.2.40.0070.0259.04
5.2.30.0080.0259.02
5.2.20.0020.0319.00
5.2.10.0050.0378.92
5.2.00.0080.0348.79
5.1.60.0100.0258.07
5.1.50.0030.0258.07
5.1.40.0010.0288.04
5.1.30.0040.0258.39
5.1.20.0050.0258.41
5.1.10.0060.0278.15
5.1.00.0040.0258.14
5.0.50.0030.0216.63
5.0.40.0050.0186.50
5.0.30.0020.0336.31
5.0.20.0040.0186.27
5.0.10.0030.0206.25
5.0.00.0020.0326.25
4.4.90.0010.0174.78
4.4.80.0020.0164.75
4.4.70.0020.0164.76
4.4.60.0050.0204.75
4.4.50.0050.0174.77
4.4.40.0040.0254.71
4.4.30.0030.0144.76
4.4.20.0020.0164.84
4.4.10.0010.0174.85
4.4.00.0030.0304.76
4.3.110.0020.0164.67
4.3.100.0040.0224.66
4.3.90.0020.0144.63
4.3.80.0020.0244.58
4.3.70.0040.0134.63
4.3.60.0010.0154.63
4.3.50.0040.0194.63
4.3.40.0030.0234.54
4.3.30.0020.0153.30
4.3.20.0020.0183.28
4.3.10.0030.0143.23
4.3.00.0030.01343.92

preferences:
70.06 ms | 401 KiB | 5 Q