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 "; // 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); // 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.0150.00318.22
8.3.50.0280.00421.93
8.3.40.0110.00418.91
8.3.30.0060.00918.88
8.3.20.0070.00020.34
8.3.10.0000.00723.57
8.3.00.0080.00019.67
8.2.180.0150.00616.63
8.2.170.0170.00322.96
8.2.160.0130.00322.25
8.2.150.0070.00024.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0000.00821.10
8.2.110.0090.00020.51
8.2.100.0120.00017.72
8.2.90.0080.00019.05
8.2.80.0050.00317.97
8.2.70.0080.00017.63
8.2.60.0000.00917.91
8.2.50.0050.00318.07
8.2.40.0040.00418.16
8.2.30.0040.00418.07
8.2.20.0040.00417.75
8.2.10.0000.00818.13
8.2.00.0000.00817.80
8.1.280.0030.01125.92
8.1.270.0090.00023.88
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00622.18
8.1.230.0070.00417.42
8.1.220.0060.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.23
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0030.00518.66
8.1.160.0040.00421.87
8.1.150.0000.00818.75
8.1.140.0000.00817.39
8.1.130.0000.00817.83
8.1.120.0040.00417.32
8.1.110.0000.00717.41
8.1.100.0000.01117.46
8.1.90.0000.00717.36
8.1.80.0030.00317.41
8.1.70.0070.00017.28
8.1.60.0040.00417.36
8.1.50.0030.00517.56
8.1.40.0060.00317.50
8.1.30.0050.00317.56
8.1.20.0040.00417.50
8.1.10.0040.00417.45
8.1.00.0030.00617.50
8.0.300.0000.00818.77
8.0.290.0000.00816.75
8.0.280.0040.00418.44
8.0.270.0070.00016.82
8.0.260.0030.00317.08
8.0.250.0030.00316.83
8.0.240.0040.00416.85
8.0.230.0040.00416.96
8.0.220.0070.00016.79
8.0.210.0030.00316.91
8.0.200.0030.00316.97
8.0.190.0070.00016.90
8.0.180.0070.00016.95
8.0.170.0080.00016.85
8.0.160.0000.00816.86
8.0.150.0000.00816.88
8.0.140.0050.00316.89
8.0.130.0050.00013.32
8.0.120.0040.00416.89
8.0.110.0000.00816.89
8.0.100.0000.00716.85
8.0.90.0030.00316.88
8.0.80.0030.01616.84
8.0.70.0030.00516.87
8.0.60.0030.00516.96
8.0.50.0040.00416.81
8.0.30.0070.01516.93
8.0.20.0120.01017.40
8.0.10.0050.00316.96
8.0.00.0100.00916.66
7.4.330.0000.00515.09
7.4.320.0060.00016.47
7.4.300.0030.00316.46
7.4.290.0070.00016.59
7.4.280.0070.00016.51
7.4.270.0040.00416.43
7.4.260.0040.00416.39
7.4.250.0020.00516.59
7.4.240.0030.00316.51
7.4.230.0070.00016.39
7.4.220.0090.00916.52
7.4.210.0100.00316.70
7.4.200.0080.00016.69
7.4.160.0090.00616.62
7.4.150.0070.01017.40
7.4.140.0110.00817.86
7.4.130.0140.00716.55
7.4.120.0160.00316.46
7.4.110.0070.01016.50
7.4.100.0070.01216.41
7.4.90.0150.00316.57
7.4.80.0100.00919.39
7.4.70.0140.00916.77
7.4.60.0090.00916.58
7.4.50.0000.00916.46
7.4.40.0060.00916.64
7.4.30.0030.01316.75
7.4.00.0070.01114.88
7.3.330.0060.00012.99
7.3.320.0000.00513.15
7.3.310.0070.00016.09
7.3.300.0030.00616.25
7.3.290.0110.00416.33
7.3.280.0070.01216.31
7.3.270.0140.00417.40
7.3.260.0090.01016.46
7.3.250.0090.01216.35
7.3.240.0090.00616.25
7.3.230.0060.00916.39
7.3.210.0030.01416.26
7.3.200.0070.01019.39
7.3.190.0080.01316.42
7.3.180.0060.01016.22
7.3.170.0130.00316.60
7.3.160.0130.00816.19
7.3.120.0000.01514.63
7.2.330.0000.01916.55
7.2.320.0130.00316.50
7.2.310.0030.01416.65
7.2.300.0090.00616.66
7.2.290.0060.01016.33
7.2.60.0220.01016.78
7.1.200.0000.01415.82
7.1.100.0090.00618.36
7.1.70.0000.00717.30
7.1.60.0090.01219.70
7.1.50.0090.00616.89
7.1.00.0070.07022.35
7.0.200.0160.00016.74
7.0.140.0000.07722.18
7.0.60.0070.08719.95
7.0.50.0070.03717.99
7.0.40.0100.06020.03
7.0.30.0200.04320.02
7.0.20.0370.06020.18
7.0.10.0200.06320.18
7.0.00.0070.06720.07
5.6.280.0070.07020.81
5.6.210.0170.07020.52
5.6.200.0070.07718.29
5.6.190.0130.07720.35
5.6.180.0000.07020.46
5.6.170.0130.04720.42
5.6.160.0000.04720.55
5.6.150.0100.05318.18
5.6.140.0170.05018.17
5.6.130.0070.04018.11
5.6.120.0100.05321.16
5.6.110.0100.06321.07
5.6.100.0030.06321.03
5.6.90.0100.04721.11
5.6.80.0130.05020.60
5.6.70.3930.04020.40
5.5.350.0070.08020.43
5.5.340.0070.08318.02
5.5.330.0030.07720.23
5.5.320.0300.07320.32
5.5.310.0300.06320.24
5.5.300.0130.07317.89
5.5.290.0070.05717.99
5.5.280.0100.07721.04
5.5.270.0170.03020.95
5.5.260.0100.07320.83
5.5.250.0070.08720.52
5.5.240.0100.06720.23
5.4.450.0300.05043.91
5.4.440.0470.04043.90
5.4.430.0930.03319.21
5.4.420.0830.06019.09
5.4.410.0870.04019.43
5.4.400.0200.04043.93
5.4.390.0270.04743.92
5.4.380.0200.04718.71
5.4.370.0100.05318.59
5.4.360.0170.04718.59
5.4.350.0270.04018.61
5.4.340.0100.05018.70
5.4.320.0070.04212.46
5.4.310.0060.04012.46
5.4.300.0060.04212.46
5.4.290.0040.03912.45
5.4.280.0080.03312.35
5.4.270.0040.03812.35
5.4.260.0080.03912.35
5.4.250.0050.04512.35
5.4.240.0060.04312.35
5.4.230.0050.04312.34
5.4.220.0090.04412.34
5.4.210.0030.03812.34
5.4.200.0080.03612.34
5.4.190.0050.03712.34
5.4.180.0040.03712.34
5.4.170.0060.04312.35
5.4.160.0060.03512.34
5.4.150.0070.04312.34
5.4.140.0090.04512.02
5.4.130.0050.03612.02
5.4.120.0050.03511.97
5.4.110.0070.03511.97
5.4.100.0070.04711.96
5.4.90.0050.03811.97
5.4.80.0050.04111.96
5.4.70.0070.04011.96
5.4.60.0080.03311.97
5.4.50.0030.03811.96
5.4.40.0100.03711.95
5.4.30.0070.03411.95
5.4.20.0040.03811.95
5.4.10.0080.03311.95
5.4.00.0040.03711.45
5.3.290.0060.03812.80
5.3.280.0050.04312.71
5.3.270.0100.03712.73
5.3.260.0040.04312.72
5.3.250.0070.03612.72
5.3.240.0050.03712.72
5.3.230.0070.04412.71
5.3.220.0070.04312.68
5.3.210.0060.05312.68
5.3.200.0040.04212.68
5.3.190.0060.03712.68
5.3.180.0140.03712.67
5.3.170.0100.03212.66
5.3.160.0100.03912.67
5.3.150.0060.03712.68
5.3.140.0090.03412.66
5.3.130.0100.05012.66
5.3.120.0020.04212.66
5.3.110.0040.04012.66
5.3.100.0050.03712.12
5.3.90.0070.04312.08
5.3.80.0050.03712.07
5.3.70.0050.05412.07
5.3.60.0060.03612.06
5.3.50.0040.04712.00
5.3.40.0080.04712.00
5.3.30.0020.05111.95
5.3.20.0030.03811.73
5.3.10.0050.03511.69
5.3.00.0050.03611.68
5.2.170.0070.0299.18
5.2.160.0050.0399.18
5.2.150.0050.0409.18
5.2.140.0050.0339.18
5.2.130.0070.0279.14
5.2.120.0040.0309.14
5.2.110.0060.0299.15
5.2.100.0060.0289.14
5.2.90.0060.0279.14
5.2.80.0070.0319.14
5.2.70.0080.0289.14
5.2.60.0050.0349.10
5.2.50.0060.0289.07
5.2.40.0060.0279.04
5.2.30.0060.0289.01
5.2.20.0040.0299.00
5.2.10.0050.0278.92
5.2.00.0070.0278.79
5.1.60.0060.0218.07
5.1.50.0060.0238.07
5.1.40.0060.0228.04
5.1.30.0040.0348.39
5.1.20.0060.0308.41
5.1.10.0040.0268.15
5.1.00.0040.0268.14
5.0.50.0020.0226.63
5.0.40.0050.0186.50
5.0.30.0050.0296.31
5.0.20.0030.0206.27
5.0.10.0040.0246.25
5.0.00.0030.0306.25
4.4.90.0040.0144.78
4.4.80.0040.0174.75
4.4.70.0050.0174.76
4.4.60.0020.0164.75
4.4.50.0040.0144.77
4.4.40.0030.0244.71
4.4.30.0040.0244.76
4.4.20.0040.0144.84
4.4.10.0020.0164.85
4.4.00.0030.0244.76
4.3.110.0050.0324.67
4.3.100.0030.0224.67
4.3.90.0040.0154.63
4.3.80.0030.0244.58
4.3.70.0040.0134.63
4.3.60.0020.0154.63
4.3.50.0020.0174.63
4.3.40.0040.0234.54
4.3.30.0040.0193.30
4.3.20.0020.0203.27
4.3.10.0030.0183.23
4.3.00.0070.01743.92

preferences:
45.75 ms | 401 KiB | 5 Q