3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xor_encrypt() { $key = '{"showpassword": "no", "bgcolor": "#ffffff"}'; $text = base64_decode('ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSRQt+QkULaAw='); $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } print xor_encrypt(); ?>

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.0100.01018.43
8.3.60.0100.01016.63
8.3.50.0090.00822.79
8.3.40.0110.00418.73
8.3.30.0110.00319.22
8.3.20.0000.00720.16
8.3.10.0000.00723.65
8.3.00.0080.00019.92
8.2.190.0090.00916.75
8.2.180.0090.01216.50
8.2.170.0170.00322.96
8.2.160.0040.01119.15
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0000.00721.08
8.2.110.0100.00020.38
8.2.100.0090.00617.91
8.2.90.0080.00019.21
8.2.80.0000.00719.34
8.2.70.0080.00317.63
8.2.60.0090.00017.93
8.2.50.0000.00818.07
8.2.40.0000.00818.28
8.2.30.0060.00318.14
8.2.20.0040.00417.82
8.2.10.0040.00418.01
8.2.00.0040.00417.68
8.1.280.0060.01325.92
8.1.270.0000.00822.11
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0000.00923.96
8.1.230.0080.00319.14
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0060.00617.35
8.1.190.0040.00417.53
8.1.180.0060.00319.13
8.1.170.0040.00418.54
8.1.160.0040.00420.84
8.1.150.0000.00718.91
8.1.140.0000.00717.28
8.1.130.0000.00717.82
8.1.120.0000.00717.44
8.1.110.0000.00817.26
8.1.100.0070.00017.40
8.1.90.0040.00417.27
8.1.80.0000.00717.30
8.1.70.0030.00317.29
8.1.60.0060.00317.60
8.1.50.0030.00517.54
8.1.40.0070.00617.52
8.1.30.0040.00417.67
8.1.20.0000.00717.50
8.1.10.0040.00417.48
8.1.00.0000.00717.41
8.0.300.0040.00418.77
8.0.290.0080.00017.04
8.0.280.0030.00318.37
8.0.270.0030.00317.18
8.0.260.0040.00417.32
8.0.250.0000.00716.99
8.0.240.0000.00717.02
8.0.230.0030.00517.00
8.0.220.0070.00016.89
8.0.210.0070.00016.89
8.0.200.0030.00316.94
8.0.190.0040.00416.95
8.0.180.0040.00416.77
8.0.170.0050.00316.95
8.0.160.0000.00816.77
8.0.150.0040.00416.89
8.0.140.0070.00016.76
8.0.130.0040.00413.32
8.0.120.0040.00416.90
8.0.110.0040.00416.90
8.0.100.0040.00416.91
8.0.90.0000.00716.93
8.0.80.0100.01316.91
8.0.70.0070.00016.84
8.0.60.0000.00816.92
8.0.50.0000.00816.73
8.0.30.0130.00816.94
8.0.20.0110.00817.40
8.0.10.0020.00517.02
8.0.00.0100.01016.69
7.4.330.0030.00315.02
7.4.320.0000.00716.48
7.4.300.0060.00016.62
7.4.290.0030.00516.63
7.4.280.0000.01116.61
7.4.270.0070.00016.55
7.4.260.0030.00316.58
7.4.250.0030.00316.46
7.4.240.0020.00516.63
7.4.230.0070.00016.67
7.4.220.0170.00916.52
7.4.210.0170.00316.51
7.4.200.0030.00316.71
7.4.160.0150.00716.61
7.4.150.0140.00517.40
7.4.140.0080.00917.86
7.4.130.0130.00516.50
7.4.120.0070.01216.56
7.4.110.0120.01216.45
7.4.100.0090.00916.38
7.4.90.0100.00716.44
7.4.80.0120.00619.39
7.4.70.0100.00716.66
7.4.60.0070.01016.50
7.4.50.0030.00616.49
7.4.40.0090.00616.42
7.4.30.0060.01116.54
7.4.00.0000.01915.05
7.3.330.0030.00313.39
7.3.320.0030.00313.41
7.3.310.0040.00416.15
7.3.300.0000.00716.39
7.3.290.0040.01216.36
7.3.280.0090.00816.34
7.3.270.0090.00917.40
7.3.260.0070.01016.33
7.3.250.0060.01316.48
7.3.240.0090.00616.44
7.3.230.0090.01016.66
7.3.210.0150.00816.59
7.3.200.0120.00919.39
7.3.190.0100.00716.63
7.3.180.0060.00916.42
7.3.170.0040.01616.42
7.3.160.0140.00316.35
7.3.120.0030.01414.87
7.3.110.0040.01114.51
7.3.100.0060.01114.86
7.3.90.0060.00315.11
7.3.80.0060.01014.66
7.3.70.0080.00614.91
7.3.60.0070.00714.96
7.3.50.0070.00414.82
7.3.40.0040.01114.82
7.3.30.0000.01314.98
7.3.20.0040.01116.53
7.3.10.0080.00516.55
7.3.00.0050.00816.67
7.2.330.0140.00316.73
7.2.320.0100.00716.46
7.2.310.0090.00916.50
7.2.300.0100.00716.74
7.2.290.0120.01116.50
7.2.250.0110.00415.22
7.2.240.0060.00915.18
7.2.230.0100.00315.12
7.2.220.0000.01415.08
7.2.210.0030.00715.25
7.2.200.0070.01014.93
7.2.190.0000.01515.24
7.2.180.0120.00315.17
7.2.170.0040.00715.15
7.2.160.0030.00614.90
7.2.150.0070.01016.72
7.2.140.0030.00916.75
7.2.130.0070.00617.01
7.2.120.0050.00816.99
7.2.110.0060.00816.87
7.2.100.0050.01116.94
7.2.90.0090.00416.90
7.2.80.0050.01016.89
7.2.70.0080.00516.94
7.2.60.0030.01016.98
7.2.50.0080.00616.95
7.2.40.0060.00816.94
7.2.30.0080.00517.01
7.2.20.0060.00616.92
7.2.10.0030.00816.95
7.2.00.0070.00617.40
7.1.330.0000.01615.54
7.1.320.0060.00915.81
7.1.310.0100.00315.63
7.1.300.0000.00915.58
7.1.290.0000.01015.74
7.1.280.0070.00315.61
7.1.270.0030.01015.91
7.1.260.0040.00415.84
7.1.250.0060.00915.75
7.1.100.0100.00717.77
7.1.70.0040.00417.22
7.1.60.0040.01919.34
7.1.50.0100.01316.97
7.1.00.0100.07022.31
7.0.200.0000.00716.64
7.0.140.0070.03022.01
7.0.60.0070.04019.93
7.0.50.0030.04317.99
7.0.40.0000.05320.34
7.0.30.0330.07320.23
7.0.20.0400.06320.12
7.0.10.0030.04720.32
7.0.00.0000.04720.33
5.6.280.0100.06721.12
5.6.210.0100.06020.71
5.6.200.0100.08018.15
5.6.190.0030.05720.63
5.6.180.0070.07020.33
5.6.170.0470.06720.48
5.6.160.0030.04720.54
5.6.150.0130.07018.22
5.6.140.0170.06718.14
5.6.130.0000.05318.17
5.6.120.0170.07720.99
5.6.110.0100.08321.05
5.6.100.0030.07721.01
5.6.90.0000.08721.11
5.6.80.0070.03720.54
5.5.350.0170.03320.52
5.5.340.0000.04317.93
5.5.330.0070.08320.19
5.5.320.0470.07020.32
5.5.310.0270.04020.31
5.5.300.0000.04018.08
5.5.290.0100.04017.95
5.5.280.0130.08020.82
5.5.270.0130.06020.63
5.5.260.0100.07020.84
5.5.250.0130.07320.79
5.5.240.0030.07720.34
5.4.450.1630.04319.48
5.4.440.1670.04019.49
5.4.430.1800.02719.27
5.4.420.1730.03319.49
5.4.410.1730.03319.29
5.4.400.1770.03718.84
5.4.390.1730.03319.22
5.4.380.1870.04719.16
5.4.370.1870.04018.95
5.4.360.1730.04019.00
5.4.350.1600.04319.06
5.4.340.0070.03719.09
5.4.320.0070.03718.95
5.4.310.0100.04719.24
5.4.300.0970.04318.99
5.4.290.1800.03719.05
5.4.280.2030.04318.83
5.4.270.2000.04019.16
5.4.260.1830.03019.23
5.4.250.1800.05019.21
5.4.240.1670.03719.13
5.4.230.1870.04318.99
5.4.220.1830.05019.23
5.4.210.1830.04319.16
5.4.200.1900.05018.96
5.4.190.0030.08319.09
5.4.180.0100.04719.14
5.4.170.0470.03319.14
5.4.160.1830.04718.86
5.4.150.1870.04319.22
5.4.140.1630.03316.46
5.4.130.1870.03716.51
5.4.120.1600.03716.33
5.4.110.1670.04016.56
5.4.100.1930.03716.28
5.4.90.1870.03716.41
5.4.80.1870.03716.44
5.4.70.1870.03716.34
5.4.60.1270.04316.23
5.4.50.0070.06016.53
5.4.40.0070.07016.43
5.4.30.0970.03316.34
5.4.20.1930.04016.16
5.4.10.1830.04716.18
5.4.00.1730.04715.78
5.3.290.1700.04014.88
5.3.280.1830.04714.73
5.3.270.1930.03014.60
5.3.260.1800.04314.61
5.3.250.1670.04714.68
5.3.240.1870.04314.51
5.3.230.1900.04314.68
5.3.220.0270.03314.55
5.3.210.0030.03714.54
5.3.200.0030.07714.65
5.3.190.0530.04014.53
5.3.180.1770.04014.61
5.3.170.1600.03714.55
5.3.160.1800.04314.55
5.3.150.1830.04314.64
5.3.140.1870.04014.46
5.3.130.1800.04314.45
5.3.120.1930.03714.66
5.3.110.1630.03314.42
5.3.100.1900.03714.12
5.3.90.1970.04314.11
5.3.80.1770.02314.11
5.3.70.2000.04314.05
5.3.60.1670.04313.92
5.3.50.1700.03313.94
5.3.40.1870.04014.00
5.3.30.1630.03713.80
5.3.20.1900.04013.70
5.3.10.1900.03713.66
5.3.00.2030.03313.62
5.2.170.1400.03711.07
5.2.160.1400.02711.29
5.2.150.1400.02711.14
5.2.140.1600.03311.11
5.2.130.0000.03011.15
5.2.120.0070.05311.25
5.2.110.0000.04311.12
5.2.100.1230.03011.03
5.2.90.1430.02711.00
5.2.80.1400.02711.02
5.2.70.1470.03011.17
5.2.60.1570.02711.17
5.2.50.1330.03310.93
5.2.40.1100.02710.90
5.2.30.1400.03010.93
5.2.20.1130.02710.93
5.2.10.1070.03011.01
5.2.00.0430.03010.72
5.1.60.0030.0239.91
5.1.50.0030.0379.92
5.1.40.0000.0239.87
5.1.30.0870.02710.34
5.1.20.1130.03010.26
5.1.10.1170.02710.06
5.1.00.0630.02710.14
5.0.50.0030.0178.53
5.0.40.0030.0178.50
5.0.30.0030.0278.31
5.0.20.0000.0238.36
5.0.10.0000.0208.15
5.0.00.0070.0378.28
4.4.90.0030.0137.72
4.4.80.0000.0337.72
4.4.70.0430.0137.72
4.4.60.0500.0177.72
4.4.50.0630.0137.72
4.4.40.0600.0277.72
4.4.30.0670.0277.72
4.4.20.0770.0207.72
4.4.10.0570.0207.72
4.4.00.0700.0407.72
4.3.110.0670.0237.72
4.3.100.0500.0177.72
4.3.90.0530.0177.72
4.3.80.0670.0237.72
4.3.70.0600.0207.72
4.3.60.0530.0177.72
4.3.50.0600.0107.72
4.3.40.0500.0277.72
4.3.30.0370.0307.72
4.3.20.0300.0177.72
4.3.10.0300.0207.72
4.3.00.0300.0277.72

preferences:
18.93 ms | 401 KiB | 5 Q