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(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.60.0120.00318.43
8.3.50.0110.00721.91
8.3.40.0040.01118.84
8.3.30.0080.00618.96
8.3.20.0000.00820.30
8.3.10.0070.00023.37
8.3.00.0030.00519.78
8.2.180.0060.01216.75
8.2.170.0070.00722.96
8.2.160.0150.00320.34
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0040.00420.88
8.2.110.0000.00920.38
8.2.100.0120.00017.78
8.2.90.0030.00617.63
8.2.80.0060.00318.78
8.2.70.0090.00017.75
8.2.60.0040.00417.50
8.2.50.0000.00817.50
8.2.40.0000.00818.99
8.2.30.0000.00718.16
8.2.20.0030.00617.55
8.2.10.0030.00517.93
8.2.00.0000.00817.74
8.1.280.0120.00325.92
8.1.270.0060.00324.02
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.77
8.1.230.0040.00822.67
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0040.00817.35
8.1.190.0040.00417.23
8.1.180.0040.00419.13
8.1.170.0050.00319.16
8.1.160.0000.00721.85
8.1.150.0070.00018.84
8.1.140.0040.00417.29
8.1.130.0030.00317.80
8.1.120.0040.00417.46
8.1.110.0050.00317.38
8.1.100.0040.00517.39
8.1.90.0030.00517.40
8.1.80.0000.00717.43
8.1.70.0030.00317.26
8.1.60.0000.00817.48
8.1.50.0020.00517.50
8.1.40.0040.00417.50
8.1.30.0080.00017.65
8.1.20.0000.00717.57
8.1.10.0030.00617.57
8.1.00.0000.00817.55
8.0.300.0040.00418.77
8.0.290.0080.00016.75
8.0.280.0000.00718.38
8.0.270.0040.00417.19
8.0.260.0060.00017.30
8.0.250.0000.00716.80
8.0.240.0060.00316.89
8.0.230.0000.00716.95
8.0.220.0000.00816.78
8.0.210.0000.00716.93
8.0.200.0000.00716.96
8.0.190.0030.00516.92
8.0.180.0040.00416.89
8.0.170.0040.00416.94
8.0.160.0000.00716.76
8.0.150.0000.00716.89
8.0.140.0040.00416.84
8.0.130.0000.00513.24
8.0.120.0080.00016.76
8.0.110.0000.00716.91
8.0.100.0040.00316.88
8.0.90.0000.00816.66
8.0.80.0090.00616.93
8.0.70.0040.00416.76
8.0.60.0030.00416.92
8.0.50.0040.00416.76
8.0.30.0120.00916.87
8.0.20.0110.01117.40
8.0.10.0030.00616.87
8.0.00.0080.01016.66
7.4.330.0000.00515.00
7.4.320.0030.00316.50
7.4.300.0000.00616.55
7.4.290.0000.00716.57
7.4.280.0060.00316.59
7.4.270.0000.00716.48
7.4.260.0000.00916.51
7.4.250.0030.00516.55
7.4.240.0000.00716.51
7.4.230.0070.00016.40
7.4.220.0140.00416.60
7.4.210.0030.01016.45
7.4.200.0030.00316.48
7.4.160.0080.00816.43
7.4.150.0000.01817.40
7.4.140.0130.00317.86
7.4.130.0150.00316.41
7.4.120.0060.01116.60
7.4.110.0150.00316.38
7.4.100.0120.00616.32
7.4.90.0060.01216.37
7.4.80.0120.00619.39
7.4.70.0030.01316.52
7.4.60.0100.00716.66
7.4.50.0030.00316.16
7.4.40.0100.00716.60
7.4.30.0070.01016.30
7.4.10.0030.01414.96
7.4.00.0080.00815.00
7.3.330.0000.00513.16
7.3.320.0000.00513.14
7.3.310.0030.00516.25
7.3.300.0000.00716.25
7.3.290.0040.01416.31
7.3.280.0110.00516.22
7.3.270.0130.00317.40
7.3.260.0060.01716.27
7.3.250.0100.00716.32
7.3.240.0130.00316.34
7.3.230.0100.00716.57
7.3.210.0170.00616.57
7.3.200.0040.01819.39
7.3.190.0110.00616.24
7.3.180.0130.00316.53
7.3.170.0130.00316.36
7.3.160.0080.00816.35
7.3.130.0120.00614.77
7.3.120.0050.01014.97
7.3.110.0030.01515.06
7.3.100.0110.00414.68
7.3.90.0070.00714.51
7.3.80.0060.00614.77
7.3.70.0120.00314.67
7.3.60.0060.00614.71
7.3.50.0030.01414.88
7.3.40.0000.01214.40
7.3.30.0080.00614.89
7.3.20.0030.00916.68
7.3.10.0020.01316.52
7.3.00.0050.00816.49
7.2.330.0090.00916.63
7.2.320.0140.00316.46
7.2.310.0080.00916.57
7.2.300.0090.00616.65
7.2.290.0100.00716.30
7.2.260.0090.00915.04
7.2.250.0080.00315.18
7.2.240.0100.00715.13
7.2.230.0030.01415.03
7.2.220.0030.01014.99
7.2.210.0040.00814.86
7.2.200.0090.00614.92
7.2.190.0160.00314.79
7.2.180.0000.01515.09
7.2.170.0000.01115.00
7.2.160.0110.00315.00
7.2.150.0040.01216.75
7.2.140.0030.00617.01
7.2.130.0070.00716.88
7.2.120.0040.00916.77
7.2.110.0030.01116.81
7.2.100.0080.00516.75
7.2.90.0070.00916.83
7.2.80.0050.00816.83
7.2.70.0070.00516.93
7.2.60.0060.00816.81
7.2.50.0050.00516.81
7.2.40.0040.01116.86
7.2.30.0100.00316.96
7.2.20.0020.01016.85
7.2.10.0070.00516.78
7.2.00.0010.01317.53
7.1.330.0090.00615.56
7.1.320.0070.00415.98
7.1.310.0060.00815.76
7.1.300.0130.00315.59
7.1.290.0030.00815.88
7.1.280.0040.00815.64
7.1.270.0040.00415.79
7.1.260.0040.01215.55
7.1.250.0020.01215.81
7.1.240.0000.01215.87
7.1.230.0000.01315.79
7.1.220.0000.01015.73
7.1.210.0030.01115.71
7.1.200.0040.00915.85
7.1.190.0040.00915.48
7.1.180.0040.00715.55
7.1.170.0070.00715.73
7.1.160.0090.00315.91
7.1.150.0000.00815.88
7.1.140.0040.00715.84
7.1.130.0000.00815.88
7.1.120.0000.01015.77
7.1.110.0050.00515.63
7.1.100.0070.00516.81
7.1.90.0080.00615.93
7.1.80.0060.00315.86
7.1.70.0030.00616.51
7.1.60.0050.01617.73
7.1.50.0050.01116.29
7.1.40.0080.00315.73
7.1.30.0080.00815.76
7.1.20.0030.01015.80
7.1.10.0060.01015.67
7.1.00.0070.04019.15
7.0.330.0100.00715.45
7.0.320.0090.00615.14
7.0.310.0000.01215.00
7.0.300.0000.01015.54
7.0.290.0070.00715.44
7.0.280.0040.00715.42
7.0.270.0100.00315.42
7.0.260.0090.00615.37
7.0.250.0100.00315.45
7.0.240.0060.00615.27
7.0.230.0000.00815.04
7.0.220.0000.01015.08
7.0.210.0030.01015.17
7.0.200.0090.00415.98
7.0.190.0030.00715.48
7.0.180.0030.00915.36
7.0.170.0130.00315.54
7.0.160.0040.00715.25
7.0.150.0000.01115.35
7.0.140.0030.04118.65
7.0.130.0060.00615.49
7.0.120.0060.00315.55
7.0.110.0040.00715.25
7.0.100.0060.02617.71
7.0.90.0040.03417.67
7.0.80.0020.03017.69
7.0.70.0070.03817.64
7.0.60.0060.03317.68
7.0.50.0030.02817.91
7.0.40.0050.02516.62
7.0.30.0030.02516.76
7.0.20.0070.02516.85
7.0.10.0050.02516.68
7.0.00.0070.02216.80
5.6.400.0090.00614.43
5.6.390.0040.01114.32
5.6.380.0030.00713.99
5.6.370.0060.00613.82
5.6.360.0090.00614.08
5.6.350.0030.01413.93
5.6.340.0040.01113.98
5.6.330.0080.00614.38
5.6.320.0070.00714.05
5.6.310.0000.00913.97
5.6.300.0070.00714.38
5.6.290.0070.00714.15
5.6.280.0070.03817.52
5.6.270.0030.00913.97
5.6.260.0060.00914.16
5.6.250.0050.02817.39
5.6.240.0070.02717.45
5.6.230.0050.02317.40
5.6.220.0030.02517.50
5.6.210.0110.02517.30
5.6.200.0020.03017.78
5.6.190.0030.02817.60
5.6.180.0060.02817.55
5.6.170.0060.02017.70
5.6.160.0050.02717.61
5.6.150.0030.03217.62
5.6.140.0080.01817.69
5.6.130.0070.02217.59
5.6.120.0050.02517.62
5.6.110.0030.02717.61
5.6.100.0080.02517.72
5.6.90.0040.02617.66
5.6.80.0030.02917.29
5.6.70.0020.02517.26
5.6.60.0080.04317.18
5.6.50.0030.05017.27
5.6.40.0130.03717.25
5.6.30.0080.02817.17
5.6.20.0110.02917.23
5.6.10.0100.03517.37
5.6.00.0110.03517.18
5.5.380.0070.02617.34
5.5.370.0030.03417.33
5.5.360.0030.02317.08
5.5.350.0110.02517.36
5.5.340.0080.03517.52
5.5.330.0070.02517.63
5.5.320.0080.02017.60
5.5.310.0000.02917.54
5.5.300.0030.02717.44
5.5.290.0000.02617.43
5.5.280.0030.02717.43
5.5.270.0050.03517.59
5.5.260.0100.03217.51
5.5.250.0070.02217.39
5.5.240.0040.02317.19
5.5.230.0050.02117.13
5.5.220.0090.04417.09
5.5.210.0130.04017.14
5.5.200.0080.04517.30
5.5.190.0090.04317.11
5.5.180.0060.04117.20
5.5.170.0040.01214.19
5.5.160.0070.03217.03
5.5.150.0100.03717.22
5.5.140.0070.04116.86
5.5.130.0120.03717.15
5.5.120.0090.04317.03
5.5.110.0080.03717.23
5.5.100.0130.03517.06
5.5.90.0030.04117.11
5.5.80.0160.02317.13
5.5.70.0060.04117.18
5.5.60.0110.04016.88
5.5.50.0080.04017.06
5.5.40.0080.03717.07
5.5.30.0050.04517.00
5.5.20.0030.03216.86
5.5.10.0060.02617.11
5.5.00.0070.04016.97
5.4.450.0020.02515.02
5.4.440.0020.03015.18
5.4.430.0080.02115.04
5.4.420.0030.02315.20
5.4.410.0100.01714.96
5.4.400.0030.02014.96
5.4.390.0050.02014.84
5.4.380.0030.02714.83
5.4.370.0080.02514.81
5.4.360.0050.03014.90
5.4.350.0030.04215.00
5.4.340.0070.02714.90
5.4.330.0070.00710.81
5.4.320.0070.03814.99
5.4.310.0070.03014.91
5.4.300.0080.03915.09
5.4.290.0050.04214.86
5.4.280.0050.04214.95
5.4.270.0100.03914.79
5.4.260.0030.02614.96
5.4.250.0020.04615.17
5.4.240.0120.03514.97
5.4.230.0100.03315.03
5.4.220.0050.04315.07
5.4.210.0050.03714.80
5.4.200.0020.03914.91
5.4.190.0080.04014.89
5.4.180.0100.03714.71
5.4.170.0120.03514.88
5.4.160.0060.02614.92
5.4.150.0030.04114.87
5.4.140.0100.03513.59
5.4.130.0080.02313.49
5.4.120.0070.03813.45
5.4.110.0050.04313.69
5.4.100.0070.03713.54
5.4.90.0120.03513.63
5.4.80.0070.02513.58
5.4.70.0070.03513.61
5.4.60.0050.04013.53
5.4.50.0030.04113.59
5.4.40.0030.03913.47
5.4.30.0000.04113.57
5.4.20.0050.03713.67
5.4.10.0040.02013.61
5.4.00.0080.03613.32
5.3.290.0050.04012.47
5.3.280.0020.04212.37
5.3.270.0060.03812.49
5.3.260.0090.02412.51
5.3.250.0090.03912.38
5.3.240.0020.04312.42
5.3.230.0040.04212.38
5.3.220.0020.04212.41
5.3.210.0070.04012.44
5.3.200.0030.04212.35
5.3.190.0080.03812.38
5.3.180.0030.04412.41
5.3.170.0050.02512.54
5.3.160.0040.04112.49
5.3.150.0070.03812.44
5.3.140.0050.02512.45
5.3.130.0070.03512.51
5.3.120.0050.02612.49
5.3.110.0050.04012.44
5.3.100.0030.04312.14
5.3.90.0100.03312.20
5.3.80.0030.03812.00
5.3.70.0080.01812.03
5.3.60.0020.02712.15
5.3.50.0060.03612.01
5.3.40.0030.03812.10
5.3.30.0060.01912.01
5.3.20.0050.03711.98
5.3.10.0050.02511.88
5.3.00.0100.03511.82
5.2.170.0130.05711.18
5.2.160.0000.04711.18
5.2.150.0070.05711.18
5.2.140.0130.05311.18
5.2.130.0070.06011.18
5.2.120.0070.05711.18
5.2.110.0130.05011.18
5.2.100.0070.05711.18
5.2.90.0070.06011.18
5.2.80.0000.06311.18
5.2.70.0100.05311.18
5.2.60.0030.06011.18
5.2.50.0100.05711.18
5.2.40.0100.05711.18
5.2.30.0070.06011.18
5.2.20.0130.05711.18
5.2.10.0000.06311.18
5.2.00.0000.06311.18
5.1.60.0070.04311.18
5.1.50.0030.05711.18
5.1.40.0000.04711.18
5.1.30.0030.06011.18
5.1.20.0100.05011.18
5.1.10.0000.05711.18
5.1.00.0170.03711.18
5.0.50.0070.04011.18
5.0.40.0130.03311.18
5.0.30.0030.06311.18
5.0.20.0000.03311.18
5.0.10.0030.04311.18
5.0.00.0000.06711.18
4.4.90.0070.02711.18
4.4.80.0030.03311.18
4.4.70.0030.03311.18
4.4.60.0000.04011.18
4.4.50.0030.03311.18
4.4.40.0000.05711.18
4.4.30.0030.03311.18
4.4.20.0070.01711.18
4.4.10.0100.02711.18
4.4.00.0070.05011.18
4.3.110.0030.03311.18
4.3.100.0030.03311.18
4.3.90.0030.03311.18
4.3.80.0070.04711.18
4.3.70.0030.03311.18
4.3.60.0030.03311.18
4.3.50.0030.03311.18
4.3.40.0000.03011.18
4.3.30.0030.03311.18
4.3.20.0030.01711.18
4.3.10.0070.03011.18
4.3.00.0030.01311.18

preferences:
49.05 ms | 401 KiB | 5 Q