3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xor_encrypt() { $key = 'qw8Jqw8Jqw8Jqw8Js;9yzp7Jo:pJhe)]$#mj'; $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.0120.00318.27
8.3.60.0100.01016.50
8.3.50.0180.00222.81
8.3.40.0130.01018.79
8.3.30.0100.00319.22
8.3.20.0190.00020.34
8.3.10.0030.00623.71
8.3.00.0040.00419.91
8.2.180.0180.00418.16
8.2.170.0040.01822.96
8.2.160.0070.00719.34
8.2.150.0040.00424.18
8.2.140.0030.00524.66
8.2.130.0030.00526.16
8.2.120.0040.00421.04
8.2.110.0060.00322.25
8.2.100.0110.00417.72
8.2.90.0040.00419.34
8.2.80.0040.00419.34
8.2.70.0060.00317.50
8.2.60.0110.00018.16
8.2.50.0050.00318.07
8.2.40.0080.00018.16
8.2.30.0040.00418.14
8.2.20.0080.00017.83
8.2.10.0040.00418.04
8.2.00.0040.00417.74
8.1.280.0070.01025.92
8.1.270.0110.00422.04
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0060.00323.96
8.1.230.0110.00019.10
8.1.220.0040.00417.78
8.1.210.0030.00518.77
8.1.200.0090.00017.38
8.1.190.0040.00417.29
8.1.180.0050.00318.88
8.1.170.0080.00018.48
8.1.160.0030.00320.91
8.1.150.0080.00018.86
8.1.140.0000.00717.27
8.1.130.0030.00317.74
8.1.120.0070.00017.34
8.1.110.0040.00417.30
8.1.100.0030.00417.33
8.1.90.0000.00717.41
8.1.80.0050.00217.46
8.1.70.0030.00317.27
8.1.60.0050.00517.51
8.1.50.0030.00517.50
8.1.40.0070.00417.52
8.1.30.0000.00917.63
8.1.20.0000.00817.59
8.1.10.0020.00517.49
8.1.00.0040.00417.57
8.0.300.0070.00018.77
8.0.290.0070.00017.05
8.0.280.0000.00718.31
8.0.270.0000.00717.32
8.0.260.0030.00617.33
8.0.250.0060.00016.96
8.0.240.0030.00317.02
8.0.230.0000.00716.99
8.0.220.0000.00816.77
8.0.210.0040.00416.89
8.0.200.0040.00416.95
8.0.190.0040.00416.98
8.0.180.0030.00616.85
8.0.170.0000.00916.75
8.0.160.0000.00716.81
8.0.150.0000.00816.85
8.0.140.0050.00316.88
8.0.130.0000.00613.34
8.0.120.0000.00716.88
8.0.110.0000.00716.80
8.0.100.0070.00016.76
8.0.90.0000.00816.81
8.0.80.0090.01316.86
8.0.70.0080.00016.72
8.0.60.0050.00316.73
8.0.50.0030.00516.80
8.0.30.0130.00517.07
8.0.20.0150.00617.40
8.0.10.0040.00417.02
8.0.00.0070.01116.79
7.4.330.0050.00015.02
7.4.320.0030.00316.45
7.4.300.0040.00416.62
7.4.290.0000.00816.43
7.4.280.0070.00016.61
7.4.270.0070.00016.66
7.4.260.0030.00616.61
7.4.250.0070.00016.54
7.4.240.0030.00316.57
7.4.230.0030.00316.69
7.4.220.0070.01316.67
7.4.210.0060.01316.43
7.4.200.0000.00716.52
7.4.160.0070.01116.59
7.4.150.0030.01517.40
7.4.140.0060.01117.86
7.4.130.0120.00916.45
7.4.120.0030.01416.51
7.4.110.0060.01116.43
7.4.100.0130.01016.35
7.4.90.0080.00816.50
7.4.80.0110.00919.39
7.4.70.0030.00716.61
7.4.60.0070.01016.42
7.4.50.0060.00316.61
7.4.40.0110.01116.38
7.4.30.0180.00016.55
7.4.00.0090.00814.86
7.3.330.0000.00513.36
7.3.320.0050.00013.34
7.3.310.0030.00316.37
7.3.300.0000.00816.42
7.3.290.0090.00516.40
7.3.280.0030.01316.38
7.3.270.0160.00317.40
7.3.260.0060.01216.41
7.3.250.0110.01116.47
7.3.240.0030.01416.68
7.3.230.0130.00316.69
7.3.210.0090.00916.37
7.3.200.0100.00919.39
7.3.190.0090.01216.74
7.3.180.0120.00316.50
7.3.170.0080.00816.41
7.3.160.0040.01216.44
7.3.120.0090.00814.85
7.3.110.0020.01614.87
7.3.100.0060.01015.01
7.3.90.0030.01015.00
7.3.80.0080.00514.68
7.3.70.0070.00714.84
7.3.60.0080.00414.85
7.3.50.0050.01014.96
7.3.40.0060.00514.81
7.3.30.0090.00814.72
7.3.20.0100.00316.60
7.3.10.0070.00716.65
7.3.00.0060.00716.73
7.2.330.0060.01016.63
7.2.320.0090.01216.68
7.2.310.0100.01316.46
7.2.300.0140.00316.51
7.2.290.0090.01316.86
7.2.250.0060.01015.19
7.2.240.0060.01314.97
7.2.230.0080.00915.22
7.2.220.0090.00815.06
7.2.210.0060.00814.87
7.2.200.0020.01315.08
7.2.190.0100.00315.19
7.2.180.0050.00915.19
7.2.170.0080.00714.99
7.2.60.0070.00716.93
7.2.00.0060.01019.38
7.1.330.0120.00315.74
7.1.320.0030.01215.82
7.1.310.0040.00915.79
7.1.300.0030.00615.74
7.1.290.0060.00615.85
7.1.280.0060.00815.89
7.1.270.0080.00515.80
7.1.260.0050.00815.90
7.1.200.0110.00015.97
7.1.100.0000.01117.78
7.1.70.0030.00617.13
7.1.60.0000.02319.34
7.1.50.0080.00316.96
7.1.00.0070.07022.35
7.0.200.0040.00716.73
7.0.140.0000.07322.00
7.0.60.0170.07321.77
7.0.50.0000.05717.89
7.0.40.0130.07720.14
7.0.30.0300.07320.08
7.0.20.0330.06720.23
7.0.10.0100.04020.05
7.0.00.0030.04320.23
5.6.210.0030.08020.56
5.6.200.0000.05018.16
5.6.190.0070.08320.48
5.6.180.0030.06320.64
5.6.170.0330.04720.56
5.6.160.0030.07020.44
5.6.150.0030.04318.16
5.6.140.0100.07718.12
5.6.130.0070.09018.14
5.6.120.0030.04021.02
5.6.110.0070.08021.14
5.6.100.0100.08021.14
5.6.90.0100.07321.00
5.6.80.0000.04720.38
5.5.350.0200.07320.41
5.5.340.0030.08017.97
5.5.330.0130.07320.18
5.5.320.0430.07320.38
5.5.310.0230.08020.26
5.5.300.0100.07018.04
5.5.290.0100.07718.02
5.5.280.0100.08020.80
5.5.270.0200.07320.64
5.5.260.0130.08020.73
5.5.250.0100.05320.63
5.5.240.0270.06720.26
5.4.450.0600.05019.46
5.4.440.0670.05319.51
5.4.430.0100.05319.37
5.4.420.0100.05319.52
5.4.410.0100.05019.41
5.4.400.0130.05019.11
5.4.390.0130.04719.21
5.4.380.0200.04319.06
5.4.370.0100.06019.01
5.4.360.0100.05719.02
5.4.350.0100.04713.80
5.4.340.0070.03713.84
5.4.320.0100.03714.21
5.4.310.0130.03714.25
5.4.300.0030.04314.20
5.4.290.0130.04014.32
5.4.280.0100.04714.16
5.4.270.0100.05014.11
5.4.260.0170.03714.17
5.4.250.0030.04714.28
5.4.240.0070.04014.15
5.4.230.0070.04714.09
5.4.220.0130.03314.13
5.4.210.0100.03714.16
5.4.200.0070.04314.20
5.4.190.0070.04314.16
5.4.180.0170.04014.15
5.4.170.0030.04314.18
5.4.160.0100.03714.13
5.4.150.0070.04314.15
5.4.140.0130.04013.84
5.4.130.0030.04314.06
5.4.120.0030.04714.02
5.4.110.0070.03713.73
5.4.100.0000.04713.80
5.4.90.0170.04313.79
5.4.80.0100.05013.80
5.4.70.0130.04713.78
5.4.60.0200.04713.74
5.4.50.0200.04313.78
5.4.40.0070.05713.71
5.4.30.0070.05313.74
5.4.20.0070.05713.76
5.4.10.0170.04313.88
5.4.00.0070.04313.27
5.3.290.0170.04014.65
5.3.280.0130.04314.55
5.3.270.0100.04014.73
5.3.260.0130.05014.53
5.3.250.0070.05314.76
5.3.240.0070.06014.73
5.3.230.0100.05314.63
5.3.220.0100.05014.52
5.3.210.0130.05714.72
5.3.200.0130.05014.45
5.3.190.0230.04314.68
5.3.180.0070.05314.60
5.3.170.0100.04714.66
5.3.160.0130.05014.42
5.3.150.0100.05714.45
5.3.140.0200.04014.44
5.3.130.0200.04714.50
5.3.120.0100.04014.43
5.3.110.0100.04714.41
5.3.100.0170.04313.99
5.3.90.0030.05013.92
5.3.80.0130.04714.15
5.3.70.0170.04313.98
5.3.60.0130.05314.14
5.3.50.0200.04014.03
5.3.40.0130.05014.06
5.3.30.0230.04013.90
5.3.20.0230.03713.68
5.3.10.0200.04013.70
5.3.00.0200.04013.70
5.2.170.0100.04311.11
5.2.160.0100.04011.13
5.2.150.0200.03711.21
5.2.140.0100.04311.06
5.2.130.0070.04011.25
5.2.120.0130.03311.07
5.2.110.0070.04311.06
5.2.100.0130.04011.09
5.2.90.0100.03711.24
5.2.80.0130.03711.06
5.2.70.0070.05011.08
5.2.60.0100.05311.07
5.2.50.0200.03711.14
5.2.40.0000.04710.97
5.2.30.0130.03710.96
5.2.20.0170.03310.93
5.2.10.0170.02710.89
5.2.00.0100.03310.86
5.1.60.0100.03010.13
5.1.50.0070.03710.05
5.1.40.0070.03310.05
5.1.30.0170.02710.25
5.1.20.0030.04310.34
5.1.10.0030.04010.11
5.1.00.0130.03310.04
5.0.50.0030.0308.48
5.0.40.0070.0238.49
5.0.30.0070.0378.40
5.0.20.0100.0208.23
5.0.10.0070.0278.15
5.0.00.0000.0438.18
4.4.90.0070.0205.89
4.4.80.0030.0235.94
4.4.70.0030.0205.85
4.4.60.0070.0205.83
4.4.50.0030.0175.84
4.4.40.0000.0335.82
4.4.30.0030.0205.98
4.4.20.0030.0205.96
4.4.10.0070.0175.91
4.4.00.0100.0305.98
4.3.110.0030.0275.75
4.3.100.0000.0275.78
4.3.90.0170.0105.76
4.3.80.0000.0375.88
4.3.70.0030.0205.76
4.3.60.0000.0235.90
4.3.50.0070.0175.71
4.3.40.0030.0335.70
4.3.30.0000.0204.51
4.3.20.0000.0234.50
4.3.10.0030.0174.57
4.3.00.0000.0237.03

preferences:
50.32 ms | 401 KiB | 5 Q