3v4l.org

run code in 300+ PHP versions simultaneously
<?php $c1="ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSFl4sFxJeaAw="; function xor_encrypt($in) { $key = base64_decode($c1); $text = $in; $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } $defdata = array( "showpassword"=>"no", "bgcolor"=>"#00000"); print xor_encrypt(json_encode($defdata)); #decode $tmp= json_decode(xor_encrypt($c2), true); if (is_array($tmp)) { print $tmp['showpassword']; print $tmp['bgcolor']; } else print "Error!"; print " <> "; #encode print xor_encrypt(json_encode($defdata));

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.0040.01118.43
8.3.50.0110.00418.18
8.3.40.0120.00318.97
8.3.30.0120.00418.57
8.3.20.0040.01420.34
8.3.10.0000.00823.66
8.3.00.0160.00319.50
8.2.180.0090.00616.88
8.2.170.0110.01122.96
8.2.160.0080.00820.53
8.2.150.0060.00324.18
8.2.140.0050.00324.66
8.2.130.0060.00317.75
8.2.120.0140.00426.35
8.2.110.0060.00320.35
8.2.100.0090.00317.84
8.2.90.0040.00419.36
8.2.80.0050.00317.97
8.2.70.0080.00017.63
8.2.60.0040.00417.93
8.2.50.0050.00318.07
8.2.40.0000.00819.46
8.2.30.0040.00420.57
8.2.20.0000.01017.86
8.2.10.0090.00018.07
8.2.00.0070.00018.25
8.1.280.0190.00325.92
8.1.270.0030.00623.91
8.1.260.0090.00928.09
8.1.250.0040.01428.09
8.1.240.0060.00323.78
8.1.230.0080.00422.25
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0100.00017.35
8.1.190.0040.00417.23
8.1.180.0000.00818.10
8.1.170.0030.00518.78
8.1.160.0000.00721.96
8.1.150.0040.00418.75
8.1.140.0080.00019.53
8.1.130.0040.00417.55
8.1.120.0050.00217.35
8.1.110.0050.00617.32
8.1.100.0000.00817.30
8.1.90.0050.00217.35
8.1.80.0030.00517.42
8.1.70.0000.00817.25
8.1.60.0050.00317.65
8.1.50.0000.00817.52
8.1.40.0050.00517.42
8.1.30.0000.00917.73
8.1.20.0050.00217.67
8.1.10.0050.00317.49
8.1.00.0000.00917.55
8.0.300.0040.00418.77
8.0.290.0050.00316.75
8.0.280.0000.00818.38
8.0.270.0030.00317.24
8.0.260.0060.00017.21
8.0.250.0040.00417.02
8.0.240.0070.00016.90
8.0.230.0000.00817.04
8.0.220.0000.00916.96
8.0.210.0040.00716.87
8.0.200.0000.00616.99
8.0.190.0000.00717.02
8.0.180.0080.00017.04
8.0.170.0080.00017.00
8.0.160.0040.00416.90
8.0.150.0030.00616.84
8.0.140.0030.00416.97
8.0.130.0030.00313.36
8.0.120.0040.00416.99
8.0.110.0070.00017.00
8.0.100.0040.00416.84
8.0.90.0040.00417.03
8.0.80.0060.01316.99
8.0.70.0000.00716.93
8.0.60.0000.00816.84
8.0.50.0000.00717.04
8.0.30.0110.00617.27
8.0.20.0190.01517.40
8.0.10.0070.00017.13
8.0.00.0060.01516.73
7.4.330.0030.00315.08
7.4.320.0030.00316.57
7.4.300.0070.00016.66
7.4.290.0000.00716.53
7.4.280.0050.00316.43
7.4.270.0000.00716.64
7.4.260.0040.00416.49
7.4.250.0040.00416.51
7.4.240.0030.00516.54
7.4.230.0030.00316.71
7.4.220.0130.00916.46
7.4.210.0060.00916.55
7.4.200.0070.00016.40
7.4.160.0100.00716.43
7.4.150.0150.00617.40
7.4.140.0120.00817.86
7.4.130.0110.00816.55
7.4.120.0070.01116.60
7.4.110.0070.01016.55
7.4.100.0100.00716.48
7.4.90.0180.00016.54
7.4.80.0150.00619.39
7.4.70.0080.00816.59
7.4.60.0120.00416.60
7.4.50.0110.00416.50
7.4.40.0140.00916.71
7.4.30.0090.00916.57
7.4.00.0000.01514.69
7.3.330.0040.00413.23
7.3.320.0000.00613.28
7.3.310.0040.00416.32
7.3.300.0040.00416.45
7.3.290.0060.00816.42
7.3.280.0090.01116.48
7.3.270.0170.00717.40
7.3.260.0100.01016.45
7.3.250.0090.00916.54
7.3.240.0110.00816.32
7.3.230.0110.01116.55
7.3.210.0110.00616.66
7.3.200.0080.00816.38
7.3.190.0070.01316.66
7.3.180.0130.00316.43
7.3.170.0120.01216.55
7.3.160.0090.00616.49
7.2.330.0060.01216.52
7.2.320.0070.01116.70
7.2.310.0150.00316.71
7.2.300.0090.00916.67
7.2.290.0070.01016.56
7.2.120.0100.00316.40
7.2.110.0120.00616.66
7.2.100.0000.01416.41
7.2.90.0040.00816.69
7.2.80.0110.00416.61
7.2.70.0090.00617.03
7.2.60.0050.01016.80
7.2.50.0000.01417.03
7.2.40.0070.00317.00
7.2.30.0000.01516.87
7.2.20.0060.00916.85
7.2.10.0070.01016.78
7.2.00.0000.01318.19
7.1.240.0080.00415.84
7.1.230.0090.00615.97
7.1.220.0050.00515.85
7.1.210.0070.01015.81
7.1.200.0070.01015.52
7.1.190.0070.00715.59
7.1.180.0000.01415.55
7.1.170.0000.01015.97
7.1.160.0030.01015.72
7.1.150.0000.01415.62
7.1.140.0030.00615.56
7.1.130.0040.00415.77
7.1.120.0060.00615.92
7.1.110.0070.00715.50
7.1.100.0060.00516.96
7.1.90.0070.00315.76
7.1.80.0100.00315.84
7.1.70.0060.00916.41
7.1.60.0100.00817.66
7.1.50.0020.01116.41
7.1.40.0060.00915.77
7.1.30.0060.00615.77
7.1.20.0070.00715.88
7.1.10.0030.00915.77
7.1.00.0060.04119.13
7.0.320.0090.00315.39
7.0.310.0030.01015.46
7.0.300.0070.00715.40
7.0.290.0040.00415.48
7.0.280.0090.00315.32
7.0.270.0040.01115.64
7.0.260.0040.00715.59
7.0.250.0070.00715.54
7.0.240.0030.01015.23
7.0.230.0000.01415.60
7.0.220.0080.00815.21
7.0.210.0070.00315.11
7.0.200.0090.00116.08
7.0.190.0000.00915.57
7.0.180.0030.00915.33
7.0.170.0040.00815.54
7.0.160.0080.00015.16
7.0.150.0070.00315.61
7.0.140.0070.00615.33
7.0.130.0040.00815.38
7.0.120.0030.01015.46
7.0.110.0030.00715.39
7.0.100.0030.01015.50
7.0.90.0050.04717.73
7.0.80.0110.03417.71
7.0.70.0100.03217.67
7.0.60.0030.04417.65
7.0.50.0020.04417.93
7.0.40.0080.03916.79
7.0.30.0020.03916.69
7.0.20.0090.04216.74
7.0.10.0020.04616.84
7.0.00.0050.04516.73
5.6.380.0080.00414.16
5.6.370.0040.01114.32
5.6.360.0060.00314.59
5.6.350.0100.00614.57
5.6.340.0130.00014.60
5.6.330.0000.01414.65
5.6.320.0060.00514.78
5.6.310.0030.00914.79
5.6.300.0070.00714.33
5.6.290.0060.00614.09
5.6.280.0070.01917.57
5.6.270.0000.01614.55
5.6.260.0030.00914.10
5.6.250.0050.00514.23
5.6.240.0030.03317.58
5.6.230.0090.04117.46
5.6.220.0060.04317.45
5.6.210.0060.02617.49
5.6.200.0080.04317.60
5.6.190.0080.03017.71
5.6.180.0090.03817.57
5.6.170.0110.02417.64
5.6.160.0080.03017.77
5.6.150.0120.03517.61
5.6.140.0080.02717.85
5.6.130.0030.02717.63
5.6.120.0100.04317.63
5.6.110.0050.02817.86
5.6.100.0030.03117.77
5.6.90.0090.04517.74
5.6.80.0100.03217.41
5.6.70.0110.03817.25
5.6.60.0030.04717.28
5.6.50.0100.04017.43
5.6.40.0110.01817.49
5.6.30.0050.04117.48
5.6.20.0100.04217.24
5.6.10.0070.04517.35
5.6.00.0050.04517.31
5.5.380.0050.03015.94
5.5.370.0020.04715.95
5.5.360.0050.02715.87
5.5.350.0120.02016.02
5.5.340.0100.03116.14
5.5.330.0070.04016.04
5.5.320.0050.04416.18
5.5.310.0080.02016.09
5.5.300.0050.02415.81
5.5.290.0060.02316.00
5.5.280.0080.03616.06
5.5.270.0110.04316.07
5.5.260.0050.04515.88
5.5.250.0080.04215.82
5.5.240.0050.02515.57
5.5.230.0050.04515.68
5.5.220.0050.02615.76
5.5.210.0050.04615.78
5.5.200.0070.03515.75
5.5.190.0080.02015.68
5.5.180.0050.02815.75
5.5.170.0120.00014.45
5.5.160.0080.03515.78
5.5.150.0040.04815.60
5.5.140.0060.03915.79
5.5.130.0030.02915.84
5.5.120.0100.03315.81
5.5.110.0100.02315.72
5.5.100.0070.04315.65
5.5.90.0100.03515.66
5.5.80.0020.04515.57
5.5.70.0020.03815.57
5.5.60.0070.04015.55
5.5.50.0050.04115.63
5.5.40.0020.02715.68
5.5.30.0020.04115.74
5.5.20.0030.03615.75
5.5.10.0020.03115.64
5.5.00.0100.03615.77

preferences:
53.01 ms | 401 KiB | 5 Q