3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xor_encrypt($in) { $key = '<censored>'; $text = $in; $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } function xor_decrypt($in) { $key = '<derosnec>'; $text = $in; $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } $my_data = array( "showpassword"=>"yes", "bgcolor"=>"#ffffff"); $my_data_e = base64_decode(xor_decrypt(json_encode($my_data, true))); $tempdata = json_decode(xor_encrypt(base64_decode($my_data_e)), true); echo $tempdata;

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.0150.00318.55
8.3.50.0090.01021.33
8.3.40.0070.00718.71
8.3.30.0030.01320.35
8.3.20.0040.00420.66
8.3.10.0000.00821.04
8.3.00.0050.00223.84
8.2.180.0100.01018.41
8.2.170.0100.01022.96
8.2.160.0070.00720.48
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00021.18
8.2.110.0090.00019.29
8.2.100.0080.00318.03
8.2.90.0000.01119.20
8.2.80.0000.00719.21
8.2.70.0080.00617.75
8.2.60.0050.00318.04
8.2.50.0100.00018.07
8.2.40.0060.00318.34
8.2.30.0070.00019.39
8.2.20.0030.00617.73
8.2.10.0050.00317.65
8.2.00.0040.00417.76
8.1.280.0140.00325.92
8.1.270.0030.00523.99
8.1.260.0050.00226.35
8.1.250.0020.00528.09
8.1.240.0100.00022.40
8.1.230.0080.00321.00
8.1.220.0040.00418.77
8.1.210.0030.00518.97
8.1.200.0060.00317.36
8.1.190.0050.00317.53
8.1.180.0080.00018.10
8.1.170.0100.00018.47
8.1.160.0040.00418.82
8.1.150.0040.00418.70
8.1.140.0040.00417.40
8.1.130.0030.00317.76
8.1.120.0000.00717.32
8.1.110.0040.00417.39
8.1.100.0040.00417.31
8.1.90.0050.00217.41
8.1.80.0000.00717.29
8.1.70.0030.00317.42
8.1.60.0000.00717.48
8.1.50.0040.00417.38
8.1.40.0000.00817.52
8.1.30.0030.00517.65
8.1.20.0030.00517.68
8.1.10.0060.00317.54
8.1.00.0000.00717.50
8.0.300.0060.00319.94
8.0.290.0000.00717.18
8.0.280.0070.00018.46
8.0.270.0000.00717.32
8.0.260.0030.00316.71
8.0.250.0040.00416.98
8.0.240.0030.00616.85
8.0.230.0050.00316.87
8.0.220.0030.00316.83
8.0.210.0040.00416.90
8.0.200.0060.00016.98
8.0.190.0030.00516.93
8.0.180.0040.00416.94
8.0.170.0030.00616.99
8.0.160.0040.00417.02
8.0.150.0030.00316.77
8.0.140.0000.00816.85
8.0.130.0060.00013.34
8.0.120.0040.00416.91
8.0.110.0040.00416.73
8.0.100.0080.00016.80
8.0.90.0040.00416.75
8.0.80.0060.00916.93
8.0.70.0000.00716.78
8.0.60.0040.00416.89
8.0.50.0000.00816.73
8.0.30.0080.01617.16
8.0.20.0110.00617.40
8.0.10.0040.00417.00
8.0.00.0090.01116.79
7.4.330.0000.00615.11
7.4.320.0000.00616.55
7.4.300.0000.00616.63
7.4.290.0000.00716.64
7.4.280.0000.00616.51
7.4.270.0000.00816.67
7.4.260.0050.00013.29
7.4.250.0060.00316.58
7.4.240.0040.00216.62
7.4.230.0000.00716.51
7.4.220.0100.01416.72
7.4.210.0070.00816.62
7.4.200.0040.00416.56
7.4.190.0000.00716.46
7.4.160.0070.01016.72
7.4.150.0140.00317.40
7.4.140.0070.01217.86
7.4.130.0090.00716.52
7.4.120.0150.00316.63
7.4.110.0030.01416.49
7.4.100.0120.00916.66
7.4.90.0060.01216.39
7.4.80.0120.00819.39
7.4.70.0040.01416.70
7.4.60.0100.00716.47
7.4.50.0090.00016.34
7.4.40.0070.00722.77
7.4.30.0100.00716.59
7.4.00.0030.01214.83
7.3.330.0000.00513.45
7.3.320.0000.00513.23
7.3.310.0000.00716.41
7.3.300.0000.00816.25
7.3.290.0000.01316.35
7.3.280.0110.00516.33
7.3.270.0100.00717.40
7.3.260.0080.00918.24
7.3.250.0080.01316.42
7.3.240.0130.00716.65
7.3.230.0100.00716.58
7.3.210.0090.00916.46
7.3.200.0110.01419.39
7.3.190.0100.00516.58
7.3.180.0070.00716.61
7.3.170.0050.01116.51
7.3.160.0120.00616.46
7.3.120.0040.01114.53
7.2.330.0090.00916.74
7.2.320.0070.01016.67
7.2.310.0090.00916.71
7.2.300.0030.01416.66
7.2.290.0120.00416.80
7.2.60.0070.00716.82
7.2.00.0000.01119.44
7.1.200.0070.00015.79
7.1.100.0030.00918.14
7.1.70.0080.00817.20
7.1.60.0100.01619.17
7.1.50.0000.01717.05
7.1.00.0000.03722.31
7.0.200.0000.00716.84
7.0.140.0070.06722.13
7.0.90.0170.05719.86
7.0.80.0170.06319.96
7.0.70.0500.09320.13
7.0.60.0800.09019.93
7.0.50.0430.04720.36
7.0.40.0200.07319.95
7.0.30.0070.05720.15
7.0.20.0070.05320.11
7.0.10.0170.07320.13
7.0.00.0170.07320.10
5.6.280.0030.07321.08
5.6.240.0070.07720.72
5.6.230.0070.07020.67
5.6.220.0070.08020.50
5.6.210.0100.08020.48
5.6.200.0000.05021.03
5.6.190.0100.05721.05
5.6.180.0130.07721.18
5.6.170.0070.08321.04
5.6.160.0030.04721.19
5.6.150.0130.08020.96
5.6.140.0170.05021.06
5.6.130.0100.08720.98
5.6.120.0030.05021.11
5.6.110.0100.04721.10
5.6.100.0070.04321.02
5.6.90.0100.05321.10
5.6.80.0100.08020.43
5.6.70.0130.04320.50
5.6.60.0030.05720.51
5.6.50.0030.07720.33
5.6.40.0030.07720.37
5.6.30.0030.08320.45
5.6.20.0030.07320.31
5.6.10.0070.08020.38
5.6.00.0070.06020.42
5.5.380.0100.03320.46
5.5.370.0070.07320.38
5.5.360.0130.06720.39
5.5.350.0170.06720.34
5.5.340.0100.03720.87
5.5.330.0170.07020.77
5.5.320.0130.08320.65
5.5.310.0000.08020.88
5.5.300.0030.09020.84
5.5.290.0100.07020.87
5.5.280.0170.08020.65
5.5.270.0070.08020.89
5.5.260.0130.06720.88
5.5.250.0230.04720.61
5.5.240.0070.07320.27
5.5.230.0100.03720.21
5.5.220.0030.05720.02
5.5.210.0100.07020.30
5.5.200.0030.04720.30
5.5.190.0070.08020.16
5.5.180.0100.05320.28
5.5.160.0070.07720.00
5.5.150.0000.05720.24
5.5.140.0100.04020.13
5.5.130.0030.08020.16
5.5.120.0070.07720.16
5.5.110.0170.07020.14
5.5.100.0070.06020.11
5.5.90.0030.07720.05
5.5.80.0170.06320.07
5.5.70.0100.07720.06
5.5.60.0070.07320.07
5.5.50.0070.05720.15
5.5.40.0070.05019.95
5.5.30.0130.04720.15
5.5.20.0100.04320.04
5.5.10.0100.05020.08
5.5.00.0130.08020.07
5.4.450.0030.07319.56
5.4.440.0030.05719.50
5.4.430.0100.05019.17
5.4.420.0130.07019.37
5.4.410.0030.07319.33
5.4.400.0030.08319.16
5.4.390.0130.06018.95
5.4.380.0100.07019.03
5.4.370.0130.07019.21
5.4.360.0100.05019.05
5.4.350.0130.07019.13
5.4.340.0170.06318.85
5.4.320.0100.07719.18
5.4.310.0030.08318.90
5.4.300.0070.06718.87
5.4.290.0030.05719.20
5.4.280.0070.06718.90
5.4.270.0070.07718.84
5.4.260.0130.07719.09
5.4.250.0070.07719.18
5.4.240.0100.08018.90
5.4.230.0100.06318.87
5.4.220.0030.05319.20
5.4.210.0030.05719.04
5.4.200.0000.04319.22
5.4.190.0070.05719.03
5.4.180.0070.07319.04
5.4.170.0200.06719.11
5.4.160.0000.04019.01
5.4.150.0030.07718.91
5.4.140.0270.06316.34
5.4.130.0070.08016.25
5.4.120.0100.06716.36
5.4.110.0070.07716.56
5.4.100.0100.06716.53
5.4.90.0000.05716.56
5.4.80.0070.07016.43
5.4.70.0100.07016.36
5.4.60.0070.08016.41
5.4.50.0070.03316.34
5.4.40.0100.07016.37
5.4.30.0030.05016.38
5.4.20.0070.06016.30
5.4.10.0130.05016.36
5.4.00.0070.03315.88
5.3.290.0130.07014.73
5.3.280.0130.06714.54
5.3.270.0100.04314.58
5.3.260.0170.04314.66
5.3.250.0000.05314.67
5.3.240.0100.06714.67
5.3.230.0070.05014.59
5.3.220.0070.08014.55
5.3.210.0200.05014.55
5.3.200.0030.08014.55
5.3.190.0070.04314.62
5.3.180.0070.07714.57
5.3.170.0130.07014.63
5.3.160.0070.07714.56
5.3.150.0070.05314.71
5.3.140.0170.06314.58
5.3.130.0030.04314.61
5.3.120.0100.06014.56
5.3.110.0000.05014.58
5.3.100.0000.04014.13
5.3.90.0030.04014.05
5.3.80.0030.03713.95
5.3.70.0030.03714.16
5.3.60.0100.03013.93
5.3.50.0100.03013.96
5.3.40.0030.04013.97
5.3.30.0030.03313.94
5.3.20.0100.03013.71
5.3.10.0000.03713.57
5.3.00.0000.04713.66
5.2.170.0100.04711.17
5.2.160.0070.03311.14
5.2.150.0030.02711.24
5.2.140.0000.03311.16
5.2.130.0000.03011.16
5.2.120.0000.03311.21
5.2.110.0000.03011.20
5.2.100.0000.03011.04
5.2.90.0000.03011.20
5.2.80.0000.03011.11
5.2.70.0030.02711.22
5.2.60.0070.05010.98
5.2.50.0070.03310.95
5.2.40.0030.06011.09
5.2.30.0070.06011.00
5.2.20.0100.06010.95
5.2.10.0070.04711.02
5.2.00.0070.05010.63
5.1.60.0000.02710.00
5.1.50.0000.02710.09
5.1.40.0000.0279.83
5.1.30.0030.02710.40
5.1.20.0000.02710.31
5.1.10.0070.0409.91
5.1.00.0030.03310.18
5.0.50.0030.0238.63
5.0.40.0000.0208.53
5.0.30.0030.0308.23
5.0.20.0030.0208.20
5.0.10.0000.0338.28
5.0.00.0070.0278.27
4.4.90.0000.0137.27
4.4.80.0030.0207.27
4.4.70.0030.0337.27
4.4.60.0000.0277.27
4.4.50.0030.0337.27
4.4.40.0000.0277.27
4.4.30.0000.0177.27
4.4.20.0070.0137.27
4.4.10.0000.0207.27
4.4.00.0000.0277.27
4.3.110.0000.0177.27
4.3.100.0030.0137.27
4.3.90.0030.0137.27
4.3.80.0070.0407.27
4.3.70.0030.0177.27
4.3.60.0030.0137.27
4.3.50.0030.0207.27
4.3.40.0000.0277.27
4.3.30.0070.0107.27
4.3.20.0030.0137.27
4.3.10.0000.0177.27
4.3.00.0000.0237.27

preferences:
45.1 ms | 401 KiB | 5 Q