3v4l.org

run code in 300+ PHP versions simultaneously
<? $key= json_encode(array("showpassword"=>"no", "bgcolor"=>"#ffffff")); $data=base64_decode('ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSEV4sFxFeaAw%3D'); function xor_encrypt($text, $key) { $key= json_encode(array("showpassword"=>"no", "bgcolor"=>"#ffffff")); $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } $key=xor_encrypt($data,$key); echo $key; echo xor_encrypt(array( "showpassword"=>"yes", "bgcolor"=>"#ffffff"),$key); ?>

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.0070.01116.63
8.3.50.0120.01022.09
8.3.40.0080.01118.68
8.3.30.0070.00718.83
8.3.20.0140.00020.21
8.3.10.0000.00823.54
8.3.00.0000.00819.25
8.2.180.0070.01418.29
8.2.170.0100.00722.96
8.2.160.0030.01020.55
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00622.30
8.2.110.0040.00422.20
8.2.100.0000.01217.78
8.2.90.0080.00019.13
8.2.80.0040.00417.97
8.2.70.0060.00317.38
8.2.60.0050.00517.75
8.2.50.0060.00318.07
8.2.40.0050.00319.95
8.2.30.0040.00417.79
8.2.20.0000.00717.46
8.2.10.0000.00717.92
8.2.00.0050.00517.49
8.1.280.0120.00925.92
8.1.270.0000.00823.92
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0030.00623.84
8.1.230.0110.00018.97
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.22
8.1.190.0060.00317.39
8.1.180.0060.00318.10
8.1.170.0060.00318.52
8.1.160.0030.00321.80
8.1.150.0060.00318.41
8.1.140.0000.00817.18
8.1.130.0000.00717.61
8.1.120.0000.00717.22
8.1.110.0030.00517.24
8.1.100.0080.00017.29
8.1.90.0000.00717.33
8.1.80.0000.00617.34
8.1.70.0030.00317.29
8.1.60.0030.00617.40
8.1.50.0040.00417.28
8.1.40.0040.00417.29
8.1.30.0050.00317.42
8.1.20.0000.00717.57
8.1.10.0040.00417.42
8.1.00.0000.00717.23
8.0.300.0000.00819.21
8.0.290.0050.00317.05
8.0.280.0030.00318.27
8.0.270.0000.00717.19
8.0.260.0030.00317.18
8.0.250.0060.00016.80
8.0.240.0000.00816.79
8.0.230.0000.00816.70
8.0.220.0030.00316.82
8.0.210.0030.00316.77
8.0.200.0030.00316.74
8.0.190.0040.00416.84
8.0.180.0070.00316.78
8.0.170.0040.00416.79
8.0.160.0020.00516.82
8.0.150.0050.00316.64
8.0.140.0020.00516.79
8.0.130.0080.00013.34
8.0.120.0000.00716.70
8.0.110.0040.00416.79
8.0.100.0040.00416.76
8.0.90.0000.00716.65
8.0.80.0110.00316.70
8.0.70.0040.00416.64
8.0.60.0040.00416.64
8.0.50.0040.00416.81
8.0.30.0130.00517.04
8.0.20.0080.01017.40
8.0.10.0040.00416.87
8.0.00.0080.00916.55
7.4.330.0030.00315.00
7.4.320.0030.00316.39
7.4.300.0000.00716.36
7.4.290.0070.00016.50
7.4.280.0030.00316.41
7.4.270.0040.00416.33
7.4.260.0050.00316.33
7.4.250.0000.00816.44
7.4.240.0040.00316.40
7.4.230.0030.00316.27
7.4.220.0100.00716.48
7.4.210.0090.00516.49
7.4.200.0070.00016.48
7.4.190.0000.00716.41
7.4.160.0180.00016.25
7.4.150.0160.00617.40
7.4.140.0080.01017.86
7.4.130.0100.00616.41
7.4.120.0130.00516.21
7.4.110.0060.01416.26
7.4.100.0150.00616.56
7.4.90.0000.01716.41
7.4.80.0120.00819.39
7.4.70.0200.00316.23
7.4.60.0140.00316.16
7.4.50.0050.00316.18
7.4.40.0090.00622.77
7.4.30.0100.00616.43
7.4.00.0030.00914.82
7.3.330.0030.00313.24
7.3.320.0030.00313.36
7.3.310.0000.00716.06
7.3.300.0040.00416.17
7.3.290.0060.01316.17
7.3.280.0100.01116.10
7.3.270.0120.00617.40
7.3.260.0100.01416.34
7.3.250.0110.00916.34
7.3.240.0100.00616.18
7.3.230.0100.00716.39
7.3.210.0120.00916.09
7.3.200.0120.01219.39
7.3.190.0130.00316.31
7.3.180.0060.00916.22
7.3.170.0170.00016.30
7.3.160.0070.01016.36
7.3.120.0070.01014.79
7.2.330.0080.00916.45
7.2.320.0130.00316.60
7.2.310.0090.01216.51
7.2.300.0130.00316.53
7.2.290.0100.00716.59
7.1.70.0060.00616.96
7.1.60.0100.00619.46
7.1.50.0070.00317.05
7.1.00.0000.08022.27
7.0.200.0000.00916.79
7.0.140.0000.06722.00
7.0.90.0630.06019.88
7.0.80.0670.07719.97
7.0.70.0630.07320.03
7.0.60.0530.07719.98
7.0.50.0270.04320.36
7.0.40.0070.05720.13
7.0.30.0100.03720.11
7.0.20.0100.03720.14
7.0.10.0170.03020.04
7.0.00.0070.04020.07
5.6.280.0070.07021.04
5.6.240.0030.08320.69
5.6.230.0130.04320.68
5.6.220.0000.06320.56
5.6.210.0170.07020.61
5.6.200.0130.05021.08
5.6.190.0030.09021.17
5.6.180.0000.07321.14
5.6.170.0030.04721.02
5.6.160.0000.05321.02
5.6.150.0070.04021.13
5.6.140.0030.05721.02
5.6.130.0070.04021.01
5.6.120.0000.06021.04
5.6.110.0030.04021.02
5.6.100.0100.03020.95
5.6.90.0000.05721.00
5.6.80.0030.04020.30
5.6.70.0030.04020.39
5.6.60.0070.03720.55
5.6.50.0030.04720.52
5.6.40.0000.04320.49
5.6.30.0070.07720.39
5.6.20.0030.04020.45
5.6.10.0100.03320.41
5.6.00.0000.04320.39
5.5.380.0170.07020.52
5.5.370.0200.07020.37
5.5.360.0170.07020.49
5.5.350.0100.07720.37
5.5.340.0070.07720.84
5.5.330.0170.06320.84
5.5.320.0130.05720.92
5.5.310.0030.04020.64
5.5.300.0070.03320.80
5.5.290.0030.04020.80
5.5.280.0030.06320.90
5.5.270.0200.06020.89
5.5.260.0030.04720.82
5.5.250.0030.04020.67
5.5.240.0100.03320.03
5.5.230.0000.04320.18
5.5.220.0170.06320.13
5.5.210.0030.04020.02
5.5.200.0030.04320.18
5.5.190.0130.04020.21
5.5.180.0070.05720.28
5.5.160.0030.04020.27
5.5.150.0130.05320.12
5.5.140.0000.04020.25
5.5.130.0100.08320.25
5.5.120.0100.04320.21
5.5.110.0070.04720.14
5.5.100.0100.03320.04
5.5.90.0030.04020.07
5.5.80.0230.06020.16
5.5.70.0070.07019.92
5.5.60.0030.04320.16
5.5.50.0070.03720.05
5.5.40.0100.03320.20
5.5.30.0070.06720.05
5.5.20.0100.07319.93
5.5.10.0000.05020.05
5.5.00.0130.06720.02
5.4.450.0030.04019.46
5.4.440.0070.08019.37
5.4.430.0070.04719.46
5.4.420.0100.06719.37
5.4.410.0000.04019.06
5.4.400.0070.04018.88
5.4.390.0000.04319.09
5.4.380.0070.04719.16
5.4.370.0030.03718.95
5.4.360.0070.03318.85
5.4.350.0100.03019.14
5.4.340.0070.03719.21
5.4.320.0030.03718.95
5.4.310.0000.06018.90
5.4.300.0000.04019.02
5.4.290.0070.03718.94
5.4.280.0030.03319.12
5.4.270.0030.03319.09
5.4.260.0000.04318.87
5.4.250.0130.04019.08
5.4.240.0030.07019.23
5.4.230.0030.04319.08
5.4.220.0100.05319.14
5.4.210.0030.03719.17
5.4.200.0000.08019.02
5.4.190.0000.06019.02
5.4.180.0070.05719.11
5.4.170.0030.03719.13
5.4.160.0130.07018.92
5.4.150.0030.05018.83
5.4.140.0000.04316.45
5.4.130.0070.07316.20
5.4.120.0070.06316.28
5.4.110.0100.05716.44
5.4.100.0170.06316.34
5.4.90.0130.07016.35
5.4.80.0100.05716.48
5.4.70.0030.07016.42
5.4.60.0030.04316.46
5.4.50.0100.04316.46
5.4.40.0170.06716.51
5.4.30.0170.05716.30
5.4.20.0130.06316.46
5.4.10.0030.05016.33
5.4.00.0070.07715.89
5.3.290.0030.03714.47
5.3.280.0100.06714.58
5.3.270.0030.03714.59
5.3.260.0100.07014.61
5.3.250.0070.06014.56
5.3.240.0070.04714.42
5.3.230.0070.05014.41
5.3.220.0070.07314.42
5.3.210.0030.05014.46
5.3.200.0170.06714.55
5.3.190.0130.07014.54
5.3.180.0100.06714.54
5.3.170.0100.03314.42
5.3.160.0070.07714.53
5.3.150.0030.07714.42
5.3.140.0170.03314.41
5.3.130.0130.07314.40
5.3.120.0170.06714.40
5.3.110.0070.07314.40
5.3.100.0100.06014.02
5.3.90.0030.07714.00
5.3.80.0070.07713.99
5.3.70.0100.06713.87
5.3.60.0030.07713.75
5.3.50.0030.06313.80
5.3.40.0130.06713.93
5.3.30.0100.04313.76
5.3.20.0030.05713.46
5.3.10.0030.07313.59
5.3.00.0030.07713.61
5.2.170.0100.06010.97
5.2.160.0070.04310.98
5.2.150.0030.03010.97
5.2.140.0030.06311.20
5.2.130.0070.06011.04
5.2.120.0030.05710.94
5.2.110.0030.06011.08
5.2.100.0030.05711.11
5.2.90.0030.04011.02
5.2.80.0070.04710.88
5.2.70.0070.03311.09
5.2.60.0070.05311.09
5.2.50.0000.06710.86
5.2.40.0030.05710.84
5.2.30.0070.06011.02
5.2.20.0030.05310.75
5.2.10.0000.06310.80
5.2.00.0070.06310.76
5.1.60.0000.0609.89
5.1.50.0030.05310.03
5.1.40.0000.04710.05
5.1.30.0000.03010.25
5.1.20.0030.05710.38
5.1.10.0100.04010.09
5.1.00.0070.0439.94
5.0.50.0030.0438.57
5.0.40.0030.0308.38
5.0.30.0000.0538.21
5.0.20.0000.0338.20
5.0.10.0030.0408.14
5.0.00.0000.0377.99
4.4.90.0000.0337.35
4.4.80.0000.0337.35
4.4.70.0000.0177.35
4.4.60.0070.0307.35
4.4.50.0000.0407.35
4.4.40.0000.0377.35
4.4.30.0030.0337.35
4.4.20.0030.0307.35
4.4.10.0030.0207.35
4.4.00.0100.0477.35
4.3.110.0030.0337.35
4.3.100.0030.0337.35
4.3.90.0030.0307.35
4.3.80.0000.0507.35
4.3.70.0070.0307.35
4.3.60.0000.0307.35
4.3.50.0000.0307.35
4.3.40.0030.0477.35
4.3.30.0000.0337.35
4.3.20.0070.0337.35
4.3.10.0000.0377.35
4.3.00.0000.0377.35

preferences:
39.04 ms | 401 KiB | 5 Q