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 base64_url_encode($input) { return strtr(base64_encode($input), '+/=', '-_,'); } 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.0030.01418.43
8.3.50.0110.00716.33
8.3.40.0060.00918.67
8.3.30.0110.00418.54
8.3.20.0100.00720.34
8.3.10.0090.00021.95
8.3.00.0040.00420.94
8.2.180.0110.00417.93
8.2.170.0100.01022.96
8.2.160.0130.00022.12
8.2.150.0050.00325.66
8.2.140.0080.00024.66
8.2.130.0000.00826.16
8.2.120.0080.00019.65
8.2.110.0040.00420.52
8.2.100.0070.00719.52
8.2.90.0000.00819.11
8.2.80.0050.00317.97
8.2.70.0030.00617.38
8.2.60.0000.00917.68
8.2.50.0050.00318.10
8.2.40.0040.00422.20
8.2.30.0040.00419.13
8.2.20.0100.00017.96
8.2.10.0030.00617.98
8.2.00.0050.00317.80
8.1.280.0040.01225.92
8.1.270.0060.00322.09
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0060.00323.88
8.1.230.0000.01217.83
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.13
8.1.190.0000.00816.97
8.1.180.0000.00818.10
8.1.170.0040.00418.59
8.1.160.0040.00418.99
8.1.150.0040.00420.54
8.1.140.0050.00219.30
8.1.130.0030.00318.68
8.1.120.0090.00017.27
8.1.110.0000.00717.40
8.1.100.0030.00517.37
8.1.90.0000.00717.33
8.1.80.0000.00717.32
8.1.70.0070.00017.39
8.1.60.0030.00617.37
8.1.50.0080.00017.38
8.1.40.0040.00417.26
8.1.30.0040.00417.40
8.1.20.0060.00317.49
8.1.10.0000.00717.46
8.1.00.0040.00417.32
8.0.300.0030.00519.96
8.0.290.0060.00316.75
8.0.280.0070.00018.23
8.0.270.0070.00017.14
8.0.260.0030.00316.80
8.0.250.0030.00316.80
8.0.240.0040.00416.77
8.0.230.0000.00816.76
8.0.220.0030.00316.72
8.0.210.0040.00416.72
8.0.200.0000.00716.83
8.0.190.0030.00616.89
8.0.180.0060.00316.74
8.0.170.0030.00416.83
8.0.160.0000.00816.89
8.0.150.0000.00716.65
8.0.140.0000.01016.76
8.0.130.0070.00013.17
8.0.120.0020.00516.73
8.0.110.0040.00416.75
8.0.100.0050.00316.88
8.0.90.0040.00416.87
8.0.80.0080.00816.89
8.0.70.0000.00816.65
8.0.60.0000.00716.70
8.0.50.0000.00716.93
8.0.30.0080.00816.90
8.0.20.0130.01117.40
8.0.10.0040.00416.95
8.0.00.0120.00916.53
7.4.330.0060.00015.55
7.4.320.0000.00616.37
7.4.300.0000.00616.50
7.4.290.0000.00716.48
7.4.280.0000.00816.52
7.4.270.0000.00716.63
7.4.260.0040.00416.61
7.4.250.0030.00616.39
7.4.240.0000.00816.54
7.4.230.0030.00316.64
7.4.220.0070.01716.54
7.4.210.0040.01016.58
7.4.200.0030.00316.44
7.4.160.0080.00816.64
7.4.150.0030.01417.40
7.4.140.0110.01017.86
7.4.130.0070.01316.61
7.4.120.0120.00716.62
7.4.110.0130.00316.52
7.4.100.0040.01416.54
7.4.90.0080.00816.61
7.4.80.0130.01019.39
7.4.70.0060.01016.52
7.4.60.0140.01016.70
7.4.50.0090.00316.41
7.4.40.0080.00916.60
7.4.30.0070.01016.64
7.4.00.0090.00614.78
7.3.330.0000.00613.39
7.3.320.0020.00213.36
7.3.310.0000.00716.43
7.3.300.0060.00016.36
7.3.290.0080.00916.36
7.3.280.0110.00616.38
7.3.270.0100.00717.40
7.3.260.0100.00616.60
7.3.250.0120.01116.54
7.3.240.0120.00716.42
7.3.230.0090.00616.42
7.3.210.0040.01316.52
7.3.200.0160.00016.37
7.3.190.0100.01016.63
7.3.180.0110.00616.28
7.3.170.0090.00616.52
7.3.160.0090.00616.52
7.3.120.0100.01014.89
7.3.110.0060.01114.67
7.3.100.0100.00314.68
7.3.90.0030.01615.17
7.3.80.0100.00614.88
7.3.70.0070.01014.75
7.3.60.0030.00914.93
7.3.50.0040.01214.92
7.3.40.0030.00714.87
7.3.30.0070.01014.99
7.3.20.0030.00816.41
7.3.10.0100.00016.41
7.3.00.0060.00916.69
7.2.330.0110.00616.71
7.2.320.0080.00816.57
7.2.310.0150.00316.60
7.2.300.0100.01016.60
7.2.290.0140.00316.68
7.2.250.0070.01015.07
7.2.240.0090.00615.16
7.2.230.0070.01114.98
7.2.220.0060.00915.03
7.2.210.0060.00915.06
7.2.200.0030.00915.05
7.2.190.0030.01215.20
7.2.180.0100.00615.08
7.2.170.0000.01215.27
7.2.60.0090.00317.08
7.1.330.0030.01015.94
7.1.320.0030.00716.05
7.1.310.0070.00715.80
7.1.300.0060.00915.86
7.1.290.0040.00416.01
7.1.280.0030.00915.73
7.1.270.0040.01115.66
7.1.260.0070.01015.76
7.1.200.0040.01115.75
7.1.70.0160.00617.01
7.1.60.0270.01733.34
7.1.50.0270.01733.09
7.1.40.0270.01332.73
7.1.30.0370.00732.55
7.1.20.0370.01032.71
7.1.10.0270.00715.04
7.1.00.0300.00014.98
7.0.200.0470.00715.09
7.0.190.0200.01015.03
7.0.180.0270.00314.61
7.0.170.0170.01314.58
7.0.160.0230.01014.48
7.0.150.0170.01314.48
7.0.140.0200.01314.55
7.0.130.0200.01014.93
7.0.120.0300.00714.93
7.0.110.0270.00314.79
7.0.100.0430.01014.61
7.0.90.0230.01014.61
7.0.80.0330.01014.60
7.0.70.0270.00714.54
7.0.60.0230.01014.54
7.0.50.0270.00714.56
7.0.40.0200.01014.82
7.0.30.0300.01014.50
7.0.20.0270.00714.74
7.0.10.0230.01014.63
7.0.00.0200.01014.63

preferences:
52.63 ms | 400 KiB | 5 Q