3v4l.org

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

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.0110.01116.63
8.3.50.0150.00016.13
8.3.40.0130.00618.72
8.3.30.0120.00618.45
8.3.20.0040.00420.12
8.3.10.0080.00021.73
8.3.00.0110.00017.59
8.2.180.0110.01118.04
8.2.170.0100.00722.96
8.2.160.0130.00320.35
8.2.150.0040.01124.18
8.2.140.0140.00024.66
8.2.130.0110.00720.96
8.2.120.0000.00726.35
8.2.110.0060.00620.97
8.2.100.0060.00617.51
8.2.90.0040.00419.08
8.2.80.0060.00317.97
8.2.70.0080.00417.50
8.2.60.0040.00417.80
8.2.50.0060.00318.10
8.2.40.0040.00420.64
8.2.30.0040.00421.02
8.2.20.0040.00417.79
8.2.10.0040.00417.94
8.2.00.0040.00417.79
8.1.280.0110.00425.92
8.1.270.0050.00321.88
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0100.00021.24
8.1.230.0080.00319.05
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0000.00917.22
8.1.190.0050.00317.10
8.1.180.0060.00318.10
8.1.170.0030.00518.44
8.1.160.0050.00219.00
8.1.150.0000.00818.61
8.1.140.0070.00019.35
8.1.130.0030.00318.63
8.1.120.0040.00417.22
8.1.110.0030.00317.19
8.1.100.0000.00817.34
8.1.90.0000.00817.22
8.1.80.0050.00317.21
8.1.70.0000.00717.38
8.1.60.0000.00717.36
8.1.50.0000.00717.30
8.1.40.0030.00617.34
8.1.30.0000.00717.40
8.1.20.0040.00417.41
8.1.10.0000.00817.30
8.1.00.0040.00417.23
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0000.00718.29
8.0.270.0030.00317.20
8.0.260.0000.00616.65
8.0.250.0000.00716.74
8.0.240.0020.00516.72
8.0.230.0070.00016.83
8.0.220.0030.00316.73
8.0.210.0040.00216.79
8.0.200.0030.00316.83
8.0.190.0060.00316.68
8.0.180.0110.00016.76
8.0.170.0080.00016.71
8.0.160.0030.00616.79
8.0.150.0000.00716.60
8.0.140.0070.00016.73
8.0.130.0060.00013.30
8.0.120.0000.00816.74
8.0.110.0000.00716.63
8.0.100.0040.00416.58
8.0.90.0070.00016.82
8.0.80.0070.01016.78
8.0.70.0080.00016.60
8.0.60.0000.00716.79
8.0.50.0090.00016.86
8.0.30.0150.00617.04
8.0.20.0100.01017.40
8.0.10.0030.00316.86
8.0.00.0130.00316.53
7.4.330.0000.00515.55
7.4.320.0030.00316.31
7.4.300.0000.00716.31
7.4.290.0000.00616.45
7.4.280.0060.00016.43
7.4.270.0040.00416.45
7.4.260.0030.00313.31
7.4.250.0050.00316.45
7.4.240.0040.00416.37
7.4.230.0070.00016.25
7.4.220.0070.01016.45
7.4.210.0090.00616.40
7.4.200.0070.00016.27
7.4.160.0080.00816.35
7.4.150.0070.01017.40
7.4.140.0110.00617.86
7.4.130.0110.00916.33
7.4.120.0110.00816.42
7.4.110.0100.00616.20
7.4.100.0080.01516.23
7.4.90.0070.01116.30
7.4.80.0030.01419.39
7.4.70.0140.00316.49
7.4.60.0060.00916.20
7.4.50.0110.00316.50
7.4.40.0120.00916.19
7.4.30.0090.01216.44
7.4.00.0090.00614.63
7.3.330.0030.00313.18
7.3.320.0050.00013.35
7.3.310.0040.00416.27
7.3.300.0000.00716.04
7.3.290.0080.00916.09
7.3.280.0070.01016.11
7.3.270.0100.00917.40
7.3.260.0090.01016.26
7.3.250.0140.00516.29
7.3.240.0120.00916.28
7.3.230.0100.00716.39
7.3.210.0100.01016.50
7.3.200.0090.00916.20
7.3.190.0080.01116.23
7.3.180.0030.01316.32
7.3.170.0100.00716.43
7.3.160.0070.00716.30
7.2.330.0140.00416.58
7.2.320.0120.00416.29
7.2.310.0100.00616.55
7.2.300.0130.01016.32
7.2.290.0090.00916.19
7.2.60.0060.00617.09
7.2.00.0000.00919.31
7.1.200.0030.01015.70
7.1.100.0040.01118.11
7.1.70.0070.00716.99
7.1.60.0170.01035.15
7.1.50.0200.00734.75
7.1.40.0130.01334.34
7.1.30.0200.00734.57
7.1.20.0190.00934.59
7.1.10.0090.00616.56
7.1.00.0150.00016.73
7.0.200.0030.00916.95
7.0.190.0090.00316.70
7.0.180.0060.00616.25
7.0.170.0070.00716.22
7.0.160.0060.00616.18
7.0.150.0070.00716.24
7.0.140.0000.01316.41
7.0.130.0030.01316.56
7.0.120.0040.01116.49
7.0.110.0060.00616.38
7.0.100.0080.00616.27
7.0.90.0070.00716.21
7.0.80.0000.01316.27
7.0.70.0110.00416.37
7.0.60.0030.00916.03
7.0.50.0030.01016.28
7.0.40.0030.01016.56
7.0.30.0030.00916.34
7.0.20.0030.01016.43
7.0.10.0030.01016.46
7.0.00.0060.00616.34

preferences:
74.24 ms | 400 KiB | 5 Q