3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xor_encrypt($in) { $key = '6b27394367286809716c2052737269032476250c7f68640f7c7776092377600f317e3243653363562e14'; #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"); #hex: 6b27394367286809716c2052737269032476250c7f68640f7c7776092377600f317e3243653363562e14 $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.70.0090.01216.50
8.3.60.0180.00016.38
8.3.50.0120.01021.98
8.3.40.0130.00318.92
8.3.30.0080.00818.59
8.3.20.0050.00220.20
8.3.10.0040.00421.90
8.3.00.0070.00023.48
8.2.180.0130.00316.88
8.2.170.0000.01422.96
8.2.160.0030.01021.20
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0070.00022.13
8.2.120.0040.00426.35
8.2.110.0070.00320.98
8.2.100.0060.00618.03
8.2.90.0050.00319.27
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0000.00817.93
8.2.50.0000.00718.10
8.2.40.0040.00422.27
8.2.30.0050.00319.35
8.2.20.0040.00418.03
8.2.10.0000.00718.17
8.2.00.0040.00418.42
8.1.280.0100.00725.92
8.1.270.0070.00020.79
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0040.00423.98
8.1.230.0040.00917.51
8.1.220.0030.00517.78
8.1.210.0030.00518.77
8.1.200.0050.00517.23
8.1.190.0000.00817.13
8.1.180.0050.00318.10
8.1.170.0050.00322.18
8.1.160.0070.00018.79
8.1.150.0040.00320.13
8.1.140.0000.00719.43
8.1.130.0030.00318.96
8.1.120.0000.00717.41
8.1.110.0000.00917.42
8.1.100.0000.00717.46
8.1.90.0040.00417.38
8.1.80.0000.00717.36
8.1.70.0070.00017.40
8.1.60.0000.00917.57
8.1.50.0040.00417.55
8.1.40.0040.00417.43
8.1.30.0050.00317.60
8.1.20.0030.00617.64
8.1.10.0020.00517.44
8.1.00.0040.00417.48
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.34
8.0.270.0000.00717.29
8.0.260.0040.00417.30
8.0.250.0050.00516.96
8.0.240.0030.00416.86
8.0.230.0030.00316.89
8.0.220.0000.00616.90
8.0.210.0080.00016.78
8.0.200.0040.00416.84
8.0.190.0040.00417.00
8.0.180.0050.00316.88
8.0.170.0020.00516.89
8.0.160.0040.00416.89
8.0.150.0030.00516.72
8.0.140.0040.00416.80
8.0.130.0030.00613.34
8.0.120.0000.00716.82
8.0.110.0070.00016.88
8.0.100.0040.00416.89
8.0.90.0040.00416.75
8.0.80.0090.00616.89
8.0.70.0050.00316.67
8.0.60.0040.00416.89
8.0.50.0080.00016.89
8.0.30.0080.00816.92
8.0.20.0100.01017.42
8.0.10.0040.00416.89
8.0.00.0130.00316.84
7.4.330.0060.00015.55
7.4.320.0030.00316.58
7.4.300.0060.00016.50
7.4.290.0050.00316.59
7.4.280.0000.00816.53
7.4.270.0000.00716.57
7.4.260.0060.00316.57
7.4.250.0000.00816.57
7.4.240.0070.00016.50
7.4.230.0050.00216.59
7.4.220.0060.00916.39
7.4.210.0080.01016.49
7.4.200.0040.00416.63
7.4.160.0070.00816.56
7.4.150.0060.01217.40
7.4.140.0110.00817.86
7.4.130.0080.01116.47
7.4.120.0130.01016.59
7.4.110.0030.01316.58
7.4.100.0070.01016.58
7.4.90.0110.00616.58
7.4.80.0080.00819.39
7.4.70.0090.00916.51
7.4.60.0040.01216.76
7.4.50.0090.00616.65
7.4.40.0160.00416.57
7.4.30.0160.00316.57
7.4.00.0110.00715.27
7.3.330.0000.00513.37
7.3.320.0030.00313.24
7.3.310.0030.00316.41
7.3.300.0030.00316.25
7.3.290.0030.00316.42
7.3.280.0160.00716.37
7.3.270.0090.00917.40
7.3.260.0110.01316.48
7.3.250.0060.01116.56
7.3.240.0090.01016.56
7.3.230.0100.00716.51
7.3.210.0150.00016.24
7.3.200.0060.01216.47
7.3.190.0080.01116.45
7.3.180.0070.01016.26
7.3.170.0160.00016.32
7.3.160.0090.00616.57
7.2.330.0110.00716.82
7.2.320.0080.00816.88
7.2.310.0100.01016.83
7.2.300.0100.01016.61
7.2.290.0090.00916.79
7.1.70.0090.00317.38
7.1.60.0030.00716.95
7.1.40.2700.01332.46
7.1.30.4370.02032.48
7.1.20.3170.02032.67
7.1.10.2600.01014.71
7.1.00.2300.00714.74
7.0.200.0000.01516.51
7.0.180.4470.01714.28
7.0.170.4230.02314.40
7.0.160.3900.01314.40
7.0.150.3000.00714.38
7.0.140.2770.01014.48
7.0.130.2630.01314.67
7.0.120.2670.01014.55
7.0.110.3400.00314.32
7.0.100.2470.00714.41
7.0.90.1900.01314.57
7.0.80.2670.01014.65
7.0.70.3500.01314.35
7.0.60.2700.00714.14
7.0.50.3530.01014.46
7.0.40.3470.01714.56
7.0.30.3270.01714.61
7.0.20.2430.01314.52
7.0.10.2830.02014.45
7.0.00.2570.01714.45

preferences:
52.94 ms | 401 KiB | 5 Q