3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tempToken = "eb9b5214-a941-44bf-afec-04e398b0a356e52ceeb1-5495-4287-b955-cd34413728ab"; $clearText = "AuthToken=eb9b5214-a941-44bf-afec-04e398b0a356e52ceeb1-5495-4287-b955-cd34413728ab&PayerId=2432991646479390&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); 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.00616.75
8.3.50.0240.00422.05
8.3.40.0070.00718.77
8.3.30.0070.00719.23
8.3.20.0070.00020.16
8.3.10.0050.00323.71
8.3.00.0080.00019.56
8.2.180.0150.00616.63
8.2.170.0170.00322.96
8.2.160.0030.01020.35
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0080.00020.93
8.2.110.0120.00920.38
8.2.100.0110.00019.39
8.2.90.0040.00419.17
8.2.80.0000.00817.97
8.2.70.0030.00617.63
8.2.60.0050.00317.80
8.2.50.0000.00818.07
8.2.40.0030.00518.22
8.2.30.0070.00018.18
8.2.20.0040.00417.85
8.2.10.0000.00718.05
8.2.00.0050.00317.68
8.1.280.0070.00725.92
8.1.270.0030.00623.79
8.1.260.0000.00826.35
8.1.250.0080.00028.09
8.1.240.0060.00323.96
8.1.230.0030.00919.17
8.1.220.0040.00417.78
8.1.210.0090.00018.77
8.1.200.0060.00317.35
8.1.190.0040.00417.35
8.1.180.0030.00518.10
8.1.170.0000.00818.66
8.1.160.0000.00721.93
8.1.150.0050.00318.79
8.1.140.0040.00417.34
8.1.130.0000.00717.90
8.1.120.0070.00017.46
8.1.110.0070.00017.48
8.1.100.0050.00317.47
8.1.90.0050.00217.38
8.1.80.0060.00317.53
8.1.70.0070.00017.47
8.1.60.0070.00617.26
8.1.50.0040.00417.54
8.1.40.0030.00617.39
8.1.30.0040.00417.60
8.1.20.0000.00817.73
8.1.10.0050.00317.54
8.1.00.0040.00417.52
8.0.300.0000.00718.77
8.0.290.0030.00516.88
8.0.280.0070.00018.38
8.0.270.0030.00317.33
8.0.260.0050.00317.31
8.0.250.0000.00717.02
8.0.240.0030.00316.92
8.0.230.0070.00017.07
8.0.220.0030.00316.97
8.0.210.0000.00716.95
8.0.200.0050.00216.96
8.0.190.0070.00017.09
8.0.180.0030.00416.99
8.0.170.0000.00716.85
8.0.160.0040.00416.97
8.0.150.0030.00516.89
8.0.140.0040.00416.82
8.0.130.0000.00613.46
8.0.120.0000.00716.96
8.0.110.0080.00016.96
8.0.100.0080.00017.02
8.0.90.0050.00217.00
8.0.80.0120.00816.94
8.0.70.0050.00316.98
8.0.60.0030.00616.97
8.0.50.0040.00417.01
8.0.30.0120.01117.24
8.0.20.0120.00717.40
8.0.10.0040.00417.01
8.0.00.0120.00916.74
7.4.330.0000.00515.08
7.4.320.0000.00616.46
7.4.300.0030.00316.50
7.4.290.0070.00016.46
7.4.280.0040.00416.45
7.4.270.0070.00016.54
7.4.260.0110.00016.59
7.4.250.0040.00416.46
7.4.240.0040.00316.43
7.4.230.0000.00716.55
7.4.220.0120.00616.52
7.4.210.0070.01016.57
7.4.200.0030.00316.64
7.4.160.0080.00816.61
7.4.150.0090.00917.40
7.4.140.0100.00817.86
7.4.130.0080.01016.46
7.4.120.0130.00816.53
7.4.110.0090.00916.59
7.4.100.0100.00716.54
7.4.90.0090.01216.50
7.4.80.0110.01519.39
7.4.70.0140.00816.58
7.4.60.0090.00616.45
7.4.50.0060.00316.25
7.4.40.0070.01616.52
7.4.30.0060.01016.61
7.4.00.0050.01415.00
7.3.330.0060.00013.20
7.3.320.0000.00813.02
7.3.310.0000.00616.23
7.3.300.0070.00016.30
7.3.290.0070.01116.32
7.3.280.0090.00716.29
7.3.270.0130.00417.40
7.3.260.0130.00416.44
7.3.250.0100.01016.41
7.3.240.0150.00216.22
7.3.230.0070.01016.41
7.3.210.0070.01016.60
7.3.200.0100.00619.39
7.3.190.0130.00316.50
7.3.180.0140.00416.35
7.3.170.0160.00016.45
7.3.160.0110.00416.48
7.3.120.0120.00514.94
7.3.110.0030.01414.85
7.3.100.0100.00814.76
7.3.90.0030.01214.95
7.3.80.0060.01014.85
7.3.70.0030.00814.76
7.3.60.0060.00814.73
7.3.50.0030.01014.57
7.3.40.0050.00814.69
7.3.30.0040.00514.74
7.3.20.0050.00816.69
7.3.10.0100.00516.56
7.3.00.0120.00716.52
7.2.330.0100.00716.33
7.2.320.0040.01516.46
7.2.310.0070.01016.58
7.2.300.0070.01016.73
7.2.290.0070.01016.73
7.2.250.0030.01114.75
7.2.240.0080.01015.12
7.2.230.0060.00615.18
7.2.220.0080.00514.97
7.2.210.0100.00414.80
7.2.200.0040.00614.87
7.2.190.0030.01215.06
7.2.180.0060.00814.97
7.2.170.0040.00715.09
7.2.160.0060.00314.99
7.2.150.0070.00716.66
7.2.140.0070.01116.70
7.2.130.0100.00816.77
7.2.120.0130.00516.57
7.2.110.0070.01316.61
7.2.100.0120.00516.65
7.2.90.0110.00916.65
7.2.80.0100.00916.73
7.2.70.0140.00516.61
7.2.60.0070.00816.68
7.2.50.0080.00616.93
7.2.40.0120.00816.55
7.2.30.0140.00816.82
7.2.20.0150.00516.88
7.2.10.0080.00716.64
7.2.00.0110.00717.60
7.1.330.0090.00715.83
7.1.320.0110.00215.74
7.1.310.0050.00915.89
7.1.300.0050.00515.63
7.1.290.0050.00815.49
7.1.280.0120.00315.71
7.1.270.0020.01015.71
7.1.260.0060.00715.76
7.1.250.0080.00915.50
7.1.240.0030.00715.68
7.1.230.0030.00915.60
7.1.220.0090.00615.76
7.1.210.0130.00315.83
7.1.200.0100.00315.73
7.1.190.0060.00615.74
7.1.180.0060.00615.63
7.1.170.0060.00915.55
7.1.160.0000.00915.68
7.1.150.0090.00615.57
7.1.140.0040.00415.61
7.1.130.0030.01015.79
7.1.120.0100.00715.54
7.1.110.0070.00715.87
7.1.100.0000.01415.77
7.1.90.0080.00415.77
7.1.80.0070.00715.79
7.1.70.0050.00516.46
7.1.60.0030.01417.78
7.1.50.0100.00516.37
7.1.40.0060.01115.59
7.1.30.0040.00715.74
7.1.20.0090.00015.61
7.1.10.0070.00415.46
7.1.00.0060.04019.12
7.0.330.0030.01015.34
7.0.320.0060.00915.38
7.0.310.0030.00615.18
7.0.300.0070.00715.34
7.0.290.0090.00015.53
7.0.280.0030.01415.43
7.0.270.0040.00815.52
7.0.260.0030.01015.52
7.0.250.0060.00315.28
7.0.240.0060.01015.60
7.0.230.0090.00615.52
7.0.220.0070.00715.32
7.0.210.0070.00715.43
7.0.200.0090.00615.99
7.0.190.0030.00915.45
7.0.180.0130.00315.36
7.0.170.0140.00015.54
7.0.160.0060.00615.37
7.0.150.0070.00315.26
7.0.140.0050.03818.68
7.0.130.0030.00615.30
7.0.120.0030.00715.54
7.0.110.0090.00615.19
7.0.100.0080.03217.72
7.0.90.0190.03717.49
7.0.80.0050.03717.66
7.0.70.0090.03517.60
7.0.60.0080.03517.70
7.0.50.0100.02517.99
7.0.40.0050.02616.86
7.0.30.0030.02916.69
7.0.20.0030.02716.65
7.0.10.0020.03516.90
7.0.00.0050.03316.75
5.6.400.0100.00714.33
5.6.390.0140.00014.45
5.6.380.0080.00314.54
5.6.370.0050.00514.39
5.6.360.0040.01114.29
5.6.350.0030.01014.42
5.6.340.0100.00314.16
5.6.330.0040.00414.30
5.6.320.0060.00614.06
5.6.310.0120.00614.06
5.6.300.0070.00714.31
5.6.290.0090.00314.33
5.6.280.0030.04117.68
5.6.270.0060.00614.16
5.6.260.0030.01214.30
5.6.250.0050.04517.50
5.6.240.0070.04417.40
5.6.230.0030.03117.39
5.6.220.0100.04417.44
5.6.210.0020.04717.32
5.6.200.0070.02717.51
5.6.190.0050.02417.60
5.6.180.0080.01817.82
5.6.170.0070.02217.75
5.6.160.0010.04917.67
5.6.150.0050.03417.86
5.6.140.0060.02817.77
5.6.130.0080.03917.66
5.6.120.0050.02717.78
5.6.110.0070.02317.70
5.6.100.0070.02517.64
5.6.90.0070.02517.71
5.6.80.0050.02517.37
5.6.70.0080.02017.29
5.6.60.0050.02417.29
5.6.50.0110.01817.35
5.6.40.0090.02217.38
5.6.30.0050.02717.30
5.6.20.0060.02517.37
5.6.10.0060.02317.18
5.6.00.0030.02717.30
5.5.380.0070.04117.20
5.5.370.0130.03817.33
5.5.360.0080.04317.16
5.5.350.0050.04717.39
5.5.340.0060.02617.70
5.5.330.0110.02517.58
5.5.320.0050.03217.53
5.5.310.0070.02217.61
5.5.300.0130.03817.78
5.5.290.0090.02917.45
5.5.280.0050.02817.60
5.5.270.0140.02517.48
5.5.260.0030.02717.49
5.5.250.0080.02317.49
5.5.240.0020.02417.30
5.5.230.0040.02217.20
5.5.220.0080.02016.99
5.5.210.0050.03017.07
5.5.200.0100.02317.36
5.5.190.0060.02117.21
5.5.180.0060.02417.13
5.5.170.0110.00014.22
5.5.160.0020.02417.22
5.5.150.0100.02317.17
5.5.140.0100.02417.04
5.5.130.0080.03517.23
5.5.120.0090.04117.13
5.5.110.0130.03317.21
5.5.100.0050.04517.10
5.5.90.0070.03817.02
5.5.80.0030.03917.18
5.5.70.0100.04017.13
5.5.60.0090.02417.04
5.5.50.0080.04417.06
5.5.40.0050.04217.06
5.5.30.0040.04517.04
5.5.20.0090.03017.24
5.5.10.0130.03717.15
5.5.00.0030.04217.09
5.4.450.0100.02016.04
5.4.440.0030.02915.99
5.4.430.0030.02416.10
5.4.420.0050.02816.06
5.4.410.0070.01815.94
5.4.400.0020.03015.77
5.4.390.0080.01715.87
5.4.380.0080.02015.83
5.4.370.0080.02015.87
5.4.360.0050.02315.88
5.4.350.0090.02215.91
5.4.340.0070.02015.86
5.4.330.0030.01012.68
5.4.320.0130.03515.84
5.4.310.0040.02415.90
5.4.300.0100.01615.78
5.4.290.0050.03015.89
5.4.280.0120.03715.89
5.4.270.0070.03815.79
5.4.260.0030.04115.96
5.4.250.0020.03415.89
5.4.240.0100.04015.82
5.4.230.0030.04515.79
5.4.220.0070.03615.83
5.4.210.0070.04215.83
5.4.200.0110.03015.88
5.4.190.0030.04315.91
5.4.180.0050.04515.84
5.4.170.0020.04115.83
5.4.160.0070.03915.78
5.4.150.0020.03015.78
5.4.140.0050.02914.53
5.4.130.0050.03214.54
5.4.120.0120.03314.55
5.4.110.0080.03614.48
5.4.100.0040.04214.51
5.4.90.0020.03614.56
5.4.80.0060.03814.56
5.4.70.0060.03714.50
5.4.60.0060.03814.53
5.4.50.0050.03914.55
5.4.40.0070.03814.51
5.4.30.0050.03614.51
5.4.20.0040.04114.57
5.4.10.0030.04314.57
5.4.00.0060.03614.24
5.3.290.0080.03013.64
5.3.280.0060.03613.63
5.3.270.0080.03313.64
5.3.260.0030.02713.63
5.3.250.0070.03713.57
5.3.240.0080.04013.64
5.3.230.0050.04313.60
5.3.220.0050.03513.58
5.3.210.0070.03713.60
5.3.200.0020.04813.54
5.3.190.0060.03013.62
5.3.180.0020.03713.60
5.3.170.0070.02513.62
5.3.160.0070.03413.61
5.3.150.0050.04013.61
5.3.140.0020.04313.53
5.3.130.0050.04213.54
5.3.120.0030.03713.53
5.3.110.0050.04213.61
5.3.100.0030.03713.36
5.3.90.0060.03813.35
5.3.80.0000.03213.24
5.3.70.0050.03713.32
5.3.60.0030.04113.35
5.3.50.0070.02213.19
5.3.40.0020.04113.31
5.3.30.0030.04013.26
5.3.20.0050.04013.14
5.3.10.0110.01813.13
5.3.00.0030.02613.13
5.2.170.0030.03712.40
5.2.160.0000.06312.40
5.2.150.0100.05712.40
5.2.140.0100.03012.40
5.2.130.0030.06312.40
5.2.120.0030.03312.40
5.2.110.0070.05712.40
5.2.100.0000.04312.40
5.2.90.0030.05312.40
5.2.80.0030.06312.40
5.2.70.0070.06012.40
5.2.60.0100.04312.40
5.2.50.0000.07712.40
5.2.40.0070.06012.40
5.2.30.0070.05712.40
5.2.20.0000.05012.40
5.2.10.0030.05712.40
5.2.00.0130.04712.40
5.1.60.0070.02712.40
5.1.50.0000.05312.40
5.1.40.0070.05712.40
5.1.30.0100.05312.40
5.1.20.0030.05312.40
5.1.10.0000.06012.40
5.1.00.0000.05712.40
5.0.50.0030.04712.40
5.0.40.0070.04012.40
5.0.30.0030.06312.40
5.0.20.0170.02312.40
5.0.10.0030.04312.40
5.0.00.0000.06712.40
4.4.90.0070.03012.40
4.4.80.0000.03712.40
4.4.70.0000.03712.40
4.4.60.0000.03712.40
4.4.50.0000.03712.40
4.4.40.0000.04312.40
4.4.30.0070.02712.40
4.4.20.0030.03712.40
4.4.10.0030.03312.40
4.4.00.0000.06012.40
4.3.110.0000.03312.40
4.3.100.0070.03012.40
4.3.90.0030.03312.40
4.3.80.0070.04712.40
4.3.70.0070.03012.40
4.3.60.0070.03012.40
4.3.50.0000.03312.40
4.3.40.0030.05312.40
4.3.30.0000.03712.40
4.3.20.0030.03312.40
4.3.10.0030.03312.40
4.3.00.0030.03312.40

preferences:
55.12 ms | 400 KiB | 5 Q