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.70.0040.01118.43
8.3.60.0150.00618.31
8.3.50.0090.00917.52
8.3.40.0070.01118.83
8.3.30.0140.00018.67
8.3.20.0040.00421.90
8.3.10.0000.00721.96
8.3.00.0000.00818.02
8.2.180.0110.01118.29
8.2.170.0120.00322.96
8.2.160.0040.01121.11
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00722.14
8.2.120.0000.00826.35
8.2.110.0030.00721.00
8.2.100.0030.00717.78
8.2.90.0000.00819.19
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0060.00317.80
8.2.50.0040.00419.38
8.2.40.0040.00420.42
8.2.30.0040.00419.09
8.2.20.0040.00418.11
8.2.10.0040.00417.93
8.2.00.0020.00517.97
8.1.280.0040.01125.92
8.1.270.0080.00023.96
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0080.00023.83
8.1.230.0030.00820.89
8.1.220.0000.00817.74
8.1.210.0030.00618.77
8.1.200.0060.00317.22
8.1.190.0000.00817.41
8.1.180.0000.00718.10
8.1.170.0040.00418.75
8.1.160.0000.00718.84
8.1.150.0000.00720.19
8.1.140.0040.00419.39
8.1.130.0070.00018.70
8.1.120.0000.00717.34
8.1.110.0000.00717.44
8.1.100.0040.00417.41
8.1.90.0070.00017.28
8.1.80.0070.00017.46
8.1.70.0030.00317.34
8.1.60.0030.00617.49
8.1.50.0080.00017.45
8.1.40.0080.00017.46
8.1.30.0040.00417.48
8.1.20.0040.00417.62
8.1.10.0030.00717.49
8.1.00.0000.00717.32
8.0.300.0060.00318.77
8.0.290.0000.00716.75
8.0.280.0000.00818.43
8.0.270.0000.00717.24
8.0.260.0070.00016.95
8.0.250.0000.00716.93
8.0.240.0100.00416.98
8.0.230.0030.00516.96
8.0.220.0000.00816.98
8.0.210.0070.00016.94
8.0.200.0070.00017.05
8.0.190.0000.00817.09
8.0.180.0070.00016.89
8.0.170.0040.00416.89
8.0.160.0030.00516.86
8.0.150.0000.00817.01
8.0.140.0040.00416.91
8.0.130.0000.00513.45
8.0.120.0040.00416.78
8.0.110.0000.00716.78
8.0.100.0000.00716.85
8.0.90.0050.00216.78
8.0.80.0040.01216.89
8.0.70.0040.00416.86
8.0.60.0050.00216.74
8.0.50.0000.00716.99
8.0.30.0060.01217.09
8.0.20.0140.01517.40
8.0.10.0030.00516.84
8.0.00.0060.01216.86
7.4.330.0000.00515.55
7.4.320.0040.00416.50
7.4.300.0030.00316.50
7.4.290.0000.00716.60
7.4.280.0050.00216.48
7.4.270.0030.00316.61
7.4.260.0000.00613.18
7.4.250.0030.00316.41
7.4.240.0030.00516.45
7.4.230.0070.00016.63
7.4.220.0040.01216.68
7.4.210.0070.01116.60
7.4.200.0040.00416.49
7.4.160.0110.00516.52
7.4.150.0040.01317.40
7.4.140.0100.00917.86
7.4.130.0060.02016.54
7.4.120.0080.01016.49
7.4.110.0090.01216.61
7.4.100.0170.00716.54
7.4.90.0070.01416.43
7.4.80.0150.00619.39
7.4.70.0060.00916.73
7.4.60.0080.01116.65
7.4.50.0000.01616.75
7.4.40.0100.00716.66
7.4.30.0080.00816.63
7.4.00.0030.01314.98
7.3.330.0050.00013.38
7.3.320.0030.00313.29
7.3.310.0070.00016.32
7.3.300.0070.00016.34
7.3.290.0070.00916.41
7.3.280.0080.00816.39
7.3.270.0000.01717.40
7.3.260.0080.00816.44
7.3.250.0140.00616.53
7.3.240.0090.00816.35
7.3.230.0180.00616.56
7.3.210.0140.00316.35
7.3.200.0030.01216.38
7.3.190.0120.00316.53
7.3.180.0000.01516.46
7.3.170.0040.01216.54
7.3.160.0120.00916.41
7.2.330.0140.00416.46
7.2.320.0090.01316.60
7.2.310.0110.00716.77
7.2.300.0170.00016.33
7.2.290.0120.00416.72
7.2.60.0070.00716.68
7.2.50.0060.00316.70
7.2.00.0060.00619.31
7.1.200.0070.00715.70
7.1.70.0000.00817.20
7.1.60.0600.00733.14
7.1.50.0600.01332.67
7.1.40.0600.01332.73
7.1.30.0570.01732.51
7.1.20.0970.01732.76
7.1.10.0600.00714.48
7.1.00.0670.01314.96
7.0.200.0370.01014.93
7.0.190.0570.00314.95
7.0.180.0400.01314.62
7.0.170.0770.01014.30
7.0.160.0570.01014.33
7.0.150.0670.00314.48
7.0.140.1030.01714.70
7.0.130.0970.00314.57
7.0.120.1000.01014.66
7.0.110.1200.00314.38
7.0.100.1600.01014.56
7.0.90.0630.00314.34
7.0.80.0500.01314.41
7.0.70.1070.01314.36
7.0.60.1330.01714.29
7.0.50.0600.00714.43
7.0.40.0670.01014.43
7.0.30.1130.01714.56
7.0.20.0530.01714.65
7.0.10.0600.01314.53
7.0.00.0500.00714.64

preferences:
35.56 ms | 401 KiB | 5 Q