3v4l.org

run code in 300+ PHP versions simultaneously
<?php $email = htmlentities('cal@gmail.com', ENT_QUOTES); $private_key = '6KzVA_2qy'; //possible de la changer function f_crypt($private_key, $str_to_crypt) { $private_key = md5($private_key); $letter = -1; $new_str = ''; $strlen = strlen($str_to_crypt); for ($i = 0; $i < $strlen; $i++) { $letter++; if ($letter > 31) { $letter = 0; } $neword = ord($str_to_crypt{$i}) + ord($private_key{$letter}); if ($neword > 255) { $neword -= 256; } $new_str .= chr($neword); } return base64_url_encode($new_str); } ECHO f_crypt($private_key, $email);

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.00716.50
8.3.50.0130.00616.63
8.3.40.0110.00418.71
8.3.30.0110.00418.73
8.3.20.0150.00320.06
8.3.10.0110.00321.73
8.3.00.0140.00420.65
8.2.180.0120.00318.41
8.2.170.0030.01422.96
8.2.160.0100.00722.20
8.2.150.0060.00324.18
8.2.140.0100.00724.66
8.2.130.0040.00421.98
8.2.120.0140.00426.35
8.2.110.0100.00620.26
8.2.100.0090.00317.72
8.2.90.0040.00419.08
8.2.80.0040.00417.97
8.2.70.0030.00617.38
8.2.60.0040.00417.80
8.2.50.0040.00418.10
8.2.40.0000.00922.32
8.2.30.0040.00419.00
8.2.20.0030.00718.00
8.2.10.0060.00317.84
8.2.00.0000.00717.92
8.1.270.0040.00422.20
8.1.260.0080.00026.35
8.1.250.0000.00828.09
8.1.240.0000.00923.96
8.1.230.0070.00417.83
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0080.00017.10
8.1.180.0000.00718.10
8.1.170.0040.00418.39
8.1.160.0000.00718.91
8.1.150.0030.00520.42
8.1.140.0020.00519.36
8.1.130.0070.00018.67
8.1.120.0100.00017.36
8.1.110.0000.00717.37
8.1.100.0000.00717.36
8.1.90.0000.00717.39
8.1.80.0000.00717.40
8.1.70.0000.00717.29
8.1.60.0060.00317.44
8.1.50.0030.00617.29
8.1.40.0000.00717.27
8.1.30.0000.00717.52
8.1.20.0080.00017.50
8.1.10.0030.00517.28
8.1.00.0040.00417.25
8.0.300.0080.00019.90
8.0.290.0000.00816.63
8.0.280.0030.00318.22
8.0.270.0000.00717.04
8.0.260.0030.00316.77
8.0.250.0000.00716.77
8.0.240.0070.00016.75
8.0.230.0030.00616.89
8.0.220.0030.00316.79
8.0.210.0040.00416.87
8.0.200.0070.00016.88
8.0.190.0030.00616.89
8.0.180.0000.00716.83
8.0.170.0030.00316.88
8.0.160.0000.00716.71
8.0.150.0000.00816.75
8.0.140.0030.00616.68
8.0.130.0070.00213.29
8.0.120.0050.00216.71
8.0.110.0040.00416.80
8.0.100.0030.00516.69
8.0.90.0030.00516.90
8.0.80.0030.01216.79
8.0.70.0070.00016.89
8.0.60.0070.00016.63
8.0.50.0040.00416.80
8.0.30.0080.00717.01
8.0.20.0100.01217.40
8.0.10.0000.00816.78
8.0.00.0070.01016.62
7.4.330.0000.00515.55
7.4.320.0030.00316.58
7.4.300.0000.00716.55
7.4.290.0030.00316.56
7.4.280.0030.00416.54
7.4.270.0050.00216.68
7.4.260.0060.00316.55
7.4.250.0000.00716.63
7.4.240.0040.00416.64
7.4.230.0070.00016.37
7.4.220.0180.00716.55
7.4.210.0060.00916.59
7.4.200.0030.00516.44
7.4.160.0120.00416.56
7.4.150.0090.00917.40
7.4.140.0060.01217.86
7.4.130.0120.00616.44
7.4.120.0070.01316.47
7.4.110.0100.00716.45
7.4.100.0130.00416.58
7.4.90.0090.00916.53
7.4.80.0040.01719.39
7.4.70.0060.00916.61
7.4.60.0070.01116.72
7.4.50.0060.00916.63
7.4.40.0030.01316.73
7.4.30.0090.01516.62
7.4.00.0120.00614.75
7.3.330.0060.00013.23
7.3.320.0030.00313.26
7.3.310.0070.00016.43
7.3.300.0000.00716.46
7.3.290.0080.00816.43
7.3.280.0080.00916.40
7.3.270.0150.00917.40
7.3.260.0090.01016.56
7.3.250.0130.00716.55
7.3.240.0100.01016.68
7.3.230.0080.00916.38
7.3.210.0060.01116.47
7.3.200.0040.01216.45
7.3.190.0060.00916.57
7.3.180.0110.00616.39
7.3.170.0090.00916.43
7.3.160.0100.01716.63
7.3.10.0160.00816.46
7.3.00.0100.00716.70
7.2.330.0070.01416.80
7.2.320.0120.00916.70
7.2.310.0150.00316.45
7.2.300.0080.01216.64
7.2.290.0100.00716.74
7.2.130.0070.00916.81
7.2.120.0050.01217.00
7.2.110.0100.01116.75
7.2.100.0100.00316.76
7.2.90.0060.00916.87
7.2.80.0080.00616.88
7.2.70.0080.00716.77
7.2.60.0350.00516.21
7.2.50.0090.00616.75
7.2.40.0100.00516.99
7.2.30.0060.00616.81
7.2.20.0030.01217.03
7.2.10.0040.00517.00
7.2.00.0040.00717.73
7.1.250.0070.00515.78
7.1.240.0080.01115.54
7.1.230.0030.01015.89
7.1.220.0100.00715.98
7.1.210.0080.00815.68
7.1.200.0050.00815.70
7.1.190.0080.00515.88
7.1.180.0110.00315.94
7.1.170.0000.01615.61
7.1.160.0040.01115.88
7.1.150.0090.00915.93
7.1.140.0100.00615.88
7.1.130.0060.00915.92
7.1.120.0070.00715.71
7.1.110.0100.00616.00
7.1.100.0030.00916.98
7.1.90.0060.00915.46
7.1.80.0060.00915.89
7.1.70.0050.00816.60
7.1.60.0420.00524.31
7.1.50.0370.00824.42
7.1.40.0630.00724.28
7.1.30.0590.00824.27
7.1.20.0370.00824.26
7.1.10.0250.01415.22
7.1.00.0310.00815.32
7.0.330.0140.00315.43
7.0.320.0000.01615.20
7.0.310.0230.00415.46
7.0.300.0070.00715.52
7.0.290.0150.00415.36
7.0.280.0120.00615.26
7.0.270.0000.01215.25
7.0.260.0130.00015.45
7.0.250.0070.00715.29
7.0.240.0030.00515.52
7.0.230.0070.00715.27
7.0.220.0080.00815.39
7.0.210.0030.01315.18
7.0.200.0330.00715.19
7.0.190.0310.00915.29
7.0.180.0380.00814.87
7.0.170.0320.00915.14
7.0.160.0280.01114.87
7.0.150.0280.00814.96
7.0.140.0280.00915.05
7.0.130.0300.00915.03
7.0.120.0230.01114.95
7.0.110.0310.00815.08
7.0.100.0300.01015.00
7.0.90.0280.00814.99
7.0.80.0320.00715.06
7.0.70.0260.00914.79
7.0.60.0320.00714.83
7.0.50.0250.00815.05
7.0.40.0300.00513.93
7.0.30.0250.00814.07
7.0.20.0250.01014.28
7.0.10.0280.00814.00
7.0.00.0270.00714.09
5.6.380.0040.01214.25

preferences:
42.35 ms | 400 KiB | 5 Q