3v4l.org

run code in 300+ PHP versions simultaneously
<?php 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; } function xor_two($in1,$in2) { $text = $in1; $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $in2[$i]; } return $outText; } $defaultdata = array( "showpassword"=>"no", "bgcolor"=>"#ffffff"); print(json_encode($defaultdata)); print("\n"); print(xor_two(base64_decode("ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSRwh6QUcIaAw"), "{\"showpassword\":\"no\",\"bgcolor\":\"#ffffff\"}")); ;

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.0140.00716.50
8.3.50.0070.00717.95
8.3.40.0090.00618.73
8.3.30.0000.01418.71
8.3.20.0040.00420.66
8.3.10.0040.00423.40
8.3.00.0080.00021.75
8.2.180.0070.01416.38
8.2.170.0110.01122.96
8.2.160.0070.01022.15
8.2.150.0030.00524.18
8.2.140.0000.00824.66
8.2.130.0050.00319.96
8.2.120.0070.00026.35
8.2.110.0040.00821.11
8.2.100.0030.00918.03
8.2.90.0050.00319.17
8.2.80.0090.00018.04
8.2.70.0000.00817.63
8.2.60.0040.00418.05
8.2.50.0070.00418.10
8.2.40.0000.00720.65
8.2.30.0040.00419.32
8.2.20.0020.00518.04
8.2.10.0040.00418.19
8.2.00.0040.00417.80
8.1.280.0120.00925.92
8.1.270.0040.00422.21
8.1.260.0080.00028.09
8.1.250.0040.00428.09
8.1.240.0060.00322.14
8.1.230.0070.00417.83
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0060.00317.22
8.1.190.0090.00217.13
8.1.180.0000.00818.10
8.1.170.0080.00018.50
8.1.160.0000.00723.91
8.1.150.0070.00020.18
8.1.140.0000.00719.52
8.1.130.0050.00317.63
8.1.120.0000.00717.39
8.1.110.0000.00817.41
8.1.100.0080.00017.46
8.1.90.0050.00217.37
8.1.80.0000.00717.47
8.1.70.0040.00417.39
8.1.60.0040.00417.59
8.1.50.0030.00617.54
8.1.40.0040.00417.56
8.1.30.0030.00517.71
8.1.20.0000.00917.51
8.1.10.0040.00417.45
8.1.00.0000.00717.41
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0040.00418.32
8.0.270.0030.00617.29
8.0.260.0040.00417.17
8.0.250.0030.00316.92
8.0.240.0030.00316.82
8.0.230.0000.00816.94
8.0.220.0000.00816.91
8.0.210.0070.00016.79
8.0.200.0030.00517.00
8.0.190.0040.00416.92
8.0.180.0000.00816.77
8.0.170.0030.00516.89
8.0.160.0070.00016.85
8.0.150.0000.00816.79
8.0.140.0000.00816.65
8.0.130.0060.00013.22
8.0.120.0060.00316.80
8.0.110.0000.00716.70
8.0.100.0040.00316.84
8.0.90.0000.00716.87
8.0.80.0030.01016.81
8.0.70.0050.00216.68
8.0.60.0050.00216.80
8.0.50.0070.00016.89
8.0.30.0050.01817.09
8.0.20.0100.00817.40
8.0.10.0020.00516.90
8.0.00.0130.01016.72
7.4.330.0020.00215.55
7.4.320.0000.00716.43
7.4.300.0070.00016.65
7.4.290.0060.00316.50
7.4.280.0070.00016.52
7.4.270.0070.00016.63
7.4.260.0000.00716.58
7.4.250.0000.00716.62
7.4.240.0040.00416.58
7.4.230.0040.00416.48
7.4.220.0110.00616.57
7.4.210.0090.01216.38
7.4.200.0000.00816.39
7.4.160.0080.00816.55
7.4.150.0130.00617.40
7.4.140.0110.00617.86
7.4.130.0080.00916.60
7.4.120.0100.00716.55
7.4.110.0100.01016.56
7.4.100.0220.00016.55
7.4.90.0060.01216.53
7.4.80.0110.00619.39
7.4.70.0120.00616.53
7.4.60.0060.01016.27
7.4.50.0060.01016.45
7.4.40.0040.01216.62
7.4.30.0120.00616.63
7.4.00.0070.01115.11
7.3.330.0060.00313.20
7.3.320.0060.00013.37
7.3.310.0060.00316.38
7.3.300.0000.00716.21
7.3.290.0100.00516.40
7.3.280.0090.00816.37
7.3.270.0140.00317.40
7.3.260.0120.00416.39
7.3.250.0090.01016.39
7.3.240.0100.00716.47
7.3.230.0100.01216.39
7.3.210.0070.01016.33
7.3.200.0070.01016.41
7.3.190.0070.01016.28
7.3.180.0000.01716.44
7.3.170.0100.01016.39
7.3.160.0140.00316.56
7.2.330.0130.00716.50
7.2.320.0160.00516.51
7.2.310.0070.01016.87
7.2.300.0070.01716.67
7.2.290.0120.00916.71
7.2.00.0110.00919.47
7.1.70.0000.00717.01
7.1.60.0250.00417.27
7.1.00.0100.07322.32
7.0.200.0040.00814.68
7.0.120.0170.06322.10
7.0.110.0100.06321.99
7.0.100.0100.07022.05
7.0.90.0070.06322.14
7.0.80.0100.05722.11
7.0.70.0170.07022.05
7.0.60.0030.06022.11
7.0.50.0030.06022.08
7.0.40.0100.06722.13
7.0.30.0170.05321.98
7.0.20.0070.06322.12
7.0.10.0070.06722.03
7.0.00.0070.05722.11
5.6.270.0130.06320.86
5.6.260.0100.07020.86
5.6.250.0100.06721.09
5.6.240.0000.06721.04
5.6.230.0170.05321.02
5.6.220.0130.05321.06
5.6.210.0030.07320.98
5.6.200.0100.05721.05
5.6.190.0000.08020.84
5.6.180.0030.06320.81
5.6.170.0030.07320.87
5.6.160.0000.06321.09
5.6.150.0170.05021.02
5.6.140.0070.07721.09
5.6.130.0100.06721.01
5.6.120.0100.07020.85
5.6.110.0100.07020.75
5.6.100.0100.06721.01
5.6.90.0030.07020.92
5.6.80.0070.07720.16
5.6.70.0100.07020.38
5.6.60.0100.06320.32
5.6.50.0130.04720.48
5.6.40.0100.05320.17
5.6.30.0100.06020.13
5.6.20.0030.07020.40
5.6.10.0130.05720.37
5.6.00.0070.06020.17

preferences:
71.87 ms | 401 KiB | 5 Q