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); echo $obfuscatedText.'<br>'.$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.70.0140.00418.54
8.3.60.0160.00618.51
8.3.50.0110.00521.08
8.3.40.0120.00318.68
8.3.30.0100.00620.35
8.3.20.0040.00420.20
8.3.10.0080.00020.79
8.3.00.0000.00822.32
8.2.180.0120.00916.38
8.2.170.0140.00322.96
8.2.160.0070.00722.29
8.2.150.0040.00424.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00420.64
8.2.110.0090.00019.38
8.2.100.0090.00317.72
8.2.90.0040.00419.13
8.2.80.0000.00817.97
8.2.70.0030.00617.13
8.2.60.0000.00817.80
8.2.50.0000.00818.07
8.2.40.0040.00417.96
8.2.30.0040.00419.43
8.2.20.0020.00517.43
8.2.10.0030.00517.56
8.2.00.0000.00717.53
8.1.280.0030.01725.92
8.1.270.0040.00423.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00022.29
8.1.230.0080.00421.02
8.1.220.0040.00418.77
8.1.210.0000.00819.04
8.1.200.0000.01117.23
8.1.190.0080.00017.04
8.1.180.0030.00518.10
8.1.170.0030.00518.25
8.1.160.0000.00718.77
8.1.150.0000.00818.52
8.1.140.0040.00417.37
8.1.130.0030.00317.79
8.1.120.0000.01117.38
8.1.110.0000.00717.35
8.1.100.0030.00417.34
8.1.90.0000.00717.21
8.1.80.0050.00317.32
8.1.70.0000.00717.24
8.1.60.0050.00317.47
8.1.50.0050.00317.36
8.1.40.0080.00017.36
8.1.30.0040.00417.52
8.1.20.0030.00517.57
8.1.10.0040.00417.36
8.1.00.0030.00617.37
8.0.300.0060.00319.85
8.0.290.0070.00017.05
8.0.280.0040.00318.20
8.0.270.0030.00317.08
8.0.260.0050.00316.81
8.0.250.0060.00316.91
8.0.240.0070.00316.95
8.0.230.0000.00716.88
8.0.220.0030.00316.85
8.0.210.0060.00016.80
8.0.200.0030.00316.81
8.0.190.0070.00016.85
8.0.180.0040.00416.77
8.0.170.0000.00916.83
8.0.160.0000.00716.77
8.0.150.0040.00416.66
8.0.140.0030.00316.82
8.0.130.0000.00513.25
8.0.120.0000.00716.65
8.0.110.0020.00516.83
8.0.100.0030.00316.72
8.0.90.0040.00416.71
8.0.80.0030.01216.73
8.0.70.0000.00716.78
8.0.60.0000.00716.88
8.0.50.0000.00716.82
8.0.30.0080.01417.02
8.0.20.0080.01117.40
8.0.10.0000.00717.01
8.0.00.0140.00516.62
7.4.330.0000.00516.71
7.4.320.0000.00616.47
7.4.300.0030.00316.43
7.4.290.0070.00016.50
7.4.280.0070.00016.60
7.4.270.0060.00016.53
7.4.260.0030.00313.27
7.4.250.0000.00816.46
7.4.240.0040.00416.61
7.4.230.0040.00416.70
7.4.220.0070.01416.48
7.4.210.0090.00616.55
7.4.200.0000.00716.50
7.4.190.0000.00716.49
7.4.160.0090.00616.59
7.4.150.0170.00317.40
7.4.140.0080.01017.86
7.4.130.0070.01016.60
7.4.120.0080.01116.52
7.4.110.0100.00616.55
7.4.100.0120.01216.73
7.4.90.0110.01116.51
7.4.80.0100.00719.39
7.4.70.0170.00416.74
7.4.60.0060.00916.60
7.4.50.0000.00616.44
7.4.40.0030.01222.77
7.4.30.0100.00716.66
7.4.00.0030.01314.81
7.3.330.0000.00613.31
7.3.320.0080.00013.36
7.3.310.0000.00616.18
7.3.300.0000.00716.41
7.3.290.0030.01016.36
7.3.280.0100.00916.36
7.3.270.0070.01017.40
7.3.260.0110.00718.24
7.3.250.0050.01116.33
7.3.240.0060.01216.44
7.3.230.0070.01416.39
7.3.210.0110.00716.36
7.3.200.0090.00819.39
7.3.190.0060.00916.30
7.3.180.0130.00416.68
7.3.170.0130.00416.31
7.3.160.0170.00316.42
7.3.120.0040.01214.81
7.2.330.0120.00616.84
7.2.320.0070.01016.70
7.2.310.0110.01116.72
7.2.300.0060.01016.61
7.2.290.0030.01316.71
7.2.00.0030.00919.54
7.1.200.0060.00615.82
7.1.100.0030.00717.92
7.1.70.0070.00317.11
7.1.60.0150.00319.17
7.1.50.0130.00616.78
7.1.00.0030.03322.44
7.0.200.0000.00716.46
7.0.140.0070.07022.07
7.0.60.0100.06320.05
7.0.50.0070.03717.96
7.0.40.0130.08319.96
7.0.30.0200.04320.23
7.0.20.0200.05720.33
7.0.10.0300.06720.16
7.0.00.0030.08320.15
5.6.280.0100.09020.82
5.6.210.0170.07320.53
5.6.200.0030.08718.20
5.6.190.0070.07020.65
5.6.180.0270.03720.39
5.6.170.0430.04720.44
5.6.160.0070.06320.39
5.6.150.0030.04018.18
5.6.140.0070.07318.18
5.6.130.0070.04318.15
5.6.120.0100.04721.14
5.6.110.0030.04321.12
5.6.100.0130.07721.00
5.6.90.0130.06021.00
5.6.80.0100.06320.38
5.6.70.0230.06020.44
5.5.350.0130.09320.44
5.5.340.0070.08018.08
5.5.330.0030.07720.28
5.5.320.0130.08320.28
5.5.310.0400.06720.21
5.5.300.0200.06317.96
5.5.290.0000.07318.06
5.5.280.0070.08320.85
5.5.270.0030.04320.88
5.5.260.0100.07320.84
5.5.250.0100.07320.58
5.5.240.0000.04320.27
5.4.450.0330.06719.52
5.4.440.0230.07019.56
5.4.430.0200.08019.54
5.4.420.0170.04019.41
5.4.410.0200.07319.42
5.4.400.0270.06719.14
5.4.390.0230.07019.31
5.4.380.0200.07318.86
5.4.370.0270.07019.09
5.4.360.0270.07319.16
5.4.350.0170.05319.09
5.4.340.0230.07719.09
5.4.320.0270.07019.31
5.4.310.0200.06019.15
5.4.300.0200.07719.08
5.4.290.0230.05319.08
5.4.280.0230.07719.13
5.4.270.0270.06319.17
5.4.260.0200.06719.15
5.4.250.0270.04018.99
5.4.240.0200.03718.84
5.4.230.0170.04719.14
5.4.220.0230.04319.15
5.4.210.0270.07019.21
5.4.200.0170.06319.15
5.4.190.0200.03319.14
5.4.180.0270.05718.93
5.4.170.0200.05019.12
5.4.160.0230.07319.06
5.4.150.0270.06319.11
5.4.140.0170.06316.50
5.4.130.0270.07016.35
5.4.120.0130.04716.38
5.4.110.0300.06716.56
5.4.100.0130.05016.52
5.4.90.0170.03716.51
5.4.80.0230.07016.26
5.4.70.0230.04016.52
5.4.60.0300.06016.25
5.4.50.0230.05016.33
5.4.40.0230.04316.43
5.4.30.0300.03316.40
5.4.20.0270.04716.42
5.4.10.0330.05716.17
5.4.00.0200.04716.11
5.3.290.0300.04714.64
5.3.280.0200.03314.51
5.3.270.0230.07714.76
5.3.260.0230.04714.70
5.3.250.0270.04714.69
5.3.240.0300.06014.53
5.3.230.0270.07014.52
5.3.220.0200.05714.55
5.3.210.0330.06014.50
5.3.200.0300.05714.53
5.3.190.0170.04314.64
5.3.180.0130.04314.63
5.3.170.0100.05014.56
5.3.160.0270.06714.54
5.3.150.0170.04714.55
5.3.140.0300.04714.71
5.3.130.0170.05314.52
5.3.120.0200.07014.66
5.3.110.0230.06714.64
5.3.100.0230.03014.04
5.3.90.0230.03314.18
5.3.80.0130.04014.03
5.3.70.0130.04314.04
5.3.60.0170.03714.10
5.3.50.0170.03313.85
5.3.40.0200.03013.87
5.3.30.0230.03713.98
5.3.20.0130.03313.85
5.3.10.0130.03313.59
5.3.00.0200.03013.71
5.2.170.0130.02712.09
5.2.160.0030.03312.09
5.2.150.0130.02712.09
5.2.140.0130.02712.09
5.2.130.0100.03012.09
5.2.120.0170.02312.09
5.2.110.0030.03312.09
5.2.100.0170.03312.09
5.2.90.0130.02712.09
5.2.80.0100.04312.09
5.2.70.0130.03012.09
5.2.60.0170.02712.09
5.2.50.0130.03712.09
5.2.40.0130.02712.09
5.2.30.0030.03312.09
5.2.20.0100.02712.09
5.2.10.0130.02312.09
5.2.00.0100.02712.09
5.1.60.0070.02712.09
5.1.50.0100.02312.09
5.1.40.0130.02012.09
5.1.30.0100.02312.09
5.1.20.0030.03012.09
5.1.10.0100.02312.09
5.1.00.0200.02012.09
5.0.50.0030.02312.09
5.0.40.0000.02312.09
5.0.30.0030.04012.09
5.0.20.0030.02012.09
5.0.10.0030.02012.09
5.0.00.0070.03312.09
4.4.90.0070.03312.09
4.4.80.0070.02012.09
4.4.70.0030.01712.09
4.4.60.0100.01012.09
4.4.50.0000.02012.09
4.4.40.0070.02312.09
4.4.30.0070.01312.09
4.4.20.0030.01712.09
4.4.10.0030.01712.09
4.4.00.0030.03012.09
4.3.110.0070.01712.09
4.3.100.0030.02312.09
4.3.90.0030.01312.09
4.3.80.0000.02712.09
4.3.70.0070.01012.09
4.3.60.0070.01712.09
4.3.50.0070.01312.09
4.3.40.0030.02312.09
4.3.30.0070.02012.09
4.3.20.0000.02012.09
4.3.10.0030.01712.09
4.3.00.0030.02312.09

preferences:
60.66 ms | 401 KiB | 5 Q