3v4l.org

run code in 300+ PHP versions simultaneously
<? $original = base64_decode('ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSRQsrExIKaAw') 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; } print xor_encrypt($original); ?>

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.70.0120.00916.25
8.3.60.0040.01416.38
8.3.50.0110.00516.46
8.3.40.0130.00718.85
8.3.30.0040.01118.50
8.3.20.0040.00420.21
8.3.10.0070.00021.77
8.3.00.0100.00017.47
8.2.180.0140.00316.38
8.2.170.0130.00722.96
8.2.160.0070.00720.47
8.2.150.0070.00724.18
8.2.140.0040.00424.66
8.2.130.0000.00721.00
8.2.120.0130.00626.35
8.2.110.0030.00620.99
8.2.100.0040.00717.84
8.2.90.0030.00519.08
8.2.80.0040.00417.97
8.2.70.0080.00417.38
8.2.60.0000.00917.93
8.2.50.0000.00918.10
8.2.40.0000.00820.42
8.2.30.0040.00420.91
8.2.20.0050.00218.03
8.2.10.0040.00417.85
8.2.00.0040.00417.86
8.1.280.0140.00325.92
8.1.270.0040.00423.97
8.1.260.0110.00726.35
8.1.250.0110.00728.09
8.1.240.0060.00321.17
8.1.230.0000.01120.93
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0090.00016.98
8.1.180.0040.00418.10
8.1.170.0040.00418.59
8.1.160.0000.00718.85
8.1.150.0070.00018.75
8.1.140.0070.00019.44
8.1.130.0070.00018.71
8.1.120.0040.00417.34
8.1.110.0000.00717.31
8.1.100.0030.00517.31
8.1.90.0070.00017.32
8.1.80.0040.00417.27
8.1.70.0000.00717.34
8.1.60.0050.00217.44
8.1.50.0000.00817.42
8.1.40.0040.00417.35
8.1.30.0060.00317.57
8.1.20.0080.00017.54
8.1.10.0040.00417.46
8.1.00.0000.00717.43
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0080.00018.27
8.0.270.0030.00317.25
8.0.260.0060.00016.75
8.0.250.0030.00316.80
8.0.240.0050.00316.72
8.0.230.0030.00316.81
8.0.220.0000.00616.74
8.0.210.0030.00316.74
8.0.200.0030.00316.76
8.0.190.0000.00816.86
8.0.180.0090.00416.70
8.0.170.0030.00516.81
8.0.160.0070.00016.84
8.0.150.0040.00416.73
8.0.140.0070.00016.69
8.0.130.0000.00513.44
8.0.120.0000.00816.59
8.0.110.0000.00716.60
8.0.100.0000.00716.57
8.0.90.0070.00016.74
8.0.80.0150.00016.64
8.0.70.0030.00616.62
8.0.60.0080.00016.82
8.0.50.0030.00616.64
8.0.30.0130.00316.96
8.0.20.0120.00717.40
8.0.10.0000.00716.92
8.0.00.0120.00616.86
7.4.330.0050.00015.55
7.4.320.0000.00616.37
7.4.300.0030.00316.46
7.4.290.0060.00316.36
7.4.280.0030.00316.38
7.4.270.0000.00716.36
7.4.260.0020.00213.29
7.4.250.0030.00316.35
7.4.240.0070.00016.36
7.4.230.0030.00316.36
7.4.220.0100.01716.44
7.4.210.0090.00616.48
7.4.200.0070.00016.44
7.4.160.0100.01016.31
7.4.150.0160.00617.40
7.4.140.0050.01217.86
7.4.130.0140.00416.43
7.4.120.0130.00816.39
7.4.110.0100.00716.51
7.4.100.0130.00416.54
7.4.90.0090.01016.49
7.4.80.0060.01219.39
7.4.70.0110.01016.12
7.4.60.0090.00916.44
7.4.50.0120.00316.21
7.4.40.0140.00916.39
7.4.30.0060.01216.34
7.3.330.0030.00313.01
7.3.320.0030.00313.03
7.3.310.0000.00716.13
7.3.300.0000.00716.08
7.3.290.0080.00716.15
7.3.280.0100.00616.12
7.3.270.0130.00317.40
7.3.260.0110.00616.47
7.3.250.0110.00816.31
7.3.240.0100.00616.24
7.3.230.0090.00916.29
7.3.210.0120.00916.25
7.3.200.0030.01316.26
7.3.190.0100.00616.26
7.3.180.0090.00616.40
7.3.170.0090.00616.18
7.3.160.0050.01016.23
7.2.330.0110.00816.60
7.2.320.0120.00616.46
7.2.310.0060.01516.55
7.2.300.0000.01716.37
7.2.290.0090.00816.66
7.1.70.0040.00816.94
7.1.60.0170.01035.00
7.1.50.0130.01334.48
7.1.40.0220.00634.50
7.1.30.0260.00734.23
7.1.20.0140.01434.63
7.1.10.0000.01416.25
7.1.00.0040.01116.29
7.0.200.0060.00616.58
7.0.190.0100.00516.26
7.0.180.0030.01015.97
7.0.170.0060.00815.84
7.0.160.0000.01316.15
7.0.150.0090.00316.09
7.0.140.0070.00716.21
7.0.130.0100.00316.32
7.0.120.0040.00916.28
7.0.110.0030.01016.02
7.0.100.0060.00616.01
7.0.90.0090.00316.18
7.0.80.0040.00816.07
7.0.70.0040.00816.15
7.0.60.0000.01316.04
7.0.50.0060.01216.10
7.0.40.0090.00316.27
7.0.30.0060.00616.20
7.0.20.0090.00416.20
7.0.10.0030.00916.02
7.0.00.0060.00616.29

preferences:
58.65 ms | 401 KiB | 5 Q