3v4l.org

run code in 300+ PHP versions simultaneously
<? $key= '10.92.1.104' $data='tiger'; function xor_encrypt($in) { $text = $in; $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } $key=xor_encrypt($data); echo xor_encrypt(array( "showpassword"=>"yes", "bgcolor"=>"#ffffff")); ?>

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.0100.01016.63
8.3.60.0100.00718.18
8.3.50.0130.01021.97
8.3.40.0090.00618.48
8.3.30.0070.00718.96
8.3.20.0050.00320.04
8.3.10.0060.00320.36
8.3.00.0030.00619.25
8.2.190.0070.00716.58
8.2.180.0140.00716.50
8.2.170.0140.00022.96
8.2.160.0070.00720.53
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0030.00526.16
8.2.120.0040.00422.06
8.2.110.0030.00920.24
8.2.100.0080.00417.72
8.2.90.0040.00419.23
8.2.80.0000.00817.97
8.2.70.0000.00817.63
8.2.60.0060.00317.91
8.2.50.0000.00818.07
8.2.40.0080.00018.17
8.2.30.0000.00719.53
8.2.20.0040.00417.54
8.2.10.0060.00317.79
8.2.00.0040.00417.41
8.1.280.0070.00725.92
8.1.270.0040.00422.19
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.60
8.1.230.0000.01119.04
8.1.220.0030.00617.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0090.00017.23
8.1.180.0040.00418.10
8.1.170.0060.00318.52
8.1.160.0040.00421.81
8.1.150.0000.00718.75
8.1.140.0040.00417.42
8.1.130.0070.00017.62
8.1.120.0070.00017.28
8.1.110.0020.00517.27
8.1.100.0000.00717.19
8.1.90.0030.00717.31
8.1.80.0040.00417.34
8.1.70.0000.00817.23
8.1.60.0030.00617.35
8.1.50.0080.00017.24
8.1.40.0040.00417.37
8.1.30.0080.00017.49
8.1.20.0000.00817.52
8.1.10.0040.00417.42
8.1.00.0040.00417.39
8.0.300.0070.00018.77
8.0.290.0000.00816.63
8.0.280.0000.00718.29
8.0.270.0060.00317.11
8.0.260.0060.00317.14
8.0.250.0030.00316.85
8.0.240.0040.00416.82
8.0.230.0030.00316.83
8.0.220.0030.00416.76
8.0.210.0030.00316.77
8.0.200.0000.00616.81
8.0.190.0040.00416.79
8.0.180.0030.00516.68
8.0.170.0040.00416.73
8.0.160.0030.00516.69
8.0.150.0030.00316.73
8.0.140.0060.00316.59
8.0.130.0000.00613.41
8.0.120.0000.00816.72
8.0.110.0040.00416.77
8.0.100.0070.00016.79
8.0.90.0000.00716.73
8.0.80.0030.01216.74
8.0.70.0040.00416.70
8.0.60.0040.00416.75
8.0.50.0070.00016.71
8.0.30.0070.01517.04
8.0.20.0120.00817.40
8.0.10.0040.00416.83
8.0.00.0080.01116.59
7.4.330.0040.00015.00
7.4.320.0030.00316.47
7.4.300.0000.00616.46
7.4.290.0000.00716.39
7.4.280.0040.00416.47
7.4.270.0000.00716.28
7.4.260.0000.00916.48
7.4.250.0080.00016.34
7.4.240.0030.00316.38
7.4.230.0070.00016.22
7.4.220.0170.00316.54
7.4.210.0030.01016.53
7.4.200.0070.00016.46
7.4.160.0120.00316.34
7.4.150.0070.01017.40
7.4.140.0100.01017.86
7.4.130.0100.00716.33
7.4.120.0100.00716.33
7.4.110.0030.01316.48
7.4.100.0090.00916.30
7.4.90.0130.00316.40
7.4.80.0030.01419.39
7.4.70.0150.00916.41
7.4.60.0070.01016.51
7.4.50.0040.00416.50
7.4.40.0090.00916.41
7.4.30.0060.00916.25
7.3.330.0050.00013.21
7.3.320.0050.00013.11
7.3.310.0030.00316.21
7.3.300.0030.00316.16
7.3.290.0110.00316.13
7.3.280.0080.00716.11
7.3.270.0110.00617.40
7.3.260.0170.00016.41
7.3.250.0100.00716.31
7.3.240.0070.01016.27
7.3.230.0060.01316.39
7.3.210.0100.00716.40
7.3.200.0100.00619.39
7.3.190.0140.00316.23
7.3.180.0080.00816.20
7.3.170.0070.01016.47
7.3.160.0120.00416.37
7.2.330.0170.00016.29
7.2.320.0100.00716.30
7.2.310.0160.00716.38
7.2.300.0080.00916.38
7.2.290.0030.01316.19
5.4.320.0060.03512.45
5.4.310.0080.03612.45
5.4.300.0060.03712.45
5.4.290.0070.03712.45
5.4.280.0070.03212.35
5.4.270.0100.03712.34
5.4.260.0070.04112.34
5.4.250.0060.03912.35
5.4.240.0070.03412.34
5.4.230.0090.03812.34
5.4.220.0080.03312.34
5.4.210.0030.03812.34
5.4.200.0030.04012.34
5.4.190.0070.03412.33
5.4.180.0030.03712.34
5.4.170.0070.03612.35
5.4.160.0050.03612.34
5.4.150.0060.03712.34
5.4.140.0060.03712.02
5.4.130.0060.03512.01
5.4.120.0060.03511.97
5.4.110.0060.03511.96
5.4.100.0080.03311.96
5.4.90.0060.03611.96
5.4.80.0060.03711.96
5.4.70.0050.03511.96
5.4.60.0080.03811.96
5.4.50.0080.04011.96
5.4.40.0040.03811.95
5.4.30.0110.03711.95
5.4.20.0080.03711.95
5.4.10.0060.03711.94
5.4.00.0070.03411.44

preferences:
38.64 ms | 401 KiB | 5 Q