3v4l.org

run code in 300+ PHP versions simultaneously
<? $key= json_encode(array( "showpassword"=>"no", "bgcolor"=>"#ffffff")); $data=base64_decode('ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSEV4sFxFeaAw%3D'); function xor_encrypt($in) { $key= json_encode(array( "showpassword"=>"no", "bgcolor"=>"#ffffff")); $text = $in; $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } echo xor_encrypt($data); ?>

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.0040.01116.50
8.3.50.0070.00921.95
8.3.40.0110.00718.58
8.3.30.0070.00718.88
8.3.20.0050.00220.10
8.3.10.0070.00023.53
8.3.00.0050.00319.13
8.2.180.0090.00918.04
8.2.170.0110.01122.96
8.2.160.0070.00720.32
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0120.00626.16
8.2.120.0040.00422.12
8.2.110.0000.01019.05
8.2.100.0060.00617.55
8.2.90.0080.00019.09
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0030.00617.80
8.2.50.0000.00818.07
8.2.40.0050.00519.95
8.2.30.0000.00817.96
8.2.20.0030.00617.61
8.2.10.0000.00717.98
8.2.00.0070.00317.61
8.1.280.0070.00725.92
8.1.270.0030.00623.83
8.1.260.0060.00326.35
8.1.250.0070.00728.09
8.1.240.0060.00319.22
8.1.230.0030.00717.42
8.1.220.0050.00317.74
8.1.210.0030.00618.77
8.1.200.0000.00817.10
8.1.190.0000.00717.41
8.1.180.0070.00318.10
8.1.170.0040.00418.45
8.1.160.0040.00421.99
8.1.150.0060.00618.50
8.1.140.0050.00317.37
8.1.130.0030.00317.71
8.1.120.0000.00717.29
8.1.110.0000.00717.32
8.1.100.0030.00617.22
8.1.90.0000.00717.34
8.1.80.0070.00017.22
8.1.70.0040.00417.30
8.1.60.0050.00517.36
8.1.50.0050.00317.25
8.1.40.0070.00017.29
8.1.30.0080.00017.39
8.1.20.0080.00017.41
8.1.10.0070.00017.40
8.1.00.0000.00717.36
8.0.300.0030.00618.77
8.0.290.0040.00416.63
8.0.280.0070.00018.28
8.0.270.0070.00017.14
8.0.260.0070.00017.27
8.0.250.0030.00316.82
8.0.240.0000.00716.65
8.0.230.0030.00316.86
8.0.220.0000.00716.78
8.0.210.0000.00816.75
8.0.200.0000.00616.77
8.0.190.0080.00016.74
8.0.180.0060.00316.80
8.0.170.0000.00716.76
8.0.160.0040.00416.76
8.0.150.0070.00016.61
8.0.140.0000.00716.60
8.0.130.0000.00613.41
8.0.120.0050.00316.67
8.0.110.0030.00516.79
8.0.100.0070.00016.75
8.0.90.0030.00316.64
8.0.80.0100.01016.73
8.0.70.0050.00316.63
8.0.60.0040.00416.59
8.0.50.0000.00716.59
8.0.30.0100.00916.88
8.0.20.0080.01017.40
8.0.10.0050.00316.65
8.0.00.0110.00616.56
7.4.330.0000.00615.00
7.4.320.0030.00316.50
7.4.300.0060.00016.38
7.4.290.0030.00316.45
7.4.280.0060.00316.44
7.4.270.0000.00716.47
7.4.260.0040.00416.46
7.4.250.0070.00016.32
7.4.240.0050.00216.47
7.4.230.0030.00316.49
7.4.220.0030.01316.43
7.4.210.0070.00916.52
7.4.200.0030.00316.16
7.4.190.0000.00716.22
7.4.160.0130.00316.39
7.4.150.0110.00717.40
7.4.140.0030.01317.86
7.4.130.0120.00516.30
7.4.120.0100.00716.39
7.4.110.0070.01016.38
7.4.100.0070.01916.18
7.4.90.0050.01116.27
7.4.80.0160.00919.39
7.4.70.0170.00016.49
7.4.60.0080.00816.37
7.4.50.0080.00016.47
7.4.40.0120.00322.77
7.4.30.0060.01116.54
7.4.00.0030.01214.56
7.3.330.0060.00013.23
7.3.320.0000.00513.36
7.3.310.0070.00015.97
7.3.300.0080.00016.14
7.3.290.0170.00316.10
7.3.280.0090.01016.17
7.3.270.0140.00617.40
7.3.260.0100.01416.35
7.3.250.0090.01016.33
7.3.240.0190.00316.27
7.3.230.0040.01216.50
7.3.210.0040.01316.19
7.3.200.0150.01119.39
7.3.190.0030.01316.35
7.3.180.0060.00916.27
7.3.170.0060.00916.34
7.3.160.0120.00416.38
7.3.120.0070.01014.38
7.3.10.0090.00316.39
7.3.00.0100.00316.55
7.2.330.0060.01016.19
7.2.320.0030.01416.50
7.2.310.0160.00716.25
7.2.300.0030.01216.30
7.2.290.0090.00616.42
7.2.130.0110.00016.93
7.2.120.0070.01416.83
7.2.110.0030.01016.79
7.2.100.0030.00716.73
7.2.90.0130.00416.48
7.2.80.0110.00616.71
7.2.70.0000.01216.56
7.2.60.0090.00916.63
7.2.50.0030.01016.94
7.2.40.0140.00416.91
7.2.30.0060.00616.85
7.2.20.0100.00916.51
7.2.10.0100.00716.54
7.2.00.0170.00716.68
7.1.250.0090.00615.87
7.1.200.0040.01115.70
7.1.70.0030.00517.01
7.1.60.0070.00317.25
7.1.50.0080.00316.98
7.1.00.0100.07022.51
7.0.200.0030.01216.81
7.0.140.0030.07321.92
7.0.90.0400.06320.00
7.0.80.0530.04020.15
7.0.70.0500.05320.01
7.0.60.0600.06019.85
7.0.50.0500.04720.40
7.0.40.0100.04320.05
7.0.30.0130.07719.96
7.0.20.0100.08320.09
7.0.10.0100.06719.99
7.0.00.0130.07320.10
5.6.280.0030.07320.91
5.6.240.0130.07320.51
5.6.230.0100.08020.72
5.6.220.0230.06020.62
5.6.210.0100.07720.57
5.6.200.0070.08721.14
5.6.190.0070.06321.05
5.6.180.0170.04721.04
5.6.170.0170.05720.96
5.6.160.0100.08021.04
5.6.150.0030.07320.96
5.6.140.0130.07321.07
5.6.130.0130.07021.02
5.6.120.0100.07721.17
5.6.110.0100.07721.08
5.6.100.0130.06721.10
5.6.90.0030.09321.07
5.6.80.0070.05720.34
5.6.70.0030.05720.47
5.6.60.0100.06020.54
5.6.50.0030.05020.39
5.6.40.0070.05320.32
5.6.30.0100.07320.41
5.6.20.0070.07320.30
5.6.10.0030.08320.44
5.6.00.0170.06320.43
5.5.380.0100.05720.57
5.5.370.0070.03720.42
5.5.360.0070.07720.54
5.5.350.0130.07720.42
5.5.340.0130.03720.82
5.5.330.0200.07020.78
5.5.320.0100.07320.89
5.5.310.0030.08320.79
5.5.300.0130.03720.63
5.5.290.0100.06720.87
5.5.280.0200.06720.74
5.5.270.0030.09720.82
5.5.260.0130.04320.60
5.5.250.0070.08020.64
5.5.240.0030.05020.28
5.5.230.0030.06020.11
5.5.220.0100.07720.25
5.5.210.0100.04720.30
5.5.200.0170.07020.29
5.5.190.0070.07020.24
5.5.180.0130.07020.21
5.5.160.0070.06319.99
5.5.150.0100.07320.27
5.5.140.0070.07720.12
5.5.130.0070.05719.95
5.5.120.0130.05320.18
5.5.110.0130.04020.17
5.5.100.0070.04320.09
5.5.90.0170.07720.13
5.5.80.0170.07320.09
5.5.70.0100.07720.08
5.5.60.0100.07720.14
5.5.50.0100.07020.02
5.5.40.0100.08020.00
5.5.30.0070.04020.03
5.5.20.0070.04320.15
5.5.10.0100.07320.11
5.5.00.0030.05720.02
5.4.450.0200.03019.23
5.4.440.0100.08019.45
5.4.430.0170.07019.51
5.4.420.0100.08319.34
5.4.410.0100.05319.32
5.4.400.0100.06719.14
5.4.390.0130.07018.91
5.4.380.0070.06319.03
5.4.370.0100.07019.16
5.4.360.0130.07019.04
5.4.350.0070.05019.04
5.4.340.0070.07719.18
5.4.320.0100.07319.05
5.4.310.0130.06318.94
5.4.300.0000.05319.02
5.4.290.0030.06018.94
5.4.280.0030.08719.09
5.4.270.0030.05719.20
5.4.260.0030.07319.18
5.4.250.0130.07019.04
5.4.240.0070.07719.04
5.4.230.0000.05019.18
5.4.220.0070.05319.23
5.4.210.0030.06019.09
5.4.200.0170.07019.18
5.4.190.0130.07019.11
5.4.180.0100.04018.89
5.4.170.0100.07019.07
5.4.160.0070.04719.03
5.4.150.0100.04719.19
5.4.140.0000.04316.29
5.4.130.0200.06316.38
5.4.120.0070.03716.43
5.4.110.0070.07016.50
5.4.100.0130.06716.32
5.4.90.0130.06316.46
5.4.80.0030.07016.47
5.4.70.0130.07016.40
5.4.60.0070.07316.40
5.4.50.0070.05016.34
5.4.40.0100.05016.31
5.4.30.0000.06716.48
5.4.20.0030.04316.48
5.4.10.0070.07316.36
5.4.00.0000.05315.84
5.3.290.0100.06714.57
5.3.280.0100.07314.55
5.3.270.0000.08714.59
5.3.260.0030.08014.45
5.3.250.0070.07714.58
5.3.240.0030.08014.46
5.3.230.0100.07314.58
5.3.220.0070.07314.54
5.3.210.0100.06714.42
5.3.200.0070.07714.54
5.3.190.0070.07314.40
5.3.180.0000.06714.47
5.3.170.0100.06714.52
5.3.160.0000.07014.41
5.3.150.0170.05014.39
5.3.140.0070.07014.37
5.3.130.0070.07014.55
5.3.120.0030.06014.40
5.3.110.0030.05014.36
5.3.100.0130.03314.05
5.3.90.0100.05313.96
5.3.80.0000.05714.00
5.3.70.0100.07314.00
5.3.60.0100.03713.96
5.3.50.0100.06713.96
5.3.40.0030.06013.87
5.3.30.0070.06713.84
5.3.20.0030.07713.68
5.3.10.0030.05713.50
5.3.00.0070.07313.48
5.2.170.0000.06711.08
5.2.160.0070.05711.21
5.2.150.0000.05011.17
5.2.140.0170.05011.09
5.2.130.0030.05011.07
5.2.120.0070.05710.96
5.2.110.0100.05311.17
5.2.100.0030.04310.94
5.2.90.0000.04711.12
5.2.80.0030.03310.93
5.2.70.0070.02710.95
5.2.60.0100.06010.88
5.2.50.0070.06011.00
5.2.40.0070.03310.90
5.2.30.0130.05710.80
5.2.20.0070.05711.00
5.2.10.0100.04710.92
5.2.00.0100.05310.66
5.1.60.0070.05010.01
5.1.50.0030.03710.02
5.1.40.0100.0479.85
5.1.30.0070.05710.39
5.1.20.0100.04310.20
5.1.10.0100.04310.11
5.1.00.0030.04710.07
5.0.50.0070.0438.42
5.0.40.0130.0308.41
5.0.30.0000.0478.22
5.0.20.0030.0438.08
5.0.10.0030.0378.23
5.0.00.0030.0578.16
4.4.90.0030.0207.41
4.4.80.0000.0377.41
4.4.70.0030.0177.41
4.4.60.0030.0377.41
4.4.50.0000.0237.41
4.4.40.0000.0537.41
4.4.30.0030.0377.41
4.4.20.0030.0377.41
4.4.10.0030.0277.41
4.4.00.0030.0537.41
4.3.110.0070.0207.41
4.3.100.0000.0207.41
4.3.90.0000.0377.41
4.3.80.0000.0537.41
4.3.70.0070.0207.41
4.3.60.0070.0337.41
4.3.50.0070.0307.41
4.3.40.0030.0507.41
4.3.30.0030.0307.41
4.3.20.0000.0337.41
4.3.10.0030.0377.41
4.3.00.0000.0377.41

preferences:
45.23 ms | 401 KiB | 5 Q