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); } ?>

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.0160.00616.34
8.3.50.0160.00221.06
8.3.40.0140.00418.54
8.3.30.0110.00318.61
8.3.20.0040.00420.16
8.3.10.0000.00821.73
8.3.00.0080.00019.56
8.2.180.0120.00316.32
8.2.170.0100.00722.96
8.2.160.0130.00720.33
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0080.00026.16
8.2.120.0040.00417.48
8.2.110.0110.00022.08
8.2.100.0060.00617.50
8.2.90.0080.00019.05
8.2.80.0080.00017.97
8.2.70.0000.00817.25
8.2.60.0030.00617.68
8.2.50.0000.00818.07
8.2.40.0060.00319.38
8.2.30.0000.00719.68
8.2.20.0040.00417.61
8.2.10.0040.00417.86
8.2.00.0000.00717.85
8.1.280.0090.00925.92
8.1.270.0070.01122.01
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0100.00022.48
8.1.230.0090.00317.42
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0030.00617.00
8.1.190.0050.00317.10
8.1.180.0060.00318.10
8.1.170.0000.00818.58
8.1.160.0050.00221.96
8.1.150.0070.00018.69
8.1.140.0060.00317.40
8.1.130.0040.00417.54
8.1.120.0040.00717.36
8.1.110.0000.00717.36
8.1.100.0030.00517.23
8.1.90.0070.00017.30
8.1.80.0020.00517.37
8.1.70.0030.00317.33
8.1.60.0000.00717.32
8.1.50.0040.00417.43
8.1.40.0000.00817.29
8.1.30.0060.00317.47
8.1.20.0030.00517.42
8.1.10.0030.00617.39
8.1.00.0030.00517.38
8.0.300.0000.00718.77
8.0.290.0030.00316.58
8.0.280.0030.00318.21
8.0.270.0000.00717.15
8.0.260.0080.00017.15
8.0.250.0070.00016.73
8.0.240.0000.00616.73
8.0.230.0080.00016.85
8.0.220.0030.00316.76
8.0.210.0000.00816.76
8.0.200.0060.00016.84
8.0.190.0050.00216.74
8.0.180.0030.00516.71
8.0.170.0000.00716.71
8.0.160.0000.00716.77
8.0.150.0040.00416.84
8.0.140.0030.00416.75
8.0.130.0000.00513.23
8.0.120.0000.00816.75
8.0.110.0030.00516.75
8.0.100.0070.00016.57
8.0.90.0040.00416.62
8.0.80.0070.00716.77
8.0.70.0070.00016.65
8.0.60.0040.00416.77
8.0.50.0050.00216.82
8.0.30.0070.01116.92
8.0.20.0110.00817.40
8.0.10.0050.00216.96
8.0.00.0130.00616.65
7.4.330.0050.00015.08
7.4.320.0000.00716.31
7.4.300.0030.00316.47
7.4.290.0040.00516.54
7.4.280.0000.00716.51
7.4.270.0050.00316.37
7.4.260.0030.00416.28
7.4.250.0040.00416.25
7.4.240.0030.00516.47
7.4.230.0040.00416.47
7.4.220.0140.00616.33
7.4.210.0050.01516.44
7.4.200.0070.00016.54
7.4.160.0120.00416.39
7.4.150.0180.00617.40
7.4.140.0110.01117.86
7.4.130.0090.00916.41
7.4.120.0090.00816.48
7.4.110.0120.01216.45
7.4.100.0070.01716.49
7.4.90.0160.00316.33
7.4.80.0120.00619.39
7.4.70.0120.00316.23
7.4.60.0030.01416.25
7.4.50.0040.00416.40
7.4.40.0030.01316.46
7.4.30.0060.01216.40
7.4.00.0080.00814.61
7.3.330.0030.00313.05
7.3.320.0000.00513.19
7.3.310.0060.00316.14
7.3.300.0030.00316.06
7.3.290.0070.00016.19
7.3.280.0080.01116.17
7.3.270.0110.00717.40
7.3.260.0100.00716.26
7.3.250.0100.01316.18
7.3.240.0130.01016.23
7.3.230.0110.00716.39
7.3.210.0130.00316.18
7.3.200.0110.00816.50
7.3.190.0090.00916.09
7.3.180.0060.01616.29
7.3.170.0150.00616.38
7.3.160.0060.01216.21
7.3.00.0100.00716.39
7.2.330.0060.01016.27
7.2.320.0100.00616.56
7.2.310.0080.00916.52
7.2.300.0060.00916.53
7.2.290.0100.00816.55
7.2.130.0000.01416.70
7.2.120.0040.00916.72
7.2.110.0090.00316.15
7.2.100.0100.00716.63
7.2.90.0050.00816.28
7.2.80.0060.00616.60
7.2.70.0120.00316.41
7.2.60.0070.00716.64
7.2.50.0030.01316.25
7.2.40.0040.01116.81
7.2.30.0140.00416.41
7.2.20.0070.01016.42
7.2.10.0120.00316.28
7.2.00.0070.00517.81
7.1.250.0070.01015.40
7.1.240.0040.00815.67
7.1.230.0100.00715.46
7.1.220.0130.00315.32
7.1.210.0170.00315.14
7.1.200.0130.00315.63
7.1.190.0060.01015.59
7.1.180.0140.00015.48
7.1.170.0070.00715.64
7.1.160.0130.00315.64
7.1.150.0060.00915.68
7.1.140.0070.00715.67
7.1.130.0100.00315.56
7.1.120.0130.00315.37
7.1.110.0040.00715.41
7.1.100.0090.00516.80
7.1.90.0150.00315.34
7.1.80.0120.00615.78
7.1.70.0090.00916.31
7.1.60.0070.00816.41
7.1.50.0110.01316.15
7.1.40.0090.00915.45
7.1.30.0220.00315.71
7.1.20.0160.01015.57
7.1.10.0170.00715.46
7.1.00.0110.04018.96
7.0.330.0140.00415.34
7.0.320.0130.00315.29
7.0.310.0090.00615.28
7.0.300.0060.00915.20
7.0.290.0100.00715.07
7.0.280.0080.00414.97
7.0.270.0060.00615.18
7.0.260.0110.00315.13
7.0.250.0040.00415.32
7.0.240.0070.00715.07
7.0.230.0190.00315.21
7.0.220.0150.00614.93
7.0.210.0160.00015.18
7.0.200.0100.00715.77
7.0.190.0080.01215.11
7.0.180.0170.00315.31
7.0.170.0160.00515.39
7.0.160.0130.00815.14
7.0.150.0080.01115.30
7.0.140.0180.00014.96
7.0.130.0060.01214.87
7.0.120.0150.00715.30
7.0.110.0150.01115.01
7.0.100.0090.01215.00
7.0.90.0140.00715.21
7.0.80.0130.00315.00
7.0.70.0090.00615.35
7.0.60.0080.03817.60
7.0.50.0110.02016.63
7.0.40.0100.04516.50
7.0.30.0140.02416.67
7.0.20.0150.02716.73
7.0.10.0080.04316.74
7.0.00.0070.04316.69
5.6.380.0030.00513.88
5.6.370.0040.00414.04
5.6.360.0060.00314.05
5.6.350.0030.00714.04
5.6.340.0030.01114.41
5.6.330.0100.00714.28
5.6.320.0060.00614.34
5.6.310.0030.01014.09
5.6.300.0120.00614.05
5.6.290.0080.00614.27
5.6.280.0050.02817.66
5.6.270.0000.01514.24
5.6.260.0030.01014.12
5.6.250.0070.00713.96
5.6.240.0060.00614.06
5.6.230.0040.00414.21
5.6.220.0100.00314.14
5.6.210.0060.04017.42
5.6.200.0070.04316.02
5.6.190.0100.02717.32
5.6.180.1790.02417.29
5.6.170.0190.04517.21
5.6.160.0070.04517.17
5.6.150.0020.03016.11
5.6.140.0040.02416.10
5.6.130.0060.04016.24
5.6.120.0050.02517.53
5.6.110.0140.03517.49
5.6.100.0100.04317.43
5.6.90.0140.04017.58
5.6.80.0030.04317.21
5.6.70.1650.02017.08
5.6.60.0100.00313.85
5.6.50.0080.00814.10
5.6.40.0030.01013.99
5.6.30.0100.00714.00
5.6.20.0090.00313.70
5.6.10.0110.00414.03
5.6.00.0060.00613.81
5.5.380.0090.00011.05
5.5.370.0060.00610.97
5.5.360.0060.00611.01
5.5.350.0080.03515.65
5.5.340.0000.04914.49
5.5.330.0050.02015.56
5.5.320.0170.04515.62
5.5.310.0150.02815.69
5.5.300.0060.01814.33
5.5.290.0040.02514.38
5.5.280.0030.02915.79
5.5.270.0080.04115.87
5.5.260.0070.02015.63
5.5.250.0140.03715.77
5.5.240.0140.03515.43
5.5.230.0040.00410.66
5.5.220.0040.00410.59
5.5.210.0080.00410.68
5.5.200.0040.00710.61
5.5.190.0060.00010.60
5.5.180.0030.00710.90
5.5.170.0000.01010.96
5.5.160.0030.00310.49
5.5.150.0030.00710.97
5.5.140.0030.00610.87
5.5.130.0040.00410.49
5.5.120.0050.00510.97
5.5.110.0030.00910.86
5.5.100.0070.00010.79
5.5.90.0060.00310.59
5.5.80.0070.00310.35
5.5.70.0060.00311.05
5.5.60.0080.00410.87
5.5.50.0040.00410.66
5.5.40.0080.00010.89
5.5.30.0080.00011.04
5.5.20.0030.00310.63
5.5.10.0030.00310.76
5.5.00.0030.00910.67
5.4.450.0130.03215.09
5.4.440.0030.04115.15
5.4.430.0160.02715.25
5.4.420.0120.03015.18
5.4.410.0080.03115.09
5.4.400.0120.03914.83
5.4.390.0150.03714.88
5.4.380.0210.03215.03
5.4.370.0160.03414.70
5.4.360.0230.02814.98
5.4.350.0190.03314.91
5.4.340.0150.03514.85
5.4.330.0000.00910.83
5.4.320.0120.02915.03
5.4.310.0130.03014.86
5.4.300.0070.03514.88
5.4.290.0060.03314.94
5.4.280.0080.03214.94
5.4.270.0100.03215.04
5.4.260.0130.02714.81
5.4.250.0080.04214.90
5.4.240.0160.03814.98
5.4.230.0130.03114.91
5.4.220.0150.02515.06
5.4.210.0100.03215.04
5.4.200.0120.02814.88
5.4.190.0130.03014.96
5.4.180.0150.02515.00
5.4.170.0130.02715.09
5.4.160.0150.02714.68
5.4.150.0130.02814.76
5.4.140.0080.03313.39
5.4.130.0110.02613.72
5.4.120.0100.02713.45
5.4.110.0080.03213.63
5.4.100.0100.03013.73
5.4.90.0080.03013.40
5.4.80.0120.02813.44
5.4.70.0070.02213.45
5.4.60.0140.02413.67
5.4.50.0000.03213.46
5.4.40.0050.03213.63
5.4.30.0040.02913.60
5.4.20.0170.02013.69
5.4.10.0000.01110.40
5.4.00.0000.00610.77

preferences:
71.33 ms | 401 KiB | 5 Q