3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tempToken = "bb01d09c-c1a5-4e5a-8a50-d1d020aceb9b06ca2784-29fe-4214-9bd5-d3bcf81daf6b"; $clearText = "AuthToken=bb01d09c-c1a5-4e5a-8a50-d1d020aceb9b06ca2784-29fe-4214-9bd5-d3bcf81daf6b&PayerId=8283117399884257&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); echo strlen($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 strlen($encodedNameValueString) . "\n"; 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); echo $aes128; echo "\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.0150.00416.50
8.3.50.0100.00521.99
8.3.40.0120.00318.84
8.3.30.0090.00918.81
8.3.20.0080.00020.21
8.3.10.0040.00423.71
8.3.00.0000.00819.50
8.2.180.0060.01516.75
8.2.170.0140.00022.96
8.2.160.0140.00020.34
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0050.00320.79
8.2.110.0000.00922.25
8.2.100.0060.00620.41
8.2.90.0000.00818.34
8.2.80.0060.00317.97
8.2.70.0040.00417.90
8.2.60.0000.00818.04
8.2.50.0080.00018.10
8.2.40.0030.00518.00
8.2.30.0090.00018.12
8.2.20.0050.00217.73
8.2.10.0040.00418.05
8.2.00.0060.00319.59
8.1.280.0070.00725.92
8.1.270.0080.00023.88
8.1.260.0050.00226.35
8.1.250.0000.00728.09
8.1.240.0070.00323.96
8.1.230.0060.00919.17
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0030.00617.23
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0000.00818.56
8.1.160.0000.00821.97
8.1.150.0040.00418.90
8.1.140.0040.00417.38
8.1.130.0030.00317.43
8.1.120.0050.00317.39
8.1.110.0030.00517.32
8.1.100.0040.00417.34
8.1.90.0050.00217.47
8.1.80.0050.00217.44
8.1.70.0000.00717.43
8.1.60.0000.00817.63
8.1.50.0030.00517.57
8.1.40.0040.00417.51
8.1.30.0080.00017.55
8.1.20.0040.00417.55
8.1.10.0080.00017.58
8.1.00.0040.00417.46
8.0.300.0000.00819.78
8.0.290.0060.00316.88
8.0.280.0000.00718.49
8.0.270.0000.00717.29
8.0.260.0070.00016.88
8.0.250.0000.00717.02
8.0.240.0060.00316.96
8.0.230.0050.00317.03
8.0.220.0030.00316.97
8.0.210.0000.00716.97
8.0.200.0030.00316.96
8.0.190.0040.00417.02
8.0.180.0050.00317.03
8.0.170.0040.00416.96
8.0.160.0000.00716.86
8.0.150.0030.00316.94
8.0.140.0040.00416.94
8.0.130.0050.00013.46
8.0.120.0000.00816.98
8.0.110.0030.00416.84
8.0.100.0000.00816.88
8.0.90.0000.00716.76
8.0.80.0070.01016.97
8.0.70.0000.00716.98
8.0.60.0060.00316.95
8.0.50.0080.00016.78
8.0.30.0120.01416.99
8.0.20.0080.01117.40
8.0.10.0040.00417.02
8.0.00.0030.01716.83
7.4.330.0030.00315.06
7.4.320.0030.00316.45
7.4.300.0060.00016.44
7.4.290.0050.00216.50
7.4.280.0000.00716.48
7.4.270.0040.00416.41
7.4.260.0020.00516.40
7.4.250.0040.00416.61
7.4.240.0040.00416.50
7.4.230.0070.00016.30
7.4.220.0120.00616.54
7.4.210.0140.00616.45
7.4.200.0030.00316.39
7.4.160.0080.00816.36
7.4.150.0160.00817.40
7.4.140.0120.00517.86
7.4.130.0080.01116.56
7.4.120.0100.00716.44
7.4.110.0110.00716.29
7.4.100.0130.00316.57
7.4.90.0060.01016.70
7.4.80.0030.01919.39
7.4.70.0130.01016.69
7.4.60.0070.01416.77
7.4.50.0030.00616.43
7.4.40.0070.01016.67
7.4.30.0080.00816.43
7.4.00.0040.01215.07
7.3.330.0030.00313.21
7.3.320.0030.00313.22
7.3.310.0030.00316.15
7.3.300.0040.00416.34
7.3.290.0030.01416.34
7.3.280.0090.00916.36
7.3.270.0110.01117.40
7.3.260.0090.01216.55
7.3.250.0120.00516.28
7.3.240.0100.00716.34
7.3.230.0080.00816.57
7.3.210.0090.00816.59
7.3.200.0100.00619.39
7.3.190.0030.01216.27
7.3.180.0120.00316.39
7.3.170.0090.00616.54
7.3.160.0130.00316.59
7.3.120.0050.01014.89
7.3.110.0050.01214.80
7.3.100.0050.00914.74
7.3.90.0020.01414.79
7.3.80.0060.00514.68
7.3.70.0040.00614.97
7.3.60.0080.00414.61
7.3.50.0020.01114.85
7.3.40.0060.00614.85
7.3.30.0050.00814.73
7.3.20.0000.01116.83
7.3.10.0080.00616.61
7.3.00.0040.00716.76
7.2.330.0090.01116.73
7.2.320.0140.00416.30
7.2.310.0110.00716.45
7.2.300.0170.00316.65
7.2.290.0030.01316.72
7.2.250.0140.00515.13
7.2.240.0110.00815.22
7.2.230.0050.00915.14
7.2.220.0030.01215.15
7.2.210.0050.00814.96
7.2.200.0070.00615.16
7.2.190.0060.00815.06
7.2.180.0000.01314.95
7.2.170.0070.00714.95
7.2.130.0100.00616.84
7.2.120.0060.00616.64
7.2.110.0060.00316.95
7.2.100.0070.00716.93
7.2.90.0040.00716.88
7.2.80.0070.01016.87
7.2.70.0060.00616.90
7.2.60.0020.01016.88
7.2.50.0070.00416.88
7.2.40.0070.00317.15
7.2.30.0070.00416.84
7.2.20.0030.00916.78
7.2.10.0030.00616.67
7.2.00.0070.00717.93
7.1.330.0050.00915.61
7.1.320.0020.01115.71
7.1.310.0020.01415.68
7.1.300.0060.00815.87
7.1.290.0080.00515.81
7.1.280.0030.00815.75
7.1.270.0040.00815.75
7.1.260.0040.01015.75
7.1.250.0040.01115.77
7.1.240.0050.00515.50
7.1.230.0070.00715.55
7.1.220.0000.00815.52
7.1.210.0030.00915.68
7.1.200.0000.00915.72
7.1.190.0000.01315.88
7.1.180.0060.00615.63
7.1.170.0080.00315.79
7.1.160.0000.00815.59
7.1.150.0040.01115.84
7.1.140.0030.00715.71
7.1.130.0000.01415.44
7.1.120.0030.00615.62
7.1.110.0000.01215.57
7.1.100.0030.01016.98
7.1.90.0100.00315.79
7.1.80.0110.00415.95
7.1.70.0060.00616.11
7.1.60.0090.00917.69
7.1.50.0060.01016.08
7.1.40.0090.00615.96
7.1.30.0060.00315.89
7.1.20.0090.00315.83
7.1.10.0100.00715.69
7.1.00.0030.04219.14
7.0.330.0110.00415.34
7.0.320.0090.00015.32
7.0.310.0090.00315.40
7.0.300.0070.00715.53
7.0.290.0070.00715.37
7.0.280.0060.00315.34
7.0.270.0000.01515.21
7.0.260.0060.00315.39
7.0.250.0090.00315.61
7.0.240.0060.00615.66
7.0.230.0030.01015.53
7.0.220.0040.00715.55
7.0.210.0090.00615.46
7.0.200.0060.00516.13
7.0.190.0040.00715.37
7.0.180.0000.01115.43
7.0.170.0070.00315.37
7.0.160.0000.01115.41
7.0.150.0040.01115.22
7.0.140.0080.03818.77
7.0.130.0000.00915.49
7.0.120.0100.00315.34
7.0.110.0100.00315.24
7.0.100.0060.00915.46
7.0.90.0030.00715.39
7.0.80.0100.00315.52
7.0.70.0060.00315.28
7.0.60.0100.03917.73
7.0.50.0020.04516.72
7.0.40.0120.02216.89
7.0.30.0330.03516.91
7.0.20.0160.02216.90
7.0.10.0050.04516.78
7.0.00.0070.03816.84
5.6.380.0040.00814.39
5.6.370.0070.00314.26
5.6.360.0070.00714.21
5.6.350.0040.00414.27
5.6.340.0100.00714.43
5.6.330.0050.00314.31
5.6.320.0000.00814.39
5.6.310.0030.00514.14
5.6.300.0110.00414.01
5.6.290.0100.00714.17
5.6.280.0030.04217.62
5.6.270.0080.00614.11
5.6.260.0030.01014.52
5.6.250.0080.00014.41
5.6.240.0060.00614.20
5.6.230.0060.00614.36
5.6.220.0000.01214.26
5.6.210.0140.03717.29
5.6.200.0070.02816.07
5.6.190.0080.02817.22
5.6.180.1400.02717.31
5.6.170.0170.04517.45
5.6.160.0030.02517.56
5.6.150.0080.04016.24
5.6.140.0030.02816.25
5.6.130.0030.04916.16
5.6.120.0020.03317.76
5.6.110.0030.05217.78
5.6.100.0100.03717.72
5.6.90.0050.04517.59
5.6.80.0040.04717.46
5.6.70.2250.02317.28
5.6.60.0110.00313.96
5.6.50.0060.01014.14
5.6.40.0060.00313.95
5.6.30.0100.00314.21
5.6.20.0030.00713.88
5.6.10.0100.00714.49
5.6.00.0000.01114.20
5.5.380.0060.00010.97
5.5.370.0070.00310.92
5.5.360.0040.00411.18
5.5.350.0060.02515.68
5.5.340.0110.03814.45
5.5.330.0030.02915.75
5.5.320.0100.03315.55
5.5.310.0170.03715.61
5.5.300.0060.03814.57
5.5.290.0060.02314.53
5.5.280.0030.03515.92
5.5.270.0050.04515.89
5.5.260.0050.03015.78
5.5.250.0080.02015.56
5.5.240.0220.03315.52
5.5.230.0000.00710.67
5.5.220.0070.00410.85
5.5.210.0070.00311.02
5.5.200.0040.00711.02
5.5.190.0000.00611.00
5.5.180.0000.01210.88
5.5.170.0100.00011.07
5.5.160.0000.00911.04
5.5.150.0030.00911.09
5.5.140.0000.00910.73
5.5.130.0000.00611.00
5.5.120.0000.00810.89
5.5.110.0060.00311.13
5.5.100.0100.00010.78
5.5.90.0080.00410.80
5.5.80.0040.00810.76
5.5.70.0000.00810.76
5.5.60.0070.00310.43
5.5.50.0070.00410.74
5.5.40.0030.00910.96
5.5.30.0000.00910.74
5.5.20.0070.00311.10
5.5.10.0070.00710.87
5.5.00.0030.00310.89
5.4.450.0340.03015.26
5.4.440.0300.01815.08
5.4.430.0270.02615.25
5.4.420.0270.01815.26
5.4.410.0130.02515.07
5.4.400.0250.01827.46
5.4.390.0390.02327.30
5.4.380.0500.03214.79
5.4.370.0550.02814.80
5.4.360.0620.02014.86
5.4.350.0600.03614.94
5.4.340.0630.02214.82
5.4.330.0120.00010.72
5.4.320.0040.02311.64
5.4.310.0030.02211.65
5.4.300.0050.02511.80
5.4.290.0020.02611.69
5.4.280.0060.01911.65
5.4.270.0090.01811.60
5.4.260.0060.02011.63
5.4.250.0050.02211.73
5.4.240.0050.02111.51
5.4.230.0040.02711.64
5.4.220.0050.02211.73
5.4.210.0020.02211.72
5.4.200.0050.02311.61
5.4.190.0050.02111.70
5.4.180.0050.02211.42
5.4.170.0040.02311.65
5.4.160.0050.02111.60
5.4.150.0040.02211.59
5.4.140.0020.02311.51
5.4.130.0040.01911.33
5.4.120.0040.02211.37
5.4.110.0080.02011.41
5.4.100.0050.02111.46
5.4.90.0060.02111.44
5.4.80.0030.02111.44
5.4.70.0070.01911.39
5.4.60.0060.01611.46
5.4.50.0030.02211.35
5.4.40.0080.01711.32
5.4.30.0030.02411.47
5.4.20.0080.02011.42
5.4.10.0060.01911.49
5.4.00.0050.02111.18
5.3.290.0040.02511.65
5.3.280.0040.02511.45
5.3.270.0060.02311.63
5.3.260.0060.02111.57
5.3.250.0050.02511.58
5.3.240.0060.01711.54
5.3.230.0070.02111.58
5.3.220.0060.01911.54
5.3.210.0040.02211.54
5.3.200.0050.02311.51
5.3.190.0070.02011.57
5.3.180.0040.02311.59
5.3.170.0070.02111.63
5.3.160.0040.02211.63
5.3.150.0020.02311.63
5.3.140.0060.01911.59
5.3.130.0070.02011.59
5.3.120.0020.02211.55
5.3.110.0050.02211.45
5.3.100.0050.02111.30
5.3.90.0020.02411.36
5.3.80.0070.01811.13
5.3.70.0050.02311.27
5.3.60.0050.02311.27
5.3.50.0020.02511.18
5.3.40.0050.02511.19
5.3.30.0010.02411.21
5.3.20.0080.01811.06
5.3.10.0070.01811.01
5.3.00.0050.01810.85
5.2.170.0050.0179.34
5.2.160.0050.0169.40
5.2.150.0060.0159.32
5.2.140.0020.0239.30
5.2.130.0020.0189.38
5.2.120.0050.0169.33
5.2.110.0020.0189.28
5.2.100.0010.0199.31
5.2.90.0040.0179.22
5.2.80.0020.0209.28
5.2.70.0070.0159.22
5.2.60.0050.0189.20
5.2.50.0090.0149.21
5.2.40.0060.0159.17
5.2.30.0050.0179.16
5.2.20.0060.0159.15
5.2.10.0050.0179.12
5.2.00.0040.0219.04
5.1.60.0030.0168.69
5.1.50.0020.0158.69
5.1.40.0040.0178.68
5.1.30.0040.0158.85
5.1.20.0020.0188.86
5.1.10.0020.0168.73
5.1.00.0050.0148.73
5.0.50.0040.0117.97
5.0.40.0040.0097.90
5.0.30.0060.0147.81
5.0.20.0040.0097.79
5.0.10.0020.0137.78
5.0.00.0020.0187.78
4.4.90.0010.0157.04
4.4.80.0010.0107.03
4.4.70.0020.0097.02
4.4.60.0010.0107.03
4.4.50.0010.0117.03
4.4.40.0030.0177.00
4.4.30.0040.0107.03
4.4.20.0020.0127.07
4.4.10.0030.0097.07
4.4.00.0020.0167.03
4.3.110.0020.0156.98
4.3.100.0010.0106.98
4.3.90.0010.0116.96
4.3.80.0020.0166.94
4.3.70.0020.0096.96
4.3.60.0040.0096.96
4.3.50.0030.0086.96
4.3.40.0010.0166.91
4.3.30.0030.0116.30
4.3.20.0030.0106.29
4.3.10.0010.0106.27
4.3.00.0030.01026.61

preferences:
42.81 ms | 401 KiB | 5 Q