3v4l.org

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

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.0070.00718.18
8.3.50.0100.00721.13
8.3.40.0080.00818.67
8.3.30.0140.00418.98
8.3.20.0000.00720.36
8.3.10.0080.00020.39
8.3.00.0080.00017.38
8.2.180.0090.00916.50
8.2.170.0140.00722.96
8.2.160.0030.01020.35
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0070.00022.23
8.2.110.0060.00320.18
8.2.100.0070.00418.22
8.2.90.0030.00619.15
8.2.80.0000.00817.97
8.2.70.0050.00517.63
8.2.60.0050.00517.80
8.2.50.0000.00918.07
8.2.40.0040.00418.08
8.2.30.0030.00619.14
8.2.20.0070.00017.41
8.2.10.0040.00417.92
8.2.00.0050.00217.55
8.1.280.0170.00325.92
8.1.270.0110.00424.05
8.1.260.0030.00626.35
8.1.250.0000.00728.09
8.1.240.0070.00323.84
8.1.230.0120.00019.00
8.1.220.0020.00517.74
8.1.210.0040.00418.77
8.1.200.0060.00317.11
8.1.190.0080.00016.99
8.1.180.0060.00318.10
8.1.170.0000.00918.59
8.1.160.0000.00821.86
8.1.150.0040.00418.75
8.1.140.0000.00817.31
8.1.130.0030.00317.75
8.1.120.0000.00717.34
8.1.110.0050.00217.31
8.1.100.0030.00317.22
8.1.90.0040.00417.32
8.1.80.0000.00717.36
8.1.70.0000.00717.22
8.1.60.0000.00817.45
8.1.50.0000.00817.42
8.1.40.0080.00017.34
8.1.30.0000.00817.40
8.1.20.0000.00817.50
8.1.10.0040.00417.32
8.1.00.0060.00317.38
8.0.300.0030.00318.77
8.0.290.0070.00016.63
8.0.280.0050.00318.32
8.0.270.0090.00017.10
8.0.260.0030.00317.19
8.0.250.0000.00716.78
8.0.240.0040.00216.70
8.0.230.0000.00716.88
8.0.220.0000.00616.76
8.0.210.0000.00816.74
8.0.200.0030.00316.64
8.0.190.0030.00316.78
8.0.180.0000.00716.70
8.0.170.0060.00316.74
8.0.160.0000.00716.77
8.0.150.0080.00016.67
8.0.140.0050.00516.76
8.0.130.0030.00313.33
8.0.120.0000.00816.77
8.0.110.0030.00516.64
8.0.100.0000.00716.77
8.0.90.0000.00716.77
8.0.80.0130.00316.77
8.0.70.0020.00516.82
8.0.60.0040.00416.76
8.0.50.0030.00516.67
8.0.30.0130.00516.97
8.0.20.0110.01117.40
8.0.10.0000.00716.91
8.0.00.0090.01116.78
7.4.330.0030.00315.00
7.4.320.0060.00016.26
7.4.300.0030.00316.38
7.4.290.0040.00416.38
7.4.280.0030.00316.21
7.4.270.0000.00816.39
7.4.260.0030.00316.30
7.4.250.0050.00216.19
7.4.240.0030.00316.39
7.4.230.0030.00316.56
7.4.220.0090.00916.42
7.4.210.0080.00616.49
7.4.200.0000.00716.56
7.4.160.0060.00916.24
7.4.150.0090.00917.40
7.4.140.0060.01017.86
7.4.130.0120.00716.38
7.4.120.0080.00916.31
7.4.110.0130.01116.40
7.4.100.0140.00616.57
7.4.90.0200.00316.51
7.4.80.0090.00918.80
7.4.70.0060.00916.46
7.4.60.0120.00916.32
7.4.50.0000.00516.45
7.4.40.0080.01016.15
7.4.30.0110.00416.43
7.4.10.0080.00514.82
7.4.00.0090.00614.65
7.3.330.0060.00013.20
7.3.320.0000.00513.34
7.3.310.0030.00316.27
7.3.300.0030.00316.13
7.3.290.0080.00516.11
7.3.280.0090.01116.14
7.3.270.0030.01417.40
7.3.260.0090.00916.39
7.3.250.0050.01316.45
7.3.240.0110.00716.29
7.3.230.0160.00016.45
7.3.210.0070.01016.19
7.3.200.0140.00319.39
7.3.190.0030.01316.14
7.3.180.0150.00616.16
7.3.170.0050.01416.27
7.3.160.0130.00316.13
7.3.130.0050.00814.56
7.3.120.0060.00614.58
7.3.110.0050.00814.49
7.3.100.0030.01014.41
7.3.90.0030.01014.43
7.3.80.0070.00714.18
7.3.70.0050.00814.58
7.3.60.0050.00814.66
7.3.50.0030.01514.36
7.3.40.0000.01314.55
7.3.30.0060.00614.67
7.3.20.0090.00614.57
7.3.10.0110.00515.45
7.3.00.0030.01415.36
7.2.330.0140.00316.25
7.2.320.0060.01116.71
7.2.310.0030.02016.58
7.2.300.0080.00816.59
7.2.290.0040.01216.35
7.2.260.0100.00314.53
7.2.250.0030.01014.60
7.2.240.0030.01014.55
7.2.230.0040.01114.86
7.2.220.0080.00614.89
7.2.210.0080.00614.77
7.2.200.0060.01314.36
7.2.190.0100.00314.54
7.2.180.0070.01314.97
7.2.170.0110.00314.71
7.2.160.0050.00814.48
7.2.150.0100.00514.83
7.2.140.0110.01114.70
7.2.130.0110.00915.46
7.2.120.0070.00915.70
7.2.110.0090.01015.37
7.2.100.0170.00515.65
7.2.90.0070.00615.88
7.2.80.0130.00515.53
7.2.70.0130.00715.79
7.2.60.0090.01015.83
7.2.50.0090.00815.74
7.2.40.0130.01015.81
7.2.30.0150.00715.90
7.2.20.0190.00615.66
7.2.10.0070.01315.69
7.2.00.0120.00716.98
7.1.330.0160.00313.58
7.1.320.0190.00013.68
7.1.310.0190.00313.32
7.1.300.0190.00613.52
7.1.290.0120.00913.46
7.1.280.0060.01213.86
7.1.270.0080.01213.74
7.1.260.0140.00813.98
7.1.250.0170.00514.48
7.1.240.0160.01113.63
7.1.230.0120.00813.69
7.1.220.0190.00013.84
7.1.210.0110.00513.61
7.1.200.0070.00714.71
7.1.190.0180.00613.81
7.1.180.0150.00713.87
7.1.170.0080.00813.50
7.1.160.0140.00613.85
7.1.150.0150.00213.94
7.1.140.0160.00013.84
7.1.130.0180.00613.84
7.1.120.0190.00013.71
7.1.110.0000.01813.84
7.1.100.0080.00716.13
7.1.90.0160.00313.52
7.1.80.0150.00313.82
7.1.70.0090.01015.38
7.1.60.0140.00716.51
7.1.50.0090.00715.38
7.1.40.0140.00613.57
7.1.30.0110.00813.88
7.1.20.0180.00013.71
7.1.10.0150.00413.84
7.1.00.0100.03918.10
7.0.330.0100.01313.27
7.0.320.0130.00413.27
7.0.310.0070.01013.25
7.0.300.0150.00613.30
7.0.290.0080.00813.26
7.0.280.0070.01413.14
7.0.270.0060.01613.39
7.0.260.0040.01413.41
7.0.250.0180.00013.33
7.0.240.0130.00713.51
7.0.230.0180.00013.13
7.0.220.0150.00313.18
7.0.210.0080.00813.16
7.0.200.0090.00515.04
7.0.190.0170.00312.99
7.0.180.0130.01013.45
7.0.170.0080.01013.32
7.0.160.0150.00413.33
7.0.150.0140.00413.54
7.0.140.0080.04017.87
7.0.130.0100.00613.56
7.0.120.0050.01213.52
7.0.110.0000.01413.31
7.0.100.0090.00913.27
7.0.90.0140.04316.58
7.0.80.0250.02416.65
7.0.70.0350.03716.59
7.0.60.0090.05216.80
7.0.50.0110.03316.87
7.0.40.0050.04216.74
7.0.30.0090.02916.60
7.0.20.0060.04816.51
7.0.10.0150.04216.71
7.0.00.0160.02216.80
5.6.400.0140.00714.36
5.6.390.0130.01314.17
5.6.380.0130.00613.97
5.6.370.0150.01014.02
5.6.360.0140.00814.15
5.6.350.0130.00614.21
5.6.340.0150.00713.93
5.6.330.0100.01014.32
5.6.320.0180.00014.03
5.6.310.0080.01314.10
5.6.300.0040.01314.22
5.6.290.0170.00314.11
5.6.280.0070.03917.51
5.6.270.0080.00814.13
5.6.260.0080.00814.09
5.6.250.0130.01014.09
5.6.240.0100.04317.44
5.6.230.0040.03317.33
5.6.220.0110.03817.33
5.6.210.0100.04317.26
5.6.200.0120.03017.50
5.6.190.0100.02817.48
5.6.180.0170.03417.57
5.6.170.0080.03617.47
5.6.160.0040.03217.65
5.6.150.0180.03717.62
5.6.140.0110.03317.55
5.6.130.0080.04917.67
5.6.120.0110.04517.54
5.6.110.0140.03417.44
5.6.100.0090.03817.56
5.6.90.0080.02717.55
5.6.80.0080.04417.12
5.6.70.0150.02017.27
5.6.60.0080.04417.20
5.6.50.0120.04117.26
5.6.40.0100.02917.31
5.6.30.0070.02817.31
5.6.20.0080.03517.07
5.6.10.0100.04517.04
5.6.00.0070.04017.21
5.5.380.0140.03717.29
5.5.370.0030.04517.32
5.5.360.0170.03717.18
5.5.350.0140.04417.28
5.5.340.0120.04417.50
5.5.330.0140.02817.42
5.5.320.0160.03617.29
5.5.310.0160.04017.38
5.5.300.0100.02817.41
5.5.290.0110.02617.25
5.5.280.0050.03217.52
5.5.270.0140.04217.29
5.5.260.0060.02817.47
5.5.250.0120.04217.32
5.5.240.0100.02717.14
5.5.230.0110.02816.98
5.5.220.0080.03316.96
5.5.210.0060.03816.90
5.5.200.0140.03617.06
5.5.190.0080.04316.94
5.5.180.0080.02617.08
5.5.170.0090.00913.78
5.5.160.0140.03717.13
5.5.150.0050.04717.04
5.5.140.0130.03817.02
5.5.130.0050.04516.98
5.5.120.0070.04417.10
5.5.110.0070.04517.06
5.5.100.0160.03717.05
5.5.90.0170.03217.04
5.5.80.0130.02216.84
5.5.70.0080.03216.94
5.5.60.0110.04317.11
5.5.50.0100.04517.04
5.5.40.0060.03016.79
5.5.30.0140.03816.96
5.5.20.0120.03816.94
5.5.10.0070.03916.81
5.5.00.0080.02716.87
5.4.450.0090.02916.03
5.4.440.0100.04315.95
5.4.430.0100.03715.95
5.4.420.0050.02316.06
5.4.410.0070.04316.04
5.4.400.0100.02415.93
5.4.390.0120.03315.87
5.4.380.0070.04415.94
5.4.370.0090.02515.87
5.4.360.0060.02615.83
5.4.350.0110.03815.82
5.4.340.0070.04115.91
5.4.330.0070.00312.70
5.4.320.0090.03815.81
5.4.310.0080.03715.80
5.4.300.0110.03115.87
5.4.290.0050.02815.87
5.4.280.0070.03115.92
5.4.270.0070.04115.82
5.4.260.0070.04215.86
5.4.250.0130.02115.91
5.4.240.0090.02815.89
5.4.230.0120.03715.89
5.4.220.0150.03515.87
5.4.210.0100.03715.80
5.4.200.0150.02115.94
5.4.190.0100.04415.80
5.4.180.0110.03815.82
5.4.170.0070.03215.88
5.4.160.0110.04015.78
5.4.150.0130.01715.77
5.4.140.0070.03914.56
5.4.130.0110.03714.54
5.4.120.0080.03814.53
5.4.110.0100.01714.52
5.4.100.0060.02514.49
5.4.90.0050.02314.55
5.4.80.0110.04014.48
5.4.70.0060.02714.59
5.4.60.0100.03614.56
5.4.50.0120.03514.52
5.4.40.0070.02314.61
5.4.30.0140.03714.47
5.4.20.0130.03414.57
5.4.10.0110.03714.55
5.4.00.0100.04014.28
5.3.290.0070.08314.52
5.3.280.0030.08014.41
5.3.270.0030.08014.56
5.3.260.0030.06714.55
5.3.250.0070.07014.55
5.3.240.0100.07014.44
5.3.230.0070.04714.55
5.3.220.0100.06714.52
5.3.210.0000.05714.41
5.3.200.0130.07014.55
5.3.190.0030.05314.54
5.3.180.0070.07714.51
5.3.170.0030.07314.54
5.3.160.0100.07014.42
5.3.150.0100.06714.49
5.3.140.0070.04314.51
5.3.130.0130.05714.52
5.3.120.0030.07714.55
5.3.110.0130.07014.54
5.3.100.0100.06313.99
5.3.90.0000.07313.97
5.3.80.0070.04013.78
5.3.70.0130.07313.92
5.3.60.0030.07314.00
5.3.50.0030.07713.91
5.3.40.0170.06013.89
5.3.30.0070.07713.89
5.3.20.0070.05313.54
5.3.10.0070.06713.64
5.3.00.0130.06313.62
5.2.170.0030.06711.18
5.2.160.0070.06011.13
5.2.150.0070.06011.09
5.2.140.0130.05011.18
5.2.130.0030.04711.08
5.2.120.0070.04011.09
5.2.110.0030.06011.09
5.2.100.0070.07311.09
5.2.90.0100.05311.08
5.2.80.0030.06011.05
5.2.70.0000.04311.01
5.2.60.0130.04711.06
5.2.50.0030.04711.05
5.2.40.0030.05310.98
5.2.30.0000.06310.83
5.2.20.0070.06010.92
5.2.10.0130.04710.92
5.2.00.0070.05710.66
5.1.60.0070.05010.58
5.1.50.0070.02710.58
5.1.40.0000.04710.58
5.1.30.0030.04710.58
5.1.20.0070.05010.58
5.1.10.0100.05010.58
5.1.00.0000.04010.58
5.0.50.0030.03710.58
5.0.40.0100.04310.58
5.0.30.0100.06310.58
5.0.20.0070.04010.58
5.0.10.0070.02710.58
5.0.00.0000.04310.58
4.4.90.0030.01310.58
4.4.80.0000.02710.58
4.4.70.0000.02710.58
4.4.60.0030.03310.58
4.4.50.0000.03310.58
4.4.40.0030.05310.58
4.4.30.0000.03710.58
4.4.20.0070.02710.58
4.4.10.0000.03310.58
4.4.00.0030.04310.58
4.3.110.0030.02710.58
4.3.100.0000.02710.58
4.3.90.0070.03010.58
4.3.80.0070.04010.58
4.3.70.0030.03310.58
4.3.60.0000.02710.58
4.3.50.0000.03010.58
4.3.40.0000.03310.58
4.3.30.0000.03010.58
4.3.20.0000.02010.58
4.3.10.0070.01710.58
4.3.00.0030.03310.58

preferences:
54.92 ms | 401 KiB | 5 Q