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_encode(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.0100.00718.30
8.3.50.0070.01221.33
8.3.40.0120.00318.67
8.3.30.0070.00720.33
8.3.20.0040.00420.48
8.3.10.0040.00421.04
8.3.00.0080.00023.54
8.2.180.0140.00016.75
8.2.170.0070.01022.96
8.2.160.0110.00320.38
8.2.150.0050.00324.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0000.00721.00
8.2.110.0060.00319.22
8.2.100.0110.00017.78
8.2.90.0000.00919.18
8.2.80.0050.00317.97
8.2.70.0070.00317.38
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0070.00319.91
8.2.30.0040.00419.51
8.2.20.0030.00517.69
8.2.10.0000.00817.68
8.2.00.0040.00417.63
8.1.280.0000.01525.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.47
8.1.230.0040.00720.97
8.1.220.0000.00918.77
8.1.210.0030.00920.67
8.1.200.0030.00617.35
8.1.190.0000.00717.28
8.1.180.0050.00318.10
8.1.170.0040.00418.50
8.1.160.0040.00418.90
8.1.150.0000.00818.65
8.1.140.0060.00317.30
8.1.130.0000.00717.84
8.1.120.0040.00417.32
8.1.110.0080.00017.31
8.1.100.0000.00717.42
8.1.90.0000.00717.43
8.1.80.0000.00817.41
8.1.70.0000.00717.39
8.1.60.0090.00017.51
8.1.50.0000.00817.39
8.1.40.0060.00317.47
8.1.30.0080.00017.49
8.1.20.0080.00017.69
8.1.10.0030.00617.57
8.1.00.0040.00417.57
8.0.300.0030.00519.86
8.0.290.0000.00717.30
8.0.280.0030.00318.46
8.0.270.0000.00717.28
8.0.260.0050.00316.84
8.0.250.0030.00616.93
8.0.240.0000.00716.98
8.0.230.0070.00016.97
8.0.220.0050.00316.89
8.0.210.0000.00716.84
8.0.200.0000.00717.01
8.0.190.0040.00416.98
8.0.180.0070.00016.99
8.0.170.0050.00316.93
8.0.160.0040.00416.80
8.0.150.0070.00016.85
8.0.140.0000.00716.92
8.0.130.0000.00513.27
8.0.120.0020.00516.92
8.0.110.0030.00516.88
8.0.100.0070.00016.80
8.0.90.0040.00416.88
8.0.80.0100.00716.93
8.0.70.0040.00416.70
8.0.60.0000.00816.86
8.0.50.0050.00316.87
8.0.30.0080.01316.99
8.0.20.0120.00617.40
8.0.10.0040.00416.84
8.0.00.0060.01516.90
7.4.330.0000.00515.04
7.4.320.0060.00016.44
7.4.300.0000.00616.48
7.4.290.0000.00716.60
7.4.280.0000.00616.56
7.4.270.0040.00416.59
7.4.260.0070.00013.35
7.4.250.0050.00316.48
7.4.240.0000.00816.45
7.4.230.0070.00016.64
7.4.220.0110.00716.70
7.4.210.0070.00916.56
7.4.200.0070.00016.42
7.4.190.0030.00316.42
7.4.160.0120.00416.63
7.4.150.0130.00317.40
7.4.140.0120.00517.86
7.4.130.0070.01016.58
7.4.120.0090.00816.54
7.4.110.0040.01416.59
7.4.100.0140.00716.59
7.4.90.0090.00916.45
7.4.80.0070.01319.39
7.4.70.0150.00416.43
7.4.60.0130.00616.62
7.4.50.0040.00416.35
7.4.40.0090.00922.77
7.4.30.0070.00916.34
7.4.10.0120.00615.20
7.4.00.0100.00714.91
7.3.330.0050.00013.40
7.3.320.0030.00313.40
7.3.310.0000.00716.28
7.3.300.0040.00416.20
7.3.290.0070.00716.44
7.3.280.0080.00716.40
7.3.270.0100.00717.40
7.3.260.0100.01018.24
7.3.250.0160.00716.34
7.3.240.0060.01216.34
7.3.230.0170.00016.51
7.3.210.0080.00816.33
7.3.200.0070.01119.39
7.3.190.0130.00316.40
7.3.180.0090.00616.58
7.3.170.0070.01616.43
7.3.160.0090.01216.39
7.3.130.0070.01114.52
7.3.120.0050.01014.85
7.3.110.0020.01514.97
7.3.100.0080.00514.87
7.3.90.0030.01114.96
7.3.80.0010.01114.67
7.3.70.0060.00814.75
7.3.60.0070.00814.82
7.3.50.0070.00614.90
7.3.40.0060.00914.79
7.3.30.0020.00914.73
7.3.20.0080.00516.66
7.3.10.0100.00516.58
7.3.00.0050.01116.68
7.2.330.0000.01816.84
7.2.320.0100.01316.54
7.2.310.0140.00416.51
7.2.300.0140.00316.70
7.2.290.0090.00616.91
7.2.260.0030.01615.20
7.2.250.0040.01515.34
7.2.240.0060.00815.08
7.2.230.0050.01015.11
7.2.220.0100.00415.14
7.2.210.0040.01014.97
7.2.200.0050.00915.04
7.2.190.0070.00914.94
7.2.180.0020.01115.04
7.2.170.0080.00815.02
7.2.160.0060.01014.81
7.2.150.0060.01016.91
7.2.140.0050.00716.86
7.2.130.0070.00616.90
7.2.120.0070.00616.97
7.2.110.0060.00716.93
7.2.100.0050.00917.04
7.2.90.0030.00916.94
7.2.80.0070.00617.04
7.2.70.0080.00716.98
7.2.60.0060.00817.02
7.2.50.0050.00716.97
7.2.40.0070.00817.02
7.2.30.0020.01417.00
7.2.20.0060.00816.88
7.2.10.0060.00916.98
7.2.00.0110.00217.00
7.1.330.0040.01015.80
7.1.320.0070.00915.84
7.1.310.0070.00515.84
7.1.300.0030.01015.81
7.1.290.0050.00615.84
7.1.280.0030.01015.71
7.1.270.0070.00715.77
7.1.260.0050.00715.88
7.1.250.0100.00415.98
7.1.240.0070.00715.80
7.1.230.0110.00315.95
7.1.220.0030.00615.81
7.1.210.0100.00315.89
7.1.200.0040.00715.77
7.1.190.0040.01115.85
7.1.180.0040.00415.69
7.1.170.0060.00615.61
7.1.160.0040.01216.02
7.1.150.0030.00815.51
7.1.140.0030.00915.79
7.1.130.0000.01515.46
7.1.120.0080.00615.82
7.1.110.0070.01015.82
7.1.100.0060.00615.75
7.1.90.0030.01115.96
7.1.80.0110.00315.99
7.1.70.0030.00516.63
7.1.60.0080.01017.53
7.1.50.0050.01316.28
7.1.40.0030.01015.87
7.1.30.0100.00315.88
7.1.20.0000.01215.86
7.1.10.0070.01115.82
7.1.00.0080.01519.04
7.0.330.0070.00715.48
7.0.320.0060.00315.39
7.0.310.0060.00615.50
7.0.300.0090.00015.14
7.0.290.0040.00415.43
7.0.280.0070.00415.56
7.0.270.0000.00815.40
7.0.260.0070.00715.34
7.0.250.0000.00815.57
7.0.240.0070.00715.44
7.0.230.0030.01415.68
7.0.220.0060.00315.43
7.0.210.0030.00715.20
7.0.200.0050.00516.00
7.0.190.0030.00615.46
7.0.180.0000.00915.45
7.0.170.0000.01715.26
7.0.160.0040.01115.47
7.0.150.0070.01015.57
7.0.140.0020.04218.67
7.0.130.0060.00615.52
7.0.120.0060.01215.68
7.0.110.0040.01215.46
7.0.100.0060.00815.37
7.0.90.0030.00615.57
7.0.80.0040.04218.59
7.0.70.0030.04318.54
7.0.60.0070.03718.44
7.0.50.0050.03718.82
7.0.40.0090.03916.83
7.0.30.0070.04116.86
7.0.20.0050.04216.74
7.0.10.0040.04116.79
7.0.00.0070.03916.72
5.6.400.0090.00314.30
5.6.390.0120.00314.75
5.6.380.0040.00814.63
5.6.370.0060.00614.21
5.6.360.0000.00914.79
5.6.350.0040.01214.51
5.6.340.0000.01114.20
5.6.330.0080.00414.36
5.6.320.0000.00914.58
5.6.310.0100.00314.65
5.6.300.0070.00714.64
5.6.290.0090.00614.32
5.6.280.0080.03617.79
5.6.270.0090.00614.51
5.6.260.0080.00414.36
5.6.250.0040.01414.11
5.6.240.0030.00914.21
5.6.230.0090.02017.57
5.6.220.0040.03117.52
5.6.210.0050.04617.55
5.6.200.0090.04017.68
5.6.190.0100.03817.68
5.6.180.0090.03917.88
5.6.170.0040.03217.72
5.6.160.0090.03717.80
5.6.150.0080.04317.88
5.6.140.0080.04317.68
5.6.130.0050.04217.69
5.6.120.0100.04217.75
5.6.110.0050.03017.74
5.6.100.0070.04417.86
5.6.90.0080.04217.76
5.6.80.0000.04517.37
5.6.70.0060.04517.43
5.6.60.0050.04317.37
5.6.50.0070.04217.28
5.6.40.0080.04017.39
5.6.30.0050.02317.36
5.6.20.0050.03717.38
5.6.10.0050.04117.38
5.6.00.0030.02517.29
5.5.380.0030.00914.21
5.5.370.0040.02917.47
5.5.360.0070.03517.41
5.5.350.0020.04417.36
5.5.340.0030.04617.65
5.5.330.0100.03917.50
5.5.320.0110.04117.52
5.5.310.0070.04417.57
5.5.300.0040.04717.50
5.5.290.0080.03317.75
5.5.280.0030.04517.59
5.5.270.0030.04917.66
5.5.260.0120.03717.51
5.5.250.0110.03817.46
5.5.240.0070.03317.37
5.5.230.0080.03617.31
5.5.220.0100.03717.06
5.5.210.0030.02917.16
5.5.200.0000.03217.24
5.5.190.0030.03517.23
5.5.180.0050.04317.25
5.5.170.0000.01614.33
5.5.160.0030.04117.07
5.5.150.0070.02017.36
5.5.140.0020.02317.37
5.5.130.0020.04017.34
5.5.120.0070.04517.26
5.5.110.0080.04017.20
5.5.100.0070.02817.23
5.5.90.0060.02217.19
5.5.80.0070.02217.05
5.5.70.0100.02717.28
5.5.60.0030.02517.21
5.5.50.0090.02117.22
5.5.40.0050.04017.13
5.5.30.0020.04217.12
5.5.20.0090.03717.19
5.5.10.0080.02017.22
5.5.00.0030.04717.24
5.4.450.0020.04415.90
5.4.440.0020.04315.98
5.4.430.0000.04415.99
5.4.420.0070.03515.90
5.4.410.0010.03115.89
5.4.400.0050.03815.69
5.4.390.0060.04015.69
5.4.380.0000.03115.78
5.4.370.0020.03815.64
5.4.360.0080.03715.67
5.4.350.0030.04515.78
5.4.340.0000.03415.73
5.4.330.0090.00312.43
5.4.320.0020.02915.73
5.4.310.0000.02415.79
5.4.300.0040.03915.80
5.4.290.0020.04215.79
5.4.280.0040.03615.83
5.4.270.0030.02715.65
5.4.260.0000.03115.79
5.4.250.0050.02715.66
5.4.240.0020.03515.65
5.4.230.0090.03115.73
5.4.220.0010.04315.80
5.4.210.0050.03515.82
5.4.200.0050.04015.77
5.4.190.0070.03715.77
5.4.180.0080.02315.81
5.4.170.0060.03815.83
5.4.160.0100.03215.77
5.4.150.0080.02815.73
5.4.140.0020.03714.45
5.4.130.0020.03214.42
5.4.120.0030.04314.42
5.4.110.0020.02514.47
5.4.100.0060.02214.42
5.4.90.0040.02014.45
5.4.80.0040.02214.45
5.4.70.0050.04014.46
5.4.60.0050.03814.42
5.4.50.0050.02314.45
5.4.40.0010.02214.37
5.4.30.0030.03414.45
5.4.20.0040.02214.41
5.4.10.0050.01814.42
5.4.00.0040.01814.12
5.3.290.0020.03913.55
5.3.280.0020.03913.53
5.3.270.0060.03113.58
5.3.260.0070.03813.53
5.3.250.0050.03713.51
5.3.240.0070.03713.59
5.3.230.0040.02513.49
5.3.220.0060.01813.55
5.3.210.0030.04513.51
5.3.200.0020.03813.55
5.3.190.0060.03813.53
5.3.180.0030.03013.50
5.3.170.0080.01813.50
5.3.160.0030.02613.47
5.3.150.0030.04013.51
5.3.140.0030.02213.53
5.3.130.0050.02313.47
5.3.120.0020.02313.54
5.3.110.0000.02513.50
5.3.100.0030.03013.30
5.3.90.0030.02013.22
5.3.80.0030.02213.25
5.3.70.0040.01813.18
5.3.60.0050.01913.19
5.3.50.0000.02313.16
5.3.40.0040.02113.22
5.3.30.0000.02313.19
5.3.20.0030.01813.05
5.3.10.0060.01613.11
5.3.00.0000.02113.07
5.2.170.0000.03313.07
5.2.160.0030.02313.07
5.2.150.0000.03013.07
5.2.140.0000.02713.07
5.2.130.0000.03013.07
5.2.120.0030.05313.07
5.2.110.0000.05013.07
5.2.100.0030.05313.07
5.2.90.0000.06313.07
5.2.80.0030.02713.07
5.2.70.0000.03013.07
5.2.60.0000.03013.07
5.2.50.0000.06013.07
5.2.40.0000.05013.07
5.2.30.0030.06013.07
5.2.20.0070.04713.07
5.2.10.0030.04313.07
5.2.00.0000.03013.07
5.1.60.0000.02713.07
5.1.50.0000.03013.07
5.1.40.0000.02713.07
5.1.30.0000.02713.07
5.1.20.0000.02713.07
5.1.10.0030.02013.07
5.1.00.0000.02313.07
5.0.50.0000.02013.07
5.0.40.0030.01713.07
5.0.30.0000.02713.07
5.0.20.0000.02013.07
5.0.10.0000.02013.07
5.0.00.0000.03013.07
4.4.90.0030.01313.07
4.4.80.0000.01313.07
4.4.70.0000.01313.07
4.4.60.0000.01313.07
4.4.50.0000.01713.07
4.4.40.0000.02313.07
4.4.30.0000.01313.07
4.4.20.0030.01313.07
4.4.10.0000.01713.07
4.4.00.0000.02313.07
4.3.110.0030.01013.07
4.3.100.0000.01313.07
4.3.90.0000.01313.07
4.3.80.0000.02013.07
4.3.70.0000.01313.07
4.3.60.0000.01713.07
4.3.50.0000.01313.07
4.3.40.0000.04713.07
4.3.30.0030.02313.07
4.3.20.0000.02013.07
4.3.10.0000.01713.07
4.3.00.0000.01313.07

preferences:
36.38 ms | 401 KiB | 5 Q