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.60.0140.00316.38
8.3.50.0080.00816.50
8.3.40.0130.00618.67
8.3.30.0180.00018.57
8.3.20.0040.01120.26
8.3.10.0040.00421.83
8.3.00.0070.00319.48
8.2.180.0130.00616.50
8.2.170.0140.00722.96
8.2.160.0100.00320.45
8.2.150.0110.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00221.03
8.2.120.0120.00626.35
8.2.110.0040.00421.03
8.2.100.0040.00817.78
8.2.90.0000.00819.05
8.2.80.0040.00417.97
8.2.70.0100.00017.50
8.2.60.0000.00718.04
8.2.50.0050.00318.10
8.2.40.0000.00820.59
8.2.30.0000.00820.83
8.2.20.0030.00517.92
8.2.10.0070.00017.79
8.2.00.0000.00817.98
8.1.280.0180.00325.92
8.1.270.0120.00323.79
8.1.260.0070.01026.35
8.1.250.0140.00428.09
8.1.240.0030.00621.19
8.1.230.0040.00719.05
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0050.00517.10
8.1.190.0000.00817.10
8.1.180.0000.00818.10
8.1.170.0050.00318.50
8.1.160.0040.00418.86
8.1.150.0050.00218.73
8.1.140.0040.00419.48
8.1.130.0000.00718.85
8.1.120.0060.00317.25
8.1.110.0030.00517.33
8.1.100.0040.00417.35
8.1.90.0050.00317.32
8.1.80.0070.00017.34
8.1.70.0000.00717.38
8.1.60.0040.00417.49
8.1.50.0060.00317.33
8.1.40.0000.00817.37
8.1.30.0000.00817.47
8.1.20.0000.00817.55
8.1.10.0070.00017.48
8.1.00.0050.00217.38
8.0.300.0040.00418.77
8.0.290.0050.00316.63
8.0.280.0000.00718.38
8.0.270.0040.00417.17
8.0.260.0000.00616.65
8.0.250.0070.00016.72
8.0.240.0000.00816.83
8.0.230.0000.00816.84
8.0.220.0000.00716.68
8.0.210.0030.00316.75
8.0.200.0030.00316.77
8.0.190.0000.00816.70
8.0.180.0030.00816.80
8.0.170.0030.00316.66
8.0.160.0070.00016.79
8.0.150.0070.00016.65
8.0.140.0030.00316.65
8.0.130.0030.00313.30
8.0.120.0050.00216.61
8.0.110.0040.00416.71
8.0.100.0000.00816.69
8.0.90.0070.00016.62
8.0.80.0090.00616.70
8.0.70.0070.00016.55
8.0.60.0070.00016.82
8.0.50.0000.00716.60
8.0.30.0070.01116.94
8.0.20.0150.00717.40
8.0.10.0000.00716.76
8.0.00.0070.01016.69
7.4.330.0000.00515.55
7.4.320.0000.00616.44
7.4.300.0060.00016.50
7.4.290.0000.00716.48
7.4.280.0070.00016.46
7.4.270.0030.00316.26
7.4.260.0000.00513.25
7.4.250.0030.00316.43
7.4.240.0000.00716.51
7.4.230.0050.00216.57
7.4.220.0070.01016.46
7.4.210.0140.00016.31
7.4.200.0030.00316.39
7.4.160.0080.01116.50
7.4.150.0070.01017.40
7.4.140.0110.00817.86
7.4.130.0060.01216.44
7.4.120.0120.00916.42
7.4.110.0060.01216.24
7.4.100.0070.01116.34
7.4.90.0090.00916.43
7.4.80.0080.00819.39
7.4.70.0080.01116.50
7.4.60.0030.01616.45
7.4.50.0070.00716.16
7.4.40.0080.01516.29
7.4.30.0110.00716.38
7.4.00.0070.00714.66
7.3.330.0000.00613.16
7.3.320.0000.00513.20
7.3.310.0020.00516.00
7.3.300.0030.00316.09
7.3.290.0090.00616.12
7.3.280.0100.00716.12
7.3.270.0090.00617.40
7.3.260.0100.00716.21
7.3.250.0070.01416.25
7.3.240.0090.00816.34
7.3.230.0320.02516.30
7.3.210.0150.00616.19
7.3.200.0030.01316.06
7.3.190.0080.00816.24
7.3.180.0100.00616.51
7.3.170.0060.01016.38
7.3.160.0120.00316.33
7.3.10.0000.01816.48
7.3.00.0030.00716.16
7.2.330.0070.01116.65
7.2.320.0140.00716.33
7.2.310.0100.00716.57
7.2.300.0130.00316.20
7.2.290.0080.00816.40
7.2.130.0050.01016.78
7.2.120.0030.00717.06
7.2.110.0030.01216.50
7.2.100.0070.00416.87
7.2.90.0070.01016.80
7.2.80.0030.01316.80
7.2.70.0100.00716.87
7.2.60.0110.00316.73
7.2.50.0100.00316.90
7.2.40.0040.00816.85
7.2.30.0040.01416.96
7.2.20.0120.00316.67
7.2.10.0100.00716.88
7.2.00.0040.00918.24
7.1.250.0000.01515.59
7.1.100.0070.00717.91
7.1.70.0040.01117.25
7.1.60.0200.00835.05
7.1.50.0220.00634.87
7.1.40.0100.01934.32
7.1.30.0220.00634.45
7.1.20.0130.01334.44
7.1.10.0100.00716.51
7.1.00.0030.01116.59
7.0.200.0040.00916.88
7.0.190.0070.00716.83
7.0.180.0040.01116.18
7.0.170.0040.00816.06
7.0.160.0060.00616.24
7.0.150.0070.01016.35
7.0.140.0030.01016.57
7.0.130.0000.01416.66
7.0.120.0090.00616.54
7.0.110.0030.01016.25
7.0.100.0000.01216.40
7.0.90.0000.01316.09
7.0.80.0050.00816.52
7.0.70.0000.01416.54
7.0.60.0040.01116.03
7.0.50.0040.00816.11
7.0.40.0060.00616.69
7.0.30.0040.00816.54
7.0.20.0050.00916.57
7.0.10.0060.00616.30
7.0.00.0060.00616.63

preferences:
45.13 ms | 400 KiB | 5 Q