3v4l.org

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

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.39
8.3.30.0100.00318.92
8.3.20.0000.00720.22
8.3.10.0040.00423.66
8.3.00.0040.00419.13
8.2.170.0070.01322.96
8.2.160.0070.00720.35
8.2.150.0060.00324.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00422.22
8.2.110.0090.00022.11
8.2.100.0080.00317.91
8.2.90.0040.00417.91
8.2.80.0080.00017.97
8.2.70.0040.00817.36
8.2.60.0030.00618.04
8.2.50.0040.00418.07
8.2.40.0040.00419.75
8.2.30.0000.00817.83
8.2.20.0040.00417.64
8.2.10.0000.00717.92
8.2.00.0060.00517.54
8.1.270.0060.00323.85
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.42
8.1.230.0090.00320.65
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.10
8.1.190.0000.00717.39
8.1.180.0040.00718.10
8.1.170.0000.00918.45
8.1.160.0040.00421.93
8.1.150.0060.00318.49
8.1.140.0050.00317.18
8.1.130.0000.00717.66
8.1.120.0050.00217.34
8.1.110.0000.00817.38
8.1.100.0070.00317.37
8.1.90.0000.00717.24
8.1.80.0000.00717.21
8.1.70.0000.00717.32
8.1.60.0060.00317.48
8.1.50.0080.00017.29
8.1.40.0080.00017.38
8.1.30.0040.00417.42
8.1.20.0000.00817.51
8.1.10.0040.00417.28
8.1.00.0000.00717.32
8.0.300.0000.00719.83
8.0.290.0000.00817.05
8.0.280.0030.00318.35
8.0.270.0050.00317.22
8.0.260.0000.00617.22
8.0.250.0040.00316.71
8.0.240.0000.00816.78
8.0.230.0030.00316.81
8.0.220.0070.00016.75
8.0.210.0000.00616.73
8.0.200.0000.00716.70
8.0.190.0000.00916.66
8.0.180.0040.00416.76
8.0.170.0030.00516.66
8.0.160.0030.00416.75
8.0.150.0000.00716.75
8.0.140.0000.00716.73
8.0.130.0030.00313.28
8.0.120.0000.00716.80
8.0.110.0000.00716.75
8.0.100.0040.00416.64
8.0.90.0070.00016.57
8.0.80.0060.00916.75
8.0.70.0040.00416.71
8.0.60.0070.00016.75
8.0.50.0000.00716.62
8.0.30.0150.00317.06
8.0.20.0170.00217.40
8.0.10.0000.00816.74
8.0.00.0110.00616.74
7.4.330.0000.00515.00
7.4.320.0030.00316.50
7.4.300.0060.00016.51
7.4.290.0080.00016.36
7.4.280.0070.00016.35
7.4.270.0030.00316.35
7.4.260.0070.00016.20
7.4.250.0050.00316.35
7.4.240.0020.00516.41
7.4.230.0030.00316.17
7.4.220.0140.00516.22
7.4.210.0080.00616.41
7.4.200.0040.00416.46
7.4.190.0030.00316.17
7.4.160.0120.00416.46
7.4.150.0120.00617.40
7.4.140.0070.01017.86
7.4.130.0110.00616.38
7.4.120.0070.01016.31
7.4.110.0150.00316.41
7.4.100.0110.00816.51
7.4.90.0090.00916.38
7.4.80.0070.01019.39
7.4.70.0110.00616.33
7.4.60.0090.00616.43
7.4.50.0030.00616.28
7.4.40.0040.01222.77
7.4.30.0070.01016.30
7.4.00.0040.01414.64
7.3.330.0030.00313.33
7.3.320.0060.00013.39
7.3.310.0040.00415.96
7.3.300.0080.00016.16
7.3.290.0100.00316.23
7.3.280.0090.00816.10
7.3.270.0140.00717.40
7.3.260.0100.00716.37
7.3.250.0070.00916.26
7.3.240.0120.01016.45
7.3.230.0130.01016.39
7.3.210.0070.01116.14
7.3.200.0090.01419.39
7.3.190.0100.00616.09
7.3.180.0070.00716.37
7.3.170.0070.01016.27
7.3.160.0110.00416.20
7.3.120.0040.01214.52
7.2.330.0070.01016.36
7.2.320.0070.01016.57
7.2.310.0080.00816.19
7.2.300.0090.00916.18
7.2.290.0090.00916.40
7.2.60.0070.00716.79
7.2.00.0040.01219.53
7.1.200.0000.01015.79
7.1.100.0100.00318.09
7.1.70.0000.01317.09
7.1.60.0120.01219.46
7.1.50.0070.01716.93
7.1.00.0070.07322.42
7.0.200.0020.00516.71
7.0.140.0030.07321.92
7.0.90.0170.04019.93
7.0.80.0470.04719.95
7.0.70.0500.07319.89
7.0.60.0470.06719.87
7.0.50.0470.05020.28
7.0.40.0070.07720.05
7.0.30.0070.07720.07
7.0.20.0100.05720.05
7.0.10.0170.07320.10
7.0.00.0100.07320.09
5.6.280.0070.06721.13
5.6.240.0100.08020.68
5.6.230.0100.07720.63
5.6.220.0130.06720.63
5.6.210.0000.04320.54
5.6.200.0100.08320.96
5.6.190.0070.07321.06
5.6.180.0030.08021.08
5.6.170.0070.08320.96
5.6.160.0030.05021.04
5.6.150.0130.06720.92
5.6.140.0170.07321.08
5.6.130.0070.08721.02
5.6.120.0030.05021.08
5.6.110.0070.08021.05
5.6.100.0030.08320.93
5.6.90.0070.05321.05
5.6.80.0030.05020.49
5.6.70.0130.06020.48
5.6.60.0200.06020.51
5.6.50.0070.08020.51
5.6.40.0000.04020.37
5.6.30.0100.05020.38
5.6.20.0070.05320.40
5.6.10.0070.04320.40
5.6.00.0130.05020.30
5.5.380.0070.04720.34
5.5.370.0130.07320.45
5.5.360.0030.04320.45
5.5.350.0070.07320.39
5.5.340.0030.08020.83
5.5.330.0030.07320.85
5.5.320.0000.07720.92
5.5.310.0100.08020.78
5.5.300.0130.07720.88
5.5.290.0100.08320.88
5.5.280.0130.07720.88
5.5.270.0070.05020.80
5.5.260.0130.07320.89
5.5.250.0070.04720.74
5.5.240.0030.04720.32
5.5.230.0030.08320.30
5.5.220.0100.07720.29
5.5.210.0100.07020.24
5.5.200.0130.07020.25
5.5.190.0170.04020.24
5.5.180.0170.07019.99
5.5.160.0070.08020.27
5.5.150.0030.05320.23
5.5.140.0070.07720.23
5.5.130.0030.06719.96
5.5.120.0070.08320.24
5.5.110.0170.07020.07
5.5.100.0100.04020.10
5.5.90.0030.08320.09
5.5.80.0170.07320.15
5.5.70.0130.07319.97
5.5.60.0100.07020.12
5.5.50.0170.06720.09
5.5.40.0100.05020.14
5.5.30.0130.07320.03
5.5.20.0100.07320.07
5.5.10.0100.07720.09
5.5.00.0000.08320.11
5.4.450.0130.06719.54
5.4.440.0100.04019.23
5.4.430.0170.06019.45
5.4.420.0070.06019.45
5.4.410.0100.04319.41
5.4.400.0000.04718.85
5.4.390.0100.07319.06
5.4.380.0030.06719.23
5.4.370.0130.06719.23
5.4.360.0070.07019.18
5.4.350.0000.05718.92
5.4.340.0030.08019.05
5.4.320.0100.08019.20
5.4.310.0070.06319.23
5.4.300.0170.06719.23
5.4.290.0200.07019.09
5.4.280.0100.07319.03
5.4.270.0130.06718.89
5.4.260.0030.04718.87
5.4.250.0030.07319.05
5.4.240.0070.06319.20
5.4.230.0030.07719.08
5.4.220.0100.06319.13
5.4.210.0130.06718.93
5.4.200.0070.07719.22
5.4.190.0000.05719.07
5.4.180.0100.07318.86
5.4.170.0100.07319.23
5.4.160.0130.06718.82
5.4.150.0070.05019.14
5.4.140.0070.07016.38
5.4.130.0000.07716.36
5.4.120.0270.05016.45
5.4.110.0070.04316.35
5.4.100.0070.04016.36
5.4.90.0000.07716.34
5.4.80.0100.06716.51
5.4.70.0000.04716.49
5.4.60.0070.06016.30
5.4.50.0100.03016.45
5.4.40.0030.04716.37
5.4.30.0100.03016.23
5.4.20.0000.04016.45
5.4.10.0070.03716.33
5.4.00.0030.03715.83
5.3.290.0070.06314.52
5.3.280.0070.07714.57
5.3.270.0070.05014.56
5.3.260.0130.06714.46
5.3.250.0100.03714.59
5.3.240.0030.07714.54
5.3.230.0130.05714.59
5.3.220.0130.07014.54
5.3.210.0100.03714.42
5.3.200.0100.04314.44
5.3.190.0030.08014.45
5.3.180.0070.06714.54
5.3.170.0030.07014.51
5.3.160.0230.05714.54
5.3.150.0070.04714.56
5.3.140.0000.04014.41
5.3.130.0000.04314.39
5.3.120.0070.03714.49
5.3.110.0030.03714.54
5.3.100.0130.05014.02
5.3.90.0000.04713.87
5.3.80.0100.02713.86
5.3.70.0100.05713.78
5.3.60.0000.04314.00
5.3.50.0130.02313.91
5.3.40.0030.03313.88
5.3.30.0000.03713.91
5.3.20.0000.05313.66
5.3.10.0030.06313.51
5.3.00.0030.04013.40
5.2.170.0070.03011.18
5.2.160.0030.05311.09
5.2.150.0030.03010.95
5.2.140.0030.04311.20
5.2.130.0030.06011.13
5.2.120.0030.06710.91
5.2.110.0000.04011.11
5.2.100.0030.02311.14
5.2.90.0030.06011.15
5.2.80.0070.06311.16
5.2.70.0100.05710.97
5.2.60.0030.02711.00
5.2.50.0000.03010.88
5.2.40.0000.03011.00
5.2.30.0030.02310.81
5.2.20.0030.03710.88
5.2.10.0000.02710.88
5.2.00.0030.03310.71
5.1.60.0030.02710.02
5.1.50.0000.0539.83
5.1.40.0030.0239.81
5.1.30.0000.02710.39
5.1.20.0000.02710.26
5.1.10.0030.03010.04
5.1.00.0030.02710.13
5.0.50.0030.0208.55
5.0.40.0000.0308.48
5.0.30.0000.0338.32
5.0.20.0000.0208.32
5.0.10.0000.0208.32
5.0.00.0000.0308.32
4.4.90.0000.0208.32
4.4.80.0000.0278.32
4.4.70.0000.0378.32
4.4.60.0070.0108.32
4.4.50.0000.0378.32
4.4.40.0030.0478.32
4.4.30.0000.0208.32
4.4.20.0000.0238.32
4.4.10.0000.0178.32
4.4.00.0000.0278.32
4.3.110.0000.0278.32
4.3.100.0000.0178.32
4.3.90.0000.0138.32
4.3.80.0000.0278.32
4.3.70.0000.0178.32
4.3.60.0000.0178.32
4.3.50.0000.0208.32
4.3.40.0000.0278.32
4.3.30.0000.0138.32
4.3.20.0000.0278.32
4.3.10.0000.0138.32
4.3.00.0000.0178.32

preferences:
49.41 ms | 400 KiB | 5 Q