3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xor_this($string) { // Let's define our key here $key = adeabecc; // Our plaintext/ciphertext $text =$string; // Our output text $outText = ''; // Iterate through each character $outText = $text ^ $key; //echo 'i='.$i.', '.'j='.$j.', '.$outText{$i}.'<br />'; //for debugging return $outText; } echo xor_this('adeabecc'); //echo xor_this(12341234);

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.00718.43
8.3.50.0070.01116.30
8.3.40.0150.00318.92
8.3.30.0110.00418.53
8.3.20.0000.00721.75
8.3.10.0070.00021.86
8.3.00.0060.00317.76
8.2.180.0140.00718.54
8.2.170.0090.00622.96
8.2.160.0030.01021.02
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0000.00722.11
8.2.120.0050.00326.35
8.2.110.0070.00320.52
8.2.100.0000.01117.91
8.2.90.0080.00019.04
8.2.80.0040.00417.97
8.2.70.0080.00017.63
8.2.60.0040.00417.93
8.2.50.0050.00319.39
8.2.40.0000.00820.50
8.2.30.0040.00419.28
8.2.20.0050.00318.06
8.2.10.0050.00317.94
8.2.00.0040.00418.05
8.1.280.0090.00625.92
8.1.270.0000.00823.96
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0080.00023.89
8.1.230.0100.00023.94
8.1.220.0000.00817.74
8.1.210.0000.00818.77
8.1.200.0060.00317.35
8.1.190.0060.00317.41
8.1.180.0000.00918.10
8.1.170.0050.00318.27
8.1.160.0000.00718.90
8.1.150.0050.00320.14
8.1.140.0050.00219.43
8.1.130.0040.00418.74
8.1.120.0000.00717.30
8.1.110.0070.00017.45
8.1.100.0040.00417.41
8.1.90.0040.00417.44
8.1.80.0000.00717.32
8.1.70.0030.00317.35
8.1.60.0000.00917.36
8.1.50.0030.00517.34
8.1.40.0000.00817.52
8.1.30.0080.00017.55
8.1.20.0000.00817.45
8.1.10.0030.00517.50
8.1.00.0050.00317.45
8.0.300.0050.00518.77
8.0.290.0040.00416.75
8.0.280.0070.00018.38
8.0.270.0030.00317.32
8.0.260.0000.00816.93
8.0.250.0000.00817.02
8.0.240.0060.01016.98
8.0.230.0040.00416.98
8.0.220.0000.00716.93
8.0.210.0000.00817.02
8.0.200.0060.00017.01
8.0.190.0080.00017.01
8.0.180.0000.00816.94
8.0.170.0000.00716.96
8.0.160.0080.00017.00
8.0.150.0000.00716.79
8.0.140.0040.00416.93
8.0.130.0060.00013.38
8.0.120.0060.00316.89
8.0.110.0040.00417.02
8.0.100.0040.00416.90
8.0.90.0050.00316.96
8.0.80.0070.01016.86
8.0.70.0050.00316.82
8.0.60.0000.00716.83
8.0.50.0000.00717.01
8.0.30.0120.00716.99
8.0.20.0130.00817.40
8.0.10.0000.00717.03
8.0.00.0060.01216.84
7.4.330.0020.00215.55
7.4.320.0030.00316.51
7.4.300.0030.00316.48
7.4.290.0000.00616.41
7.4.280.0000.00716.57
7.4.270.0030.00316.54
7.4.260.0000.00613.27
7.4.250.0000.00716.41
7.4.240.0000.00716.46
7.4.230.0070.00016.61
7.4.220.0070.01016.61
7.4.210.0130.00416.61
7.4.200.0030.00316.68
7.4.160.0120.00416.53
7.4.150.0150.00317.40
7.4.140.0100.01017.86
7.4.130.0040.01316.62
7.4.120.0100.01216.48
7.4.110.0200.00316.60
7.4.100.0070.01716.54
7.4.90.0120.00816.65
7.4.80.0110.01119.39
7.4.70.0070.01116.61
7.4.60.0110.00716.74
7.4.50.0000.01516.41
7.4.40.0060.00916.57
7.4.30.0140.00316.65
7.4.00.0000.01514.75
7.3.330.0030.00313.29
7.3.320.0000.00613.16
7.3.310.0050.00316.46
7.3.300.0040.00416.37
7.3.290.0090.00616.42
7.3.280.0070.00916.37
7.3.270.0070.01017.40
7.3.260.0090.01116.63
7.3.250.0140.00816.51
7.3.240.0060.01116.64
7.3.230.0070.01416.44
7.3.210.0070.01016.64
7.3.200.0090.00816.41
7.3.190.0130.00316.50
7.3.180.0050.01416.41
7.3.170.0030.01216.48
7.3.160.0150.00316.40
7.3.10.0070.00916.57
7.3.00.0090.00916.29
7.2.330.0080.00816.61
7.2.320.0060.01216.71
7.2.310.0110.00616.42
7.2.300.0090.00616.68
7.2.290.0080.00816.40
7.2.130.0120.00016.59
7.2.120.0110.00416.51
7.2.110.0070.00716.54
7.2.100.0130.01616.58
7.2.90.0070.00516.48
7.2.80.0120.00916.36
7.2.70.0140.00716.79
7.2.60.0090.00916.64
7.2.50.0080.01116.65
7.2.40.0110.01416.40
7.2.30.0150.00616.50
7.2.20.0080.00816.48
7.2.10.0100.00316.49
7.2.00.0060.00917.69
7.1.250.0060.00615.49
7.1.200.0110.00015.90
7.1.70.0000.00716.87
7.1.60.0530.01333.17
7.1.50.0570.01333.08
7.1.40.0630.01332.59
7.1.30.0870.01332.66
7.1.20.0700.01032.56
7.1.10.0670.01314.60
7.1.00.0870.01714.79
7.0.200.0470.01014.70
7.0.190.0500.00314.59
7.0.180.0430.01314.54
7.0.170.0530.01314.32
7.0.160.0630.00714.30
7.0.150.0600.01314.32
7.0.140.0730.00314.45
7.0.130.1100.01014.79
7.0.120.0000.02314.51
7.0.110.0100.01014.37
7.0.100.1000.02014.43
7.0.90.0900.01314.41
7.0.80.0500.01314.40
7.0.70.0430.01314.36
7.0.60.0800.01014.31
7.0.50.0830.01314.38
7.0.40.0070.01014.75
7.0.30.0730.01314.83
7.0.20.0130.01314.82
7.0.10.0030.01014.66
7.0.00.0900.01314.50

preferences:
52.21 ms | 401 KiB | 5 Q