3v4l.org

run code in 300+ PHP versions simultaneously
<?php $origin_cookie = base64_decode('ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSEV4sFxFeaAw'); function xor_encrypt($in) { $key = '<censored>'; $text = $in; $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } print xor_encrypt($origin_cookie); ?>

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.40.0070.01118.79
8.3.30.0090.00618.84
8.3.20.0070.00019.34
8.3.10.0110.00423.52
8.3.00.0020.00520.81
8.2.170.0060.01022.96
8.2.160.0140.00019.34
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0040.00420.52
8.2.120.0070.00026.35
8.2.110.0070.00319.39
8.2.100.0040.00819.79
8.2.90.0040.00419.33
8.2.80.0000.00917.97
8.2.70.0070.00317.38
8.2.60.0030.00517.93
8.2.50.0000.00818.10
8.2.40.0000.00820.61
8.2.30.0040.00419.44
8.2.20.0030.00617.68
8.2.10.0040.00418.17
8.2.00.0000.00718.18
8.1.270.0040.00423.72
8.1.260.0050.00328.09
8.1.250.0040.00428.09
8.1.240.0090.00021.50
8.1.230.0000.01117.82
8.1.220.0000.00817.79
8.1.210.0080.00018.77
8.1.200.0000.00817.23
8.1.190.0080.00017.23
8.1.180.0030.00618.10
8.1.170.0040.00418.51
8.1.160.0040.00419.02
8.1.150.0030.00318.91
8.1.140.0030.00619.51
8.1.130.0030.00317.64
8.1.120.0070.00017.27
8.1.110.0060.00317.38
8.1.100.0030.00617.44
8.1.90.0000.00817.35
8.1.80.0000.00817.40
8.1.70.0040.00417.31
8.1.60.0050.00317.49
8.1.50.0040.00417.58
8.1.40.0000.00717.44
8.1.30.0000.00817.68
8.1.20.0050.00517.74
8.1.10.0030.00517.59
8.1.00.0070.00017.48
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.36
8.0.270.0070.00017.22
8.0.260.0060.00017.28
8.0.250.0040.00416.86
8.0.240.0000.00716.98
8.0.230.0040.00416.97
8.0.220.0000.00716.96
8.0.210.0030.00316.88
8.0.200.0040.00416.95
8.0.190.0040.00416.98
8.0.180.0050.00316.96
8.0.170.0000.00816.83
8.0.160.0040.00416.86
8.0.150.0070.00016.91
8.0.140.0000.00716.86
8.0.130.0030.00313.28
8.0.120.0030.00516.89
8.0.110.0040.00416.91
8.0.100.0070.00016.90
8.0.90.0050.00216.75
8.0.80.0060.00916.94
8.0.70.0000.00716.86
8.0.60.0040.00416.95
8.0.50.0040.00416.85
8.0.30.0130.00817.00
8.0.20.0120.01017.40
8.0.10.0040.00416.88
8.0.00.0080.00916.97
7.4.330.0020.00215.08
7.4.320.0030.00316.55
7.4.300.0000.00616.63
7.4.290.0000.00716.49
7.4.280.0040.00416.66
7.4.270.0040.00416.64
7.4.260.0060.00316.56
7.4.250.0000.00716.61
7.4.240.0030.00316.68
7.4.230.0030.00316.55
7.4.220.0110.00716.69
7.4.210.0120.00316.64
7.4.200.0000.00816.68
7.4.160.0170.00016.27
7.4.150.0070.01117.40
7.4.140.0120.00517.86
7.4.130.0100.01216.50
7.4.120.0060.01016.69
7.4.110.0070.01016.55
7.4.100.0140.00316.50
7.4.90.0120.00616.59
7.4.80.0070.01019.39
7.4.70.0110.01116.59
7.4.60.0090.01216.45
7.4.50.0070.00716.70
7.4.40.0100.00716.34
7.4.30.0100.01016.58
7.4.00.0110.00314.80
7.3.330.0030.00313.21
7.3.320.0020.00213.24
7.3.310.0000.00816.41
7.3.300.0000.00716.39
7.3.290.0090.00816.39
7.3.280.0090.00916.37
7.3.270.0150.00317.40
7.3.260.0080.01116.42
7.3.250.0120.00616.36
7.3.240.0110.00816.48
7.3.230.0100.00716.52
7.3.210.0040.01616.67
7.3.200.0090.01016.69
7.3.190.0130.00616.36
7.3.180.0110.01116.32
7.3.170.0090.00916.61
7.3.160.0100.00716.64
7.2.330.0030.01316.72
7.2.320.0060.01216.77
7.2.310.0070.01016.49
7.2.300.0100.00716.68
7.2.290.0110.00716.79
7.2.110.0070.00716.45
7.2.60.0060.01016.82
7.2.00.0030.00919.41
7.1.200.0020.01215.84
7.1.100.0030.01018.25
7.1.70.0050.00316.84
7.1.60.0060.00919.47
7.1.00.0000.08022.45
7.0.200.0070.00714.93
7.0.70.1170.06319.91
7.0.60.0870.05720.03
7.0.50.0970.05020.32
7.0.40.0900.05720.25
7.0.30.0900.06720.38
7.0.20.1030.04320.39
7.0.10.0900.05320.42
7.0.00.0900.05320.43
5.6.280.0000.07720.99
5.6.220.0630.05720.73
5.6.210.0800.05320.67
5.6.200.0730.06721.09
5.6.190.0730.06721.16
5.6.180.0870.06721.02
5.6.170.0770.06021.10
5.6.160.0730.05321.14
5.6.150.0770.06021.08
5.6.140.0800.06021.08
5.6.130.0830.05721.11
5.6.120.0170.06021.00
5.6.110.0330.06321.15
5.6.100.0770.05321.19
5.6.90.1030.06321.00
5.6.80.0830.06320.41
5.6.70.0630.06020.46
5.6.60.0700.05320.48
5.6.50.0800.05320.58
5.6.40.0800.06720.35
5.6.30.0800.07320.53
5.6.20.0270.05720.52
5.6.10.0270.05020.50
5.6.00.0170.05320.44
5.5.360.0730.06720.49
5.5.350.0770.05720.48
5.5.340.0800.08020.88
5.5.330.0870.05720.78
5.5.320.0870.06720.84
5.5.310.0830.06021.00
5.5.300.0830.05320.96
5.5.290.0770.05720.82
5.5.280.0130.07020.95
5.5.270.0770.05720.92
5.5.260.0770.06320.92
5.5.250.0930.05320.69
5.5.240.0770.05320.35
5.5.230.0800.05320.30
5.5.220.0830.06020.30
5.5.210.0800.05320.32
5.5.200.0700.06020.13
5.5.190.0700.06320.05
5.5.180.0600.05720.27
5.5.160.0230.06320.24
5.5.150.0130.05720.27
5.5.140.0270.07020.18
5.5.130.0230.05020.32
5.5.120.0270.06720.17
5.5.110.0170.05720.29
5.5.100.0270.04719.99
5.5.90.0200.05720.19
5.5.80.0200.05320.03
5.5.70.0070.06720.18
5.5.60.0100.06320.02
5.5.50.0170.05719.96
5.5.40.0300.04320.11
5.5.30.0330.05020.17
5.5.20.0330.04720.11
5.5.10.0100.06320.12
5.5.00.0230.05320.17

preferences:
52.45 ms | 400 KiB | 5 Q