3v4l.org

run code in 300+ PHP versions simultaneously
<?php $defaultdata = array( "showpassword"=>"no", "bgcolor"=>"#ffffff"); function xor_encrypt($in) { $key = '{"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(base64_decode("ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSEV4sFxFeaAw="));

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.0130.01016.61
8.3.50.0070.01319.71
8.3.40.0090.00618.98
8.3.30.0150.00618.66
8.3.20.0040.00421.90
8.3.10.0050.00323.43
8.3.00.0050.00321.91
8.2.180.0130.00918.29
8.2.170.0110.00722.96
8.2.160.0030.01019.03
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00021.11
8.2.120.0050.00326.35
8.2.110.0090.00021.00
8.2.100.0110.00317.91
8.2.90.0080.00019.34
8.2.80.0060.00317.97
8.2.70.0030.00617.63
8.2.60.0080.00017.93
8.2.50.0040.00418.10
8.2.40.0050.00320.55
8.2.30.0040.00419.27
8.2.20.0000.00718.06
8.2.10.0070.00018.04
8.2.00.0040.00418.33
8.1.280.0070.00725.92
8.1.270.0040.00421.91
8.1.260.0070.00026.35
8.1.250.0070.00028.09
8.1.240.0100.00723.98
8.1.230.0000.01017.76
8.1.220.0060.00317.76
8.1.210.0060.00318.77
8.1.200.0060.00317.36
8.1.190.0040.00417.23
8.1.180.0090.00018.10
8.1.170.0000.00818.59
8.1.160.0040.00418.94
8.1.150.0040.00418.74
8.1.140.0040.00419.14
8.1.130.0070.00017.64
8.1.120.0000.00717.32
8.1.110.0000.00717.39
8.1.100.0040.00417.41
8.1.90.0000.00817.42
8.1.80.0040.00417.29
8.1.70.0030.00317.39
8.1.60.0040.00417.63
8.1.50.0080.00017.41
8.1.40.0000.00717.59
8.1.30.0080.00017.49
8.1.20.0070.00017.57
8.1.10.0080.00017.48
8.1.00.0000.00817.41
8.0.300.0090.00018.77
8.0.290.0000.00716.75
8.0.280.0000.00818.50
8.0.270.0070.00017.38
8.0.260.0060.00017.11
8.0.250.0000.00716.84
8.0.240.0050.00316.99
8.0.230.0000.00716.86
8.0.220.0070.00316.89
8.0.210.0070.00016.77
8.0.200.0030.00317.02
8.0.190.0070.00016.96
8.0.180.0000.00916.88
8.0.170.0040.00416.82
8.0.160.0040.00416.90
8.0.150.0000.00716.90
8.0.140.0000.00716.95
8.0.130.0000.00813.37
8.0.120.0040.00416.86
8.0.110.0040.00416.77
8.0.100.0060.00316.89
8.0.90.0000.00816.92
8.0.80.0060.00916.89
8.0.70.0070.00017.01
8.0.60.0000.00716.84
8.0.50.0050.00316.73
8.0.30.0120.00817.05
8.0.20.0100.01217.40
8.0.10.0050.00317.09
8.0.00.0100.01316.75
7.4.330.0000.00616.77
7.4.320.0000.00616.55
7.4.300.0000.00616.53
7.4.290.0040.00416.62
7.4.280.0050.00216.52
7.4.270.0040.00416.55
7.4.260.0030.00316.56
7.4.250.0000.00716.51
7.4.240.0040.00416.52
7.4.230.0000.00716.27
7.4.220.0040.00416.51
7.4.210.0070.00716.63
7.4.200.0070.00016.67
7.4.160.0090.00916.56
7.4.150.0100.01417.40
7.4.140.0090.00917.86
7.4.130.0090.00916.60
7.4.120.0090.01416.53
7.4.110.0070.01016.45
7.4.100.0060.01116.59
7.4.90.0130.00416.45
7.4.80.0130.00419.39
7.4.70.0060.01616.68
7.4.60.0130.00616.64
7.4.50.0070.01016.42
7.4.40.0090.00816.46
7.4.00.0100.00315.13
7.3.330.0050.00313.34
7.3.320.0030.00313.20
7.3.310.0000.00616.48
7.3.300.0030.00316.23
7.3.290.0000.00716.24
7.3.280.0150.00016.34
7.3.270.0110.00717.40
7.3.260.0130.00516.52
7.3.250.0080.00816.49
7.3.240.0080.01116.64
7.3.230.0080.00816.65
7.3.210.0060.01016.43
7.3.200.0080.00816.66
7.3.190.0110.00516.38
7.3.180.0150.00616.36
7.3.170.0170.00016.62
7.3.160.0060.01016.52
7.2.330.0070.01116.77
7.2.320.0130.01016.54
7.2.310.0110.00816.48
7.2.300.0090.00916.66
7.2.290.0160.00016.86
7.2.110.0040.00716.71
7.2.60.0360.00717.04
7.2.00.0330.00617.76
7.1.200.0040.00415.63
7.1.120.0230.00716.65
7.1.110.0240.00715.98
7.1.100.0200.01016.18
7.1.90.0230.01015.96
7.1.80.0260.01216.04
7.1.70.0190.00915.39
7.1.60.0380.00633.38
7.1.50.0340.00732.92
7.1.40.0360.01032.52
7.1.30.0340.01432.86
7.1.20.0300.01332.83
7.1.10.0240.00415.00
7.1.00.0200.01015.03

preferences:
43.21 ms | 401 KiB | 5 Q