3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xor_this($string) { // Let's define our key here $key = ('magic_key'); // Our plaintext/ciphertext $text =$string; // Our output text $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);) { for($j=0;($j<strlen($key) && $i<strlen($text));$j++,$i++) { $outText .= $text{$i} ^ $key{$j}; //echo 'i='.$i.', '.'j='.$j.', '.$outText{$i}.'<br />'; //for debugging } } return $outText; } $textToObfuscate = "Some Text 12345"; $obfuscatedText = xor_this($textToObfuscate); $restoredText = xor_this($obfuscatedText); var_dump($restoredText);

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.0140.00716.38
8.3.50.0090.01222.05
8.3.40.0120.00318.63
8.3.30.0070.00719.00
8.3.20.0040.00420.35
8.3.10.0040.00421.77
8.3.00.0080.00019.09
8.2.180.0090.00918.54
8.2.170.0110.00322.96
8.2.160.0070.00721.89
8.2.150.0000.00724.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0060.00317.68
8.2.110.0060.00322.26
8.2.100.0090.00317.78
8.2.90.0030.00619.14
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0060.00317.93
8.2.50.0060.00318.07
8.2.40.0000.00818.06
8.2.30.0040.00419.43
8.2.20.0040.00417.45
8.2.10.0040.00417.80
8.2.00.0070.00017.43
8.1.280.0070.00725.92
8.1.270.0030.00618.65
8.1.260.0020.00526.35
8.1.250.0030.00628.09
8.1.240.0030.00623.75
8.1.230.0080.00419.14
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0030.00617.10
8.1.190.0080.00017.00
8.1.180.0000.00718.10
8.1.170.0000.00818.51
8.1.160.0000.00721.98
8.1.150.0050.00218.77
8.1.140.0030.00619.06
8.1.130.0030.00317.75
8.1.120.0040.00417.24
8.1.110.0060.00317.25
8.1.100.0000.00717.38
8.1.90.0000.00717.31
8.1.80.0040.00417.31
8.1.70.0040.00417.32
8.1.60.0050.00317.36
8.1.50.0030.00517.44
8.1.40.0040.00417.46
8.1.30.0060.00317.48
8.1.20.0040.00417.50
8.1.10.0000.00817.27
8.1.00.0040.00417.17
8.0.300.0070.00018.77
8.0.290.0070.00016.75
8.0.280.0070.00018.23
8.0.270.0030.00317.04
8.0.260.0030.00317.13
8.0.250.0030.00316.88
8.0.240.0000.00816.88
8.0.230.0030.00316.88
8.0.220.0000.00716.84
8.0.210.0070.00016.83
8.0.200.0000.00616.81
8.0.190.0060.00316.83
8.0.180.0030.00516.83
8.0.170.0030.00516.84
8.0.160.0050.00316.82
8.0.150.0070.00016.82
8.0.140.0060.00316.85
8.0.130.0030.00313.24
8.0.120.0050.00216.73
8.0.110.0070.00016.84
8.0.100.0040.00416.62
8.0.90.0000.00716.85
8.0.80.0030.01316.75
8.0.70.0050.00216.84
8.0.60.0040.00416.89
8.0.50.0070.00016.68
8.0.30.0100.01016.88
8.0.20.0060.01317.40
8.0.10.0020.00516.75
8.0.00.0070.01016.57
7.4.330.0030.00315.14
7.4.320.0030.00316.50
7.4.300.0000.00616.43
7.4.290.0030.00316.46
7.4.280.0060.00616.65
7.4.270.0000.00816.59
7.4.260.0000.00816.58
7.4.250.0000.00716.46
7.4.240.0030.00316.45
7.4.230.0050.00216.68
7.4.220.0070.01116.52
7.4.210.0000.01416.55
7.4.200.0070.00016.62
7.4.160.0040.01216.66
7.4.150.0130.00617.40
7.4.140.0090.00817.86
7.4.130.0090.00816.53
7.4.120.0090.00816.63
7.4.110.0100.00716.70
7.4.100.0160.00616.57
7.4.90.0060.01016.62
7.4.80.0060.01219.39
7.4.70.0060.00916.39
7.4.60.0100.00716.45
7.4.50.0000.00716.59
7.4.40.0060.00916.49
7.4.30.0130.00716.69
7.4.00.0110.00414.86
7.3.330.0060.00013.41
7.3.320.0000.00613.24
7.3.310.0000.00816.32
7.3.300.0030.00316.45
7.3.290.0100.00816.30
7.3.280.0080.00816.32
7.3.270.0150.00517.40
7.3.260.0060.01216.47
7.3.250.0130.00816.37
7.3.240.0050.01316.46
7.3.230.0140.00316.43
7.3.210.0070.01016.44
7.3.200.0060.01119.39
7.3.190.0130.00916.65
7.3.180.0050.01116.50
7.3.170.0130.00316.50
7.3.160.0060.00916.47
7.2.330.0130.01016.76
7.2.320.0090.00916.44
7.2.310.0060.01116.39
7.2.300.0030.01316.82
7.2.290.0120.00616.86
7.2.00.0070.00719.62
7.1.200.0080.00415.77
7.1.100.0040.00717.90
7.1.70.0060.00317.20
7.1.60.0140.01119.46
7.1.50.0030.02116.93
7.1.00.0030.07722.35
7.0.200.0810.00414.96
7.0.140.0100.06021.95
7.0.60.0170.07319.88
7.0.50.0030.04717.96
7.0.40.0100.08720.02
7.0.30.0230.07720.23
7.0.20.0470.06720.16
7.0.10.0030.05020.19
7.0.00.0070.06320.22
5.6.280.0030.07320.89
5.6.210.0130.07320.61
5.6.200.0130.05318.22
5.6.190.0100.03720.39
5.6.180.0330.07320.68
5.6.170.0130.04320.50
5.6.160.0070.08320.45
5.6.150.0030.04018.27
5.6.140.0070.08318.19
5.6.130.0030.04718.14
5.6.120.0070.05721.12
5.6.110.0000.04321.05
5.6.100.0100.06021.00
5.6.90.0100.07721.00
5.6.80.0130.06320.38
5.5.350.0300.07320.30
5.5.340.0000.04317.95
5.5.330.0030.06020.43
5.5.320.0000.08320.24
5.5.310.0270.07720.30
5.5.300.0170.06017.95
5.5.290.0070.07018.03
5.5.280.0100.03320.77
5.5.270.0100.05020.78
5.5.260.0070.09020.86
5.5.250.0100.03320.59
5.5.240.0330.06720.25
5.4.450.0600.05719.46
5.4.440.0630.06019.64
5.4.430.0270.06719.45
5.4.420.0670.04319.58
5.4.410.0100.06019.07
5.4.400.0630.05318.84
5.4.390.1070.05318.59
5.4.380.0970.06318.86
5.4.370.1030.04718.60
5.4.360.1070.05718.78
5.4.350.1170.06018.74
5.4.340.0970.05318.70
5.4.320.1100.07018.78
5.4.310.1030.05718.60
5.4.300.1100.07718.70
5.4.290.1070.05018.53
5.4.280.1130.07318.59
5.4.270.1230.06718.76
5.4.260.1070.04318.50
5.4.250.1330.06718.75
5.4.240.1030.06018.59
5.4.230.1000.06018.71
5.4.220.0930.06018.77
5.4.210.0930.05318.68
5.4.200.1000.04716.84
5.4.190.1100.04718.68
5.4.180.0900.05318.82
5.4.170.1000.06018.76
5.4.160.1030.04018.70
5.4.150.1000.05718.76
5.4.140.0770.05716.29
5.4.130.0770.05316.33
5.4.120.0900.06016.30
5.4.110.1030.04316.33
5.4.100.0970.05316.17
5.4.90.1000.05716.28
5.4.80.1070.04316.15
5.4.70.0970.05316.25
5.4.60.1000.04716.27
5.4.50.0870.05716.22
5.4.40.0830.07316.27
5.4.30.1000.04716.13
5.4.20.1070.04716.25
5.4.10.1100.04716.25
5.4.00.1130.06315.68
5.3.290.0870.06314.88
5.3.280.0930.05714.69
5.3.270.1100.04714.71
5.3.260.1030.04714.64
5.3.250.0900.06014.81
5.3.240.0900.05714.81
5.3.230.0900.06014.61
5.3.220.0970.05314.56
5.3.210.0970.05314.79
5.3.200.0900.05714.57
5.3.190.0930.05714.70
5.3.180.1200.06314.74
5.3.170.1230.06314.69
5.3.160.1030.05314.61
5.3.150.1000.06714.60
5.3.140.1000.06014.57
5.3.130.1030.05714.75
5.3.120.1030.05714.53
5.3.110.0900.06314.60
5.3.100.0970.06314.22
5.3.90.0870.06014.24
5.3.80.1130.05314.19
5.3.70.1070.07014.12
5.3.60.0930.05314.08
5.3.50.0970.05013.92
5.3.40.1070.04313.96
5.3.30.0970.05014.01
5.3.20.1070.04313.69
5.3.10.0900.05713.79
5.3.00.0970.05313.86
5.2.170.0830.04011.26
5.2.160.0800.04011.16
5.2.150.0800.04011.13
5.2.140.0870.06011.19
5.2.130.0900.03011.08
5.2.120.0730.04711.10
5.2.110.0830.03711.13
5.2.100.0900.05711.23
5.2.90.0770.04711.10
5.2.80.0800.03311.11
5.2.70.0870.03311.13
5.2.60.0900.04011.16
5.2.50.0830.04311.09
5.2.40.0700.04011.04
5.2.30.0600.04711.02
5.2.20.0670.03710.94
5.2.10.0730.05010.90
5.2.00.0770.04010.81
5.1.60.0630.03310.11
5.1.50.0670.03310.02
5.1.40.0800.03010.00
5.1.30.0700.03310.55
5.1.20.0830.04710.41
5.1.10.0670.03310.07
5.1.00.0670.03310.15
5.0.50.0330.0338.73
5.0.40.0430.0208.44
5.0.30.0400.0378.33
5.0.20.0330.0278.20
5.0.10.0270.0338.21
5.0.00.0330.0438.30
4.4.90.0270.0235.89
4.4.80.0330.0175.92
4.4.70.0300.0205.88
4.4.60.0230.0275.91
4.4.50.0330.0205.93
4.4.40.0370.0335.88
4.4.30.0300.0235.92
4.4.20.0330.0235.93
4.4.10.0330.0206.00
4.4.00.0270.0375.95
4.3.110.0300.0235.91
4.3.100.0300.0235.91
4.3.90.0330.0205.79
4.3.80.0330.0335.79
4.3.70.0300.0235.79
4.3.60.0300.0235.77
4.3.50.0400.0275.88
4.3.40.0330.0475.82
4.3.30.0130.0275.14
4.3.20.0170.0235.14
4.3.10.0170.0235.14
4.3.00.0130.0209.46

preferences:
46.44 ms | 401 KiB | 5 Q