3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xor_encrypt($in) { $key = 'array( "showpassword"=>"no", "bgcolor"=>"#ffffff");'; #k'9Cg(h ql Rsri$v% hd|w v #w`1~2Ce3cV.'; $text = $in; $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } #array( "showpassword"=>"no", "bgcolor"=>"#ffffff"); $tempdata = json_decode(xor_encrypt(base64_decode("ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSEV4sFxFeaAw%3D")), true); print "Base64 decode:"; print base64_decode("ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSEV4sFxFeaAw%3D"); print "\nOutput:"; print bin2hex(xor_encrypt(base64_decode("ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSEV4sFxFeaAw%3D"))); print "\njson stuff:"; print $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.00616.63
8.3.50.0110.01118.05
8.3.40.0150.00318.71
8.3.30.0070.00718.84
8.3.20.0040.00420.34
8.3.10.0040.00421.73
8.3.00.0000.00823.72
8.2.180.0070.00718.42
8.2.170.0070.00722.96
8.2.160.0140.00021.05
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0090.00026.16
8.2.120.0070.00020.66
8.2.110.0030.00821.03
8.2.100.0090.00318.18
8.2.90.0000.00819.17
8.2.80.0000.00817.97
8.2.70.0030.00617.48
8.2.60.0000.00817.80
8.2.50.0040.00418.10
8.2.40.0040.00422.32
8.2.30.0050.00219.32
8.2.20.0040.00418.19
8.2.10.0000.00718.27
8.2.00.0040.00418.20
8.1.280.0060.01225.92
8.1.270.0040.00420.75
8.1.260.0080.00026.35
8.1.250.0080.00028.09
8.1.240.0060.00323.88
8.1.230.0070.00717.42
8.1.220.0040.00417.76
8.1.210.0040.00418.77
8.1.200.0030.00717.00
8.1.190.0040.00417.10
8.1.180.0070.00018.10
8.1.170.0030.00622.12
8.1.160.0040.00418.90
8.1.150.0040.00420.06
8.1.140.0000.00719.48
8.1.130.0030.00318.93
8.1.120.0050.00317.34
8.1.110.0040.00417.39
8.1.100.0030.00617.30
8.1.90.0040.00417.31
8.1.80.0000.00717.46
8.1.70.0030.00317.40
8.1.60.0000.00917.59
8.1.50.0000.00817.50
8.1.40.0000.00817.43
8.1.30.0030.00517.57
8.1.20.0060.00617.61
8.1.10.0080.00017.58
8.1.00.0000.00717.49
8.0.300.0000.00718.77
8.0.290.0070.00016.75
8.0.280.0030.00518.37
8.0.270.0000.00717.20
8.0.260.0000.00917.17
8.0.250.0030.00716.87
8.0.240.0070.00016.87
8.0.230.0000.00716.95
8.0.220.0000.00816.84
8.0.210.0070.00016.88
8.0.200.0000.00716.85
8.0.190.0000.00717.00
8.0.180.0040.00416.91
8.0.170.0000.00716.94
8.0.160.0030.00616.86
8.0.150.0030.00316.84
8.0.140.0000.00716.82
8.0.130.0000.00713.30
8.0.120.0040.00416.88
8.0.110.0000.00717.02
8.0.100.0070.00016.90
8.0.90.0000.00716.93
8.0.80.0070.01116.92
8.0.70.0000.00716.76
8.0.60.0000.00816.98
8.0.50.0030.00516.81
8.0.30.0110.00617.20
8.0.20.0110.01017.40
8.0.10.0040.00416.84
8.0.00.0110.00616.61
7.4.330.0050.00015.55
7.4.320.0030.00316.41
7.4.300.0060.00016.52
7.4.290.0000.00716.46
7.4.280.0040.00416.50
7.4.270.0070.00016.61
7.4.260.0040.00416.53
7.4.250.0030.00316.41
7.4.240.0040.00416.59
7.4.230.0000.00716.73
7.4.220.0090.00916.47
7.4.210.0030.01216.66
7.4.200.0070.00016.32
7.4.160.0130.00516.41
7.4.150.0120.00617.40
7.4.140.0080.01017.86
7.4.130.0090.00816.48
7.4.120.0090.01216.50
7.4.110.0110.00516.64
7.4.100.0060.01116.50
7.4.90.0070.01016.54
7.4.80.0140.00419.39
7.4.70.0110.00716.58
7.4.60.0060.01216.53
7.4.50.0030.01016.55
7.4.40.0060.01116.57
7.4.30.0170.00716.39
7.4.00.0050.01214.98
7.3.330.0000.00513.37
7.3.320.0000.00513.38
7.3.310.0070.00016.36
7.3.300.0000.00716.23
7.3.290.0030.00316.33
7.3.280.0090.01016.37
7.3.270.0030.01517.40
7.3.260.0110.01316.47
7.3.250.0090.00816.47
7.3.240.0070.01016.64
7.3.230.0130.00316.59
7.3.210.0090.00916.52
7.3.200.0130.00616.25
7.3.190.0130.00316.54
7.3.180.0060.01116.39
7.3.170.0070.01016.69
7.3.160.0120.00316.54
7.3.120.0100.01014.96
7.3.110.0100.00714.56
7.3.100.0000.01514.79
7.3.90.0090.00915.03
7.3.80.0040.01214.83
7.3.70.0060.00914.73
7.3.60.0080.00414.89
7.3.50.0030.01014.64
7.3.40.0070.01014.57
7.3.30.0070.00714.75
7.3.20.0030.01016.87
7.3.10.0030.01016.51
7.3.00.0100.00316.87
7.2.330.0090.00916.59
7.2.320.0070.01116.67
7.2.310.0070.01016.61
7.2.300.0150.00316.73
7.2.290.0030.01316.78
7.2.250.0130.00614.84
7.2.240.0030.01715.24
7.2.230.0060.00914.92
7.2.220.0130.00315.26
7.2.210.0030.00715.34
7.2.200.0000.01115.08
7.2.190.0000.01414.81
7.2.180.0060.00915.00
7.2.170.0030.01314.80
7.1.330.0080.00615.84
7.1.320.0080.00815.61
7.1.310.0120.00315.70
7.1.300.0090.00015.66
7.1.290.0060.01015.94
7.1.280.0030.00715.89
7.1.270.0100.00315.61
7.1.260.0090.00315.98
7.1.200.0040.01115.75
7.1.70.0000.00916.93
7.1.60.0070.00717.29
7.1.40.0230.01032.50
7.1.30.0370.01332.74
7.1.20.0370.02332.81
7.1.10.0170.01314.72
7.1.00.3430.00314.93
7.0.200.0100.01016.84
7.0.180.0130.00714.54
7.0.170.0070.00714.27
7.0.160.0100.00714.37
7.0.150.0130.01014.32
7.0.140.4800.01714.43
7.0.130.3400.02014.56
7.0.120.2830.01014.79
7.0.110.3900.01314.58
7.0.100.2830.00714.44
7.0.90.2900.01714.41
7.0.80.3230.01014.39
7.0.70.3330.01314.36
7.0.60.3800.01314.32
7.0.50.3630.00714.36
7.0.40.2600.01014.47
7.0.30.3200.01714.73
7.0.20.3300.00314.48
7.0.10.2230.00714.64
7.0.00.3500.01714.52

preferences:
28.64 ms | 400 KiB | 5 Q