3v4l.org

run code in 300+ PHP versions simultaneously
<?php function evalCrossTotal($strMD5) { $intTotal = 0; $arrMD5Chars = str_split($strMD5, 1); foreach ($arrMD5Chars as $value) { $intTotal += '0x0'.$value; } return $intTotal; } function encryptString($strString, $strPassword) { // $strString is the content of the entire file with serials $strPasswordMD5 = md5($strPassword); $intMD5Total = evalCrossTotal($strPasswordMD5); $arrEncryptedValues = array(); $intStrlen = strlen($strString); for ($i=0; $i<$intStrlen; $i++) { $arrEncryptedValues[] = ord(substr($strString, $i, 1)) + ('0x0' . substr($strPasswordMD5, $i%32, 1)) - $intMD5Total; $intMD5Total = evalCrossTotal(substr(md5(substr($strString,0,$i+1)), 0, 16) . substr(md5($intMD5Total), 0, 16)); } return implode(' ' , $arrEncryptedValues); } encryptString("woord", "woord"); ?>

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.0100.01016.88
8.3.50.0130.00916.13
8.3.40.0060.00918.79
8.3.30.0060.00918.67
8.3.20.0050.00320.33
8.3.10.0040.00421.86
8.3.00.0040.00419.68
8.2.180.0160.00018.41
8.2.170.0140.00322.96
8.2.160.0130.01020.38
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0070.00317.50
8.2.110.0060.00322.25
8.2.100.0090.00317.75
8.2.90.0030.00519.35
8.2.80.0000.00817.97
8.2.70.0030.00617.75
8.2.60.0070.00317.93
8.2.50.0050.00318.07
8.2.40.0030.00519.23
8.2.30.0060.00319.91
8.2.20.0060.00317.75
8.2.10.0000.00818.12
8.2.00.0030.00618.14
8.1.280.0120.00325.92
8.1.270.0040.01522.09
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.48
8.1.230.0080.00417.48
8.1.220.0030.00517.74
8.1.210.0000.00918.77
8.1.200.0000.00917.23
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0040.00418.64
8.1.160.0000.00822.09
8.1.150.0040.00418.82
8.1.140.0030.00517.51
8.1.130.0070.00017.73
8.1.120.0000.00917.44
8.1.110.0080.00017.36
8.1.100.0090.00017.35
8.1.90.0000.00717.47
8.1.80.0030.00517.41
8.1.70.0080.00017.36
8.1.60.0030.00517.56
8.1.50.0030.00517.56
8.1.40.0000.00817.58
8.1.30.0090.00317.56
8.1.20.0030.00517.56
8.1.10.0030.00617.39
8.1.00.0030.00617.46
8.0.300.0030.00618.77
8.0.290.0000.00816.75
8.0.280.0070.00018.34
8.0.270.0050.00317.20
8.0.260.0040.00417.18
8.0.250.0080.00017.04
8.0.240.0030.00317.04
8.0.230.0000.00816.99
8.0.220.0000.00716.94
8.0.210.0030.00516.89
8.0.200.0030.00317.02
8.0.190.0080.00017.05
8.0.180.0050.00316.82
8.0.170.0040.00416.90
8.0.160.0050.00216.96
8.0.150.0000.00716.91
8.0.140.0000.00816.88
8.0.130.0060.00013.43
8.0.120.0030.00616.94
8.0.110.0080.00016.94
8.0.100.0040.00416.82
8.0.90.0040.00416.97
8.0.80.0060.00916.90
8.0.70.0030.00516.78
8.0.60.0030.00616.79
8.0.50.0050.00216.77
8.0.30.0160.00717.20
8.0.20.0110.01017.40
8.0.10.0040.00417.04
8.0.00.0100.01116.76
7.4.330.0000.00515.09
7.4.320.0000.00616.54
7.4.300.0060.00016.63
7.4.290.0060.00316.50
7.4.280.0080.00016.50
7.4.270.0000.00716.52
7.4.260.0000.00816.63
7.4.250.0040.00416.61
7.4.240.0040.00416.57
7.4.230.0040.00416.71
7.4.220.0090.00916.45
7.4.210.0100.00716.68
7.4.200.0000.00716.50
7.4.160.0150.00416.52
7.4.150.0080.01217.40
7.4.140.0130.00917.86
7.4.130.0080.01416.74
7.4.120.0140.00616.57
7.4.110.0060.01616.49
7.4.100.0100.01716.39
7.4.90.0120.00616.54
7.4.80.0060.01719.39
7.4.70.0120.00616.57
7.4.60.0030.01316.46
7.4.50.0000.00916.65
7.4.40.0080.01116.49
7.4.30.0200.00716.61
7.4.00.0060.00914.98
7.3.330.0000.00613.26
7.3.320.0050.00013.40
7.3.310.0030.00316.42
7.3.300.0030.00316.30
7.3.290.0050.00216.30
7.3.280.0070.01016.46
7.3.270.0170.00717.40
7.3.260.0080.01116.57
7.3.250.0100.01316.39
7.3.240.0080.01416.60
7.3.230.0070.01416.51
7.3.210.0090.01216.49
7.3.200.0090.00916.63
7.3.190.0130.00916.39
7.3.180.0030.01416.44
7.3.170.0030.01416.45
7.3.160.0030.01516.49
7.2.330.0150.00316.80
7.2.320.0060.01216.77
7.2.310.0120.00616.64
7.2.300.0150.00316.66
7.2.290.0160.00416.62
7.2.60.0060.00616.96
7.2.00.0030.00819.47
7.1.200.0060.00615.68
7.1.100.0040.00818.02
7.1.70.0000.00816.98
7.1.60.0090.00319.27
7.1.50.0000.02116.70
7.1.00.0030.07722.44
7.0.200.0070.00316.84
7.0.60.0100.08020.25
7.0.50.0030.08318.09
7.0.40.0000.05720.27
7.0.30.0170.04320.51
7.0.20.0200.05020.43
7.0.10.0100.04720.38
7.0.00.0030.05020.41
5.6.280.0100.06320.88
5.6.210.0000.05320.68
5.6.200.0070.08318.27
5.6.190.0030.05020.61
5.6.180.3470.04720.48
5.6.170.0300.07020.41
5.6.160.0100.05320.39
5.6.150.0070.07718.18
5.6.140.0000.04018.28
5.6.130.0100.04018.18
5.6.120.0070.08321.02
5.6.110.0100.08320.93
5.6.100.0070.08721.14
5.6.90.0170.06720.89
5.6.80.0070.06720.51
5.6.70.4600.03020.40
5.5.350.0030.04020.45
5.5.340.0000.05718.02
5.5.330.0130.04320.21
5.5.320.0300.06020.27
5.5.310.0170.06320.24
5.5.300.0000.04017.96
5.5.290.0100.06717.96
5.5.280.0100.07720.66
5.5.270.0170.07020.89
5.5.260.0130.03020.97
5.5.250.0070.06020.62
5.5.240.0270.07020.08
5.4.450.0270.04719.63
5.4.440.0200.06019.45
5.4.430.0170.06319.65
5.4.420.0170.05719.52
5.4.410.0230.05019.41
5.4.400.0200.05019.11
5.4.390.0130.06019.34
5.4.380.0170.05719.20
5.4.370.0170.05319.13
5.4.360.0270.04719.34
5.4.350.0230.05018.86
5.4.340.0130.06019.02
5.4.320.0200.05018.95
5.4.310.0270.06319.33
5.4.300.0170.05719.24
5.4.290.0170.05018.96
5.4.280.0170.05719.25
5.4.270.0300.04319.25
5.4.260.0200.05019.22
5.4.250.0230.05019.25
5.4.240.0200.05019.32
5.4.230.0100.06019.07
5.4.220.0230.06319.19
5.4.210.0170.05719.21
5.4.200.0270.05019.21
5.4.190.0200.06019.11
5.4.180.0130.08019.26
5.4.170.0300.06318.97
5.4.160.0270.05719.22
5.4.150.0200.05318.84
5.4.140.0170.05316.39
5.4.130.0330.03716.41
5.4.120.0200.06016.54
5.4.110.0200.05316.66
5.4.100.0200.04716.66
5.4.90.0230.06716.50
5.4.80.0200.05716.49
5.4.70.0170.03316.45
5.4.60.0230.07016.17
5.4.50.0030.04316.48
5.4.40.0030.04716.51
5.4.30.0100.04016.48
5.4.20.0230.04016.42

preferences:
41.92 ms | 400 KiB | 5 Q