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); } 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.0110.00616.50
8.3.50.0110.00716.14
8.3.40.0120.00318.50
8.3.30.0040.01118.58
8.3.20.0070.01320.33
8.3.10.0120.00621.96
8.3.00.0050.00320.95
8.2.180.0060.00918.16
8.2.170.0070.00722.96
8.2.160.0030.01322.25
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00422.21
8.2.120.0110.00426.35
8.2.110.0040.01419.25
8.2.100.0060.00617.66
8.2.90.0030.00619.04
8.2.80.0060.00317.97
8.2.70.0000.00917.38
8.2.60.0040.00417.90
8.2.50.0060.00318.10
8.2.40.0040.00422.32
8.2.30.0040.00419.07
8.2.20.0030.00617.82
8.2.10.0040.00417.99
8.2.00.0070.00017.84
8.1.280.0150.00625.92
8.1.270.0110.00422.14
8.1.260.0050.00226.35
8.1.250.0050.00228.09
8.1.240.0030.00522.11
8.1.230.0090.00317.77
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0060.00317.13
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0050.00318.50
8.1.160.0040.00418.96
8.1.150.0030.00520.48
8.1.140.0000.00719.40
8.1.130.0000.00718.81
8.1.120.0000.00817.41
8.1.110.0060.00317.32
8.1.100.0040.00417.29
8.1.90.0040.00417.23
8.1.80.0040.00417.20
8.1.70.0030.00317.25
8.1.60.0040.00417.41
8.1.50.0000.00917.34
8.1.40.0080.00017.25
8.1.30.0040.00417.44
8.1.20.0000.00817.36
8.1.10.0050.00317.27
8.1.00.0040.00417.28
8.0.300.0080.00019.96
8.0.290.0050.00316.75
8.0.280.0030.00318.31
8.0.270.0030.00317.13
8.0.260.0070.00016.63
8.0.250.0030.00316.83
8.0.240.0000.00716.78
8.0.230.0030.00516.77
8.0.220.0050.00316.82
8.0.210.0030.00316.83
8.0.200.0030.00316.77
8.0.190.0050.00316.81
8.0.180.0000.00716.80
8.0.170.0030.00316.86
8.0.160.0050.00216.80
8.0.150.0000.00716.74
8.0.140.0060.00316.70
8.0.130.0040.00413.20
8.0.120.0040.00416.80
8.0.110.0030.00516.82
8.0.100.0030.00516.73
8.0.90.0040.00416.71
8.0.80.0090.00616.83
8.0.70.0040.00416.86
8.0.60.0040.00416.66
8.0.50.0070.00016.73
8.0.30.0110.00917.02
8.0.20.0080.01017.40
8.0.10.0080.00016.88
8.0.00.0130.00316.70
7.4.330.0050.00015.55
7.4.320.0060.00016.48
7.4.300.0060.00016.53
7.4.290.0000.00716.68
7.4.280.0040.00416.53
7.4.270.0080.00016.55
7.4.260.0070.00016.43
7.4.250.0000.00716.61
7.4.240.0050.00216.55
7.4.230.0000.00716.66
7.4.220.0130.00716.66
7.4.210.0130.00016.64
7.4.200.0000.00716.64
7.4.160.0120.00416.48
7.4.150.0090.00917.40
7.4.140.0130.01117.86
7.4.130.0160.00316.68
7.4.120.0120.00916.60
7.4.110.0110.00716.64
7.4.100.0030.01516.69
7.4.90.0100.01316.63
7.4.80.0140.00419.39
7.4.70.0060.00916.63
7.4.60.0060.01116.46
7.4.50.0060.00616.37
7.4.40.0070.01016.30
7.4.30.0090.01216.50
7.4.10.0100.01014.97
7.4.00.0070.01114.79
7.3.330.0050.00013.41
7.3.320.0050.00013.30
7.3.310.0070.00016.43
7.3.300.0000.00716.31
7.3.290.0110.00916.43
7.3.280.0090.00716.42
7.3.270.0080.01517.40
7.3.260.0130.00416.41
7.3.250.0100.00816.48
7.3.240.0070.01016.62
7.3.230.0000.01616.52
7.3.210.0060.01316.49
7.3.200.0100.01016.38
7.3.190.0160.00316.66
7.3.180.0110.00516.46
7.3.170.0000.01816.45
7.3.160.0090.00816.57
7.3.130.0140.00414.59
7.3.120.0060.01314.95
7.3.110.0100.01014.93
7.3.100.0060.00914.98
7.3.90.0080.00814.67
7.3.80.0030.00614.87
7.3.70.0110.00714.71
7.3.60.0070.01014.97
7.3.50.0030.00614.85
7.3.40.0000.01214.73
7.3.30.0040.01114.64
7.3.20.0040.01116.66
7.3.10.0100.00616.66
7.3.00.0100.00616.54
7.2.330.0000.01916.45
7.2.320.0100.00716.72
7.2.310.0130.01016.57
7.2.300.0030.01316.66
7.2.290.0150.00416.67
7.2.260.0060.01315.18
7.2.250.0070.01115.27
7.2.240.0030.01415.01
7.2.230.0150.00315.10
7.2.220.0030.00914.61
7.2.210.0000.01515.16
7.2.200.0000.01415.22
7.2.190.0150.00414.94
7.2.180.0030.00715.21
7.2.170.0030.01515.19
7.2.160.0070.01114.94
7.2.150.0030.01016.93
7.2.140.0140.00316.93
7.2.130.0070.01016.81
7.2.120.0040.00816.86
7.2.110.0100.00316.77
7.2.100.0100.00716.95
7.2.90.0040.00716.78
7.2.80.0090.00417.03
7.2.70.0090.00316.82
7.2.60.0510.01116.10
7.2.50.0030.01316.90
7.2.40.0140.00017.20
7.2.30.0060.00917.14
7.2.20.0100.01017.04
7.2.10.0080.00417.04
7.2.00.0010.01218.17
7.1.330.0040.00715.52
7.1.320.0100.00715.71
7.1.310.0040.00716.01
7.1.300.0070.01015.83
7.1.290.0000.00915.77
7.1.280.0090.00915.75
7.1.270.0090.00315.43
7.1.260.0110.00415.44
7.1.250.0070.00716.01
7.1.240.0030.01015.75
7.1.230.0080.00815.89
7.1.220.0100.00615.98
7.1.210.0000.00915.91
7.1.200.0030.01015.69
7.1.190.0070.00715.76
7.1.180.0070.00715.82
7.1.170.0070.00315.76
7.1.160.0060.00815.78
7.1.150.0030.01215.74
7.1.140.0090.00015.82
7.1.130.0040.01115.78
7.1.120.0120.00315.68
7.1.110.0000.01515.63
7.1.100.0040.00617.07
7.1.90.0070.00715.94
7.1.80.0070.00715.27
7.1.70.0020.00916.25
7.1.60.0320.01024.58
7.1.50.0440.01024.46
7.1.40.0250.01324.25
7.1.30.0410.01124.23
7.1.20.0310.00924.40
7.1.10.0260.00415.22
7.1.00.0250.00515.31
7.0.330.0060.00315.48
7.0.320.0110.00415.29
7.0.310.0030.01215.54
7.0.300.0090.00315.34
7.0.290.0030.01315.58
7.0.280.0020.01215.33
7.0.270.0050.00515.40
7.0.260.0000.01515.48
7.0.250.0070.00715.43
7.0.240.0050.00515.51
7.0.230.0070.00715.27
7.0.220.0060.00315.23
7.0.210.0050.00915.30
7.0.200.0270.00815.27
7.0.190.0230.00815.15
7.0.180.0270.00814.85
7.0.170.0250.00714.96
7.0.160.0270.00614.96
7.0.150.0240.00514.96
7.0.140.0260.00715.13
7.0.130.0260.00515.17
7.0.120.0240.00815.00
7.0.110.0250.00514.95
7.0.100.0220.01014.88
7.0.90.0220.01014.95
7.0.80.0250.00914.93
7.0.70.0250.00615.06
7.0.60.0240.01114.90
7.0.50.0310.00315.06
7.0.40.0220.01114.14
7.0.30.0270.00814.17
7.0.20.0430.01214.06
7.0.10.0280.00813.91
7.0.00.0260.00814.09
5.6.400.0120.00614.10
5.6.390.0030.00914.40
5.6.380.0070.01014.55
5.6.370.0040.00414.63
5.6.360.0000.01214.18
5.6.350.0110.00314.07
5.6.340.0070.01414.60
5.6.330.0070.01014.27
5.6.320.0120.00314.36
5.6.310.0000.01314.43
5.6.300.0090.00314.60
5.6.290.0060.00614.61
5.6.280.0000.01314.42
5.6.270.0000.01414.43
5.6.260.0050.00514.26
5.6.250.0040.00714.24
5.6.240.0000.01414.35
5.6.230.0130.00314.34
5.6.220.0080.00614.18
5.6.210.0070.01014.58
5.6.200.0150.00014.41
5.6.190.0090.00614.18
5.6.180.0070.00714.39
5.6.170.0000.01314.27
5.6.160.0000.01514.44
5.6.150.0030.01214.20
5.6.140.0000.01414.43
5.6.130.0090.00614.14
5.6.120.0120.00014.27
5.6.110.0100.00314.46
5.6.100.0030.01014.22
5.6.90.0100.00314.09
5.6.80.0060.00914.20
5.6.70.0030.00614.34
5.6.60.0000.01014.28
5.6.50.0030.01014.31
5.6.40.0070.00314.28
5.6.30.0040.00714.20
5.6.20.0030.00614.25
5.6.10.0110.00314.34
5.6.00.0100.00614.10

preferences:
51.36 ms | 400 KiB | 5 Q