3v4l.org

run code in 300+ PHP versions simultaneously
<? $orig_cookie = base64_decode('ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSEV4sFxFeaAw'); function xor_encrypt($in) { $text = $in; $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; } print xor_encrypt($orig_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.60.0000.01416.50
8.3.50.0150.00521.86
8.3.40.0150.00418.45
8.3.30.0070.01018.97
8.3.20.0000.00720.21
8.3.10.0080.00023.52
8.3.00.0040.00419.26
8.2.180.0140.00718.41
8.2.170.0080.00822.96
8.2.160.0100.00320.52
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0020.00522.32
8.2.110.0060.00322.24
8.2.100.0000.01117.59
8.2.90.0060.00319.04
8.2.80.0040.00417.97
8.2.70.0030.00617.38
8.2.60.0040.00418.04
8.2.50.0040.00418.07
8.2.40.0000.00919.75
8.2.30.0080.00017.84
8.2.20.0040.00417.42
8.2.10.0000.00717.92
8.2.00.0060.00317.61
8.1.280.0070.01025.92
8.1.270.0060.00323.83
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00423.96
8.1.230.0060.00619.09
8.1.220.0040.00417.74
8.1.210.0070.00418.77
8.1.200.0060.00317.23
8.1.190.0050.00317.30
8.1.180.0050.00718.10
8.1.170.0060.00318.58
8.1.160.0050.00221.99
8.1.150.0040.00718.53
8.1.140.0000.00717.29
8.1.130.0040.00417.63
8.1.120.0050.00317.32
8.1.110.0040.00417.16
8.1.100.0030.00517.29
8.1.90.0000.00717.32
8.1.80.0050.00217.14
8.1.70.0000.00717.30
8.1.60.0060.00317.45
8.1.50.0040.00417.36
8.1.40.0040.00417.29
8.1.30.0040.00417.45
8.1.20.0080.00017.52
8.1.10.0000.00917.44
8.1.00.0000.00717.38
8.0.300.0060.00618.77
8.0.290.0070.00017.05
8.0.280.0070.00018.28
8.0.270.0030.00317.09
8.0.260.0030.00317.10
8.0.250.0030.00416.83
8.0.240.0000.00716.73
8.0.230.0040.00416.68
8.0.220.0030.00316.64
8.0.210.0070.00016.66
8.0.200.0050.00316.89
8.0.190.0000.00816.68
8.0.180.0060.00316.76
8.0.170.0000.00716.77
8.0.160.0040.00416.64
8.0.150.0000.00816.71
8.0.140.0030.00316.80
8.0.130.0030.00313.27
8.0.120.0050.00316.63
8.0.110.0040.00416.68
8.0.100.0080.00016.82
8.0.90.0040.00416.70
8.0.80.0070.00716.74
8.0.70.0000.00716.63
8.0.60.0040.00416.62
8.0.50.0000.00716.71
8.0.30.0100.01117.06
8.0.20.0150.00317.40
8.0.10.0030.00316.73
8.0.00.0140.00616.70
7.4.330.0050.00015.00
7.4.320.0030.00316.27
7.4.300.0030.00316.45
7.4.290.0000.00616.32
7.4.280.0000.00616.27
7.4.270.0070.00016.29
7.4.260.0030.00316.44
7.4.250.0050.00316.46
7.4.240.0020.00516.38
7.4.230.0030.00316.34
7.4.220.0030.01316.33
7.4.210.0060.00816.48
7.4.200.0040.00416.23
7.4.190.0000.00716.46
7.4.160.0120.00316.33
7.4.150.0070.01017.40
7.4.140.0100.00717.86
7.4.130.0120.00516.40
7.4.120.0110.01116.35
7.4.110.0080.00816.41
7.4.100.0060.01216.17
7.4.90.0110.00716.34
7.4.80.0120.00919.39
7.4.70.0070.01116.43
7.4.60.0120.00316.33
7.4.50.0040.00416.09
7.4.40.0120.00822.77
7.4.30.0110.00516.48
7.4.00.0040.01115.00
7.3.330.0030.00313.16
7.3.320.0060.00013.36
7.3.310.0030.00516.12
7.3.300.0030.00516.15
7.3.290.0150.00516.16
7.3.280.0150.00516.17
7.3.270.0150.00317.40
7.3.260.0200.00316.44
7.3.250.0090.01116.32
7.3.240.0090.01216.27
7.3.230.0110.00516.54
7.3.210.0060.01116.22
7.3.200.0130.01019.39
7.3.190.0090.01216.31
7.3.180.0070.00716.44
7.3.170.0080.00716.32
7.3.160.0140.00316.24
7.3.120.0030.01314.56
7.3.10.0040.00816.75
7.3.00.0100.00016.48
7.2.330.0070.01116.57
7.2.320.0100.00716.55
7.2.310.0060.01216.37
7.2.300.0070.01416.54
7.2.290.0160.00016.61
7.2.130.0070.01016.45
7.2.120.0100.00616.92
7.2.110.0060.00816.86
7.2.100.0130.00016.70
7.2.90.0070.00717.01
7.2.80.0130.00316.89
7.2.70.0030.00916.83
7.2.60.0160.00316.87
7.2.50.0070.00716.86
7.2.40.0040.00816.93
7.2.30.0100.00316.68
7.2.20.0040.00716.57
7.2.10.0080.00416.63
7.2.00.0030.00618.13
7.1.250.0060.00615.40
7.1.100.0040.01118.14
7.1.70.0050.00317.10
7.1.60.0130.00719.46
7.1.50.0130.00617.01
7.1.00.0070.07322.54
7.0.200.0050.00516.46
7.0.140.0070.07022.07
7.0.90.0570.06320.04
7.0.80.0500.08319.97
7.0.70.0170.07019.90
7.0.60.0100.07719.89
7.0.50.0170.08020.35
7.0.40.0230.07020.03
7.0.30.0000.09020.14
7.0.20.0070.08020.17
7.0.10.0030.08720.17
7.0.00.0030.07320.04
5.6.280.0070.07020.82
5.6.240.0100.07020.61
5.6.230.0070.09020.64
5.6.220.0170.06020.69
5.6.210.0030.06320.57
5.6.200.0100.08321.18
5.6.190.0100.06320.95
5.6.180.0070.08021.17
5.6.170.0070.07021.09
5.6.160.0030.08321.02
5.6.150.0100.08320.94
5.6.140.0070.05021.02
5.6.130.0030.09021.03
5.6.120.0130.05721.17
5.6.110.0030.05320.95
5.6.100.0070.06721.01
5.6.90.0100.08321.06
5.6.80.0000.07720.50
5.6.70.0030.08020.41
5.6.60.0070.05020.39
5.6.50.0130.07020.41
5.6.40.0070.05320.38
5.6.30.0100.07720.50
5.6.20.0200.06320.39
5.6.10.0030.05020.37
5.6.00.0070.08020.30
5.5.380.0030.08320.52
5.5.370.0070.08320.57
5.5.360.0170.07320.39
5.5.350.0030.06020.37
5.5.340.0100.07320.76
5.5.330.0030.07320.88
5.5.320.0130.07720.84
5.5.310.0130.07020.78
5.5.300.0030.04320.91
5.5.290.0070.08720.88
5.5.280.0030.08320.87
5.5.270.0170.07720.79
5.5.260.0070.08720.88
5.5.250.0030.07720.55
5.5.240.0170.07020.32
5.5.230.0000.08720.22
5.5.220.0030.07320.18
5.5.210.0170.07020.11
5.5.200.0030.06320.27
5.5.190.0030.07720.11
5.5.180.0100.06720.14
5.5.160.0170.07020.11
5.5.150.0170.04320.27
5.5.140.0070.08320.17
5.5.130.0070.08019.99
5.5.120.0070.08020.23
5.5.110.0000.05720.21
5.5.100.0000.09020.12
5.5.90.0170.07020.07
5.5.80.0130.06720.07
5.5.70.0130.06720.15
5.5.60.0100.07720.05
5.5.50.0100.04719.96
5.5.40.0100.08020.15
5.5.30.0100.07019.93
5.5.20.0070.08020.11
5.5.10.0100.07720.06
5.5.00.0100.05020.13
5.4.450.0130.08019.38
5.4.440.0100.08019.23
5.4.430.0070.07719.46
5.4.420.0130.07319.41
5.4.410.0000.06719.05
5.4.400.0100.07719.04
5.4.390.0070.06719.05
5.4.380.0130.06319.04
5.4.370.0100.06719.18
5.4.360.0070.06318.88
5.4.350.0130.08019.02
5.4.340.0000.08019.12
5.4.320.0030.06018.95
5.4.310.0070.07718.85
5.4.300.0000.08319.12
5.4.290.0100.07319.04
5.4.280.0170.06019.22
5.4.270.0070.07719.02
5.4.260.0030.07319.03
5.4.250.0030.07019.02
5.4.240.0100.07719.04
5.4.230.0170.06718.90
5.4.220.0000.08719.12
5.4.210.0070.07718.90
5.4.200.0100.06319.13
5.4.190.0070.05319.04
5.4.180.0100.07718.89
5.4.170.0170.07018.86
5.4.160.0070.07018.86
5.4.150.0100.06719.03
5.4.140.0030.05716.41
5.4.130.0100.05016.38
5.4.120.0070.07016.41
5.4.110.0030.04716.47
5.4.100.0030.05016.43
5.4.90.0000.04716.47
5.4.80.0200.05716.25
5.4.70.0030.08016.49
5.4.60.0030.06316.33
5.4.50.0100.07016.32
5.4.40.0200.06016.42
5.4.30.0070.06716.24
5.4.20.0070.05716.48
5.4.10.0070.07016.29
5.4.00.0030.07315.89
5.3.290.0030.08314.52
5.3.280.0070.07014.57
5.3.270.0100.05314.59
5.3.260.0070.07714.46
5.3.250.0070.07714.43
5.3.240.0070.07014.54
5.3.230.0000.06314.45
5.3.220.0070.07314.42
5.3.210.0130.06714.51
5.3.200.0030.04014.53
5.3.190.0000.07714.52
5.3.180.0070.08014.56
5.3.170.0070.07314.54
5.3.160.0070.07714.55
5.3.150.0200.06314.41
5.3.140.0000.07714.41
5.3.130.0130.05014.36
5.3.120.0130.04714.40
5.3.110.0030.06014.40
5.3.100.0070.08013.87
5.3.90.0100.06313.98
5.3.80.0030.04313.99
5.3.70.0100.04713.78
5.3.60.0030.04013.75
5.3.50.0070.03313.80
5.3.40.0030.04013.81
5.3.30.0030.07313.86
5.3.20.0070.06713.59
5.3.10.0030.05713.51
5.3.00.0070.04313.59
5.2.170.0030.05710.98
5.2.160.0030.03711.16
5.2.150.0070.05710.98
5.2.140.0100.06311.20
5.2.130.0070.03711.05
5.2.120.0100.05711.09
5.2.110.0070.05710.88
5.2.100.0000.04010.94
5.2.90.0000.06711.09
5.2.80.0070.04311.08
5.2.70.0030.06311.02
5.2.60.0070.06310.88
5.2.50.0030.05710.96
5.2.40.0030.03310.97
5.2.30.0070.06010.76
5.2.20.0070.05710.95
5.2.10.0100.05310.88
5.2.00.0070.04010.73
5.1.60.0100.05010.02
5.1.50.0030.05310.01
5.1.40.0070.0539.95
5.1.30.0100.03710.38
5.1.20.0070.05710.26
5.1.10.0070.0409.96
5.1.00.0030.0339.90
5.0.50.0000.0438.38
5.0.40.0030.0438.24
5.0.30.0100.0438.27
5.0.20.0070.0338.24
5.0.10.0100.0408.16
5.0.00.0070.0638.23
4.4.90.0030.0377.34
4.4.80.0030.0377.34
4.4.70.0000.0277.34
4.4.60.0030.0277.34
4.4.50.0030.0307.34
4.4.40.0030.0577.34
4.4.30.0000.0337.34
4.4.20.0030.0307.34
4.4.10.0000.0377.34
4.4.00.0000.0537.34
4.3.110.0030.0377.34
4.3.100.0030.0337.34
4.3.90.0030.0337.34
4.3.80.0000.0507.34
4.3.70.0000.0307.34
4.3.60.0000.0377.34
4.3.50.0000.0377.34
4.3.40.0000.0407.34
4.3.30.0000.0237.34
4.3.20.0000.0337.34
4.3.10.0000.0407.34
4.3.00.0000.0337.34

preferences:
37.74 ms | 401 KiB | 5 Q