3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cookie = "ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSEV4sFxFeaAw"; function xor_encrypt($in) { $key = json_encode(array("showpassword"=>"no", "bgcolor"=>"#ffffff")); $text = $in; $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } print xor_encrypt($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.0110.00716.75
8.3.50.0170.00322.03
8.3.40.0070.00718.79
8.3.30.0080.00619.17
8.3.20.0040.00420.31
8.3.10.0040.00423.64
8.3.00.0080.00019.38
8.2.180.0100.00618.41
8.2.170.0060.01222.96
8.2.160.0160.00320.44
8.2.150.0040.00424.18
8.2.140.0100.01024.66
8.2.130.0040.00426.16
8.2.120.0050.00322.26
8.2.110.0000.00919.21
8.2.100.0070.00317.91
8.2.90.0040.00419.40
8.2.80.0040.00417.97
8.2.70.0030.00617.46
8.2.60.0050.00318.05
8.2.50.0040.00418.07
8.2.40.0080.00018.16
8.2.30.0030.00718.25
8.2.20.0030.00617.63
8.2.10.0030.00618.00
8.2.00.0000.00717.86
8.1.280.0090.01225.92
8.1.270.0100.00023.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00822.00
8.1.230.0120.00017.42
8.1.220.0040.00417.75
8.1.210.0080.00018.77
8.1.200.0000.00917.25
8.1.190.0040.00417.18
8.1.180.0000.00818.10
8.1.170.0060.00318.59
8.1.160.0030.00621.95
8.1.150.0070.00018.69
8.1.140.0000.00717.39
8.1.130.0050.00217.94
8.1.120.0000.00717.43
8.1.110.0040.00417.30
8.1.100.0070.00017.43
8.1.90.0000.00817.31
8.1.80.0050.00217.42
8.1.70.0000.00717.28
8.1.60.0060.00317.48
8.1.50.0000.00817.46
8.1.40.0000.00817.54
8.1.30.0040.00417.63
8.1.20.0000.00717.63
8.1.10.0040.00417.54
8.1.00.0020.00517.40
8.0.300.0030.00718.77
8.0.290.0050.00216.75
8.0.280.0000.00718.47
8.0.270.0070.00017.33
8.0.260.0060.00016.75
8.0.250.0080.00016.86
8.0.240.0050.00316.97
8.0.230.0030.00316.79
8.0.220.0030.00516.95
8.0.210.0040.00416.83
8.0.200.0080.00016.95
8.0.190.0000.00916.97
8.0.180.0020.00516.98
8.0.170.0040.00416.92
8.0.160.0000.00716.82
8.0.150.0070.00016.88
8.0.140.0030.00316.76
8.0.130.0000.00813.29
8.0.120.0040.00416.88
8.0.110.0000.00716.82
8.0.100.0050.00216.90
8.0.90.0040.00416.70
8.0.80.0060.01016.94
8.0.70.0080.00016.91
8.0.60.0040.00416.91
8.0.50.0040.00416.84
8.0.30.0050.01516.87
8.0.20.0080.01117.40
8.0.10.0040.00417.03
8.0.00.0140.00616.70
7.4.330.0050.00015.00
7.4.320.0060.00016.50
7.4.300.0070.00016.61
7.4.290.0000.00716.64
7.4.280.0030.00516.45
7.4.270.0050.00316.43
7.4.260.0080.00016.42
7.4.250.0000.00716.46
7.4.240.0050.00216.55
7.4.230.0070.00016.47
7.4.220.0130.01316.58
7.4.210.0070.00916.62
7.4.200.0030.00316.50
7.4.190.0000.00716.64
7.4.160.0030.01416.55
7.4.150.0090.00817.40
7.4.140.0130.00717.86
7.4.130.0100.00616.64
7.4.120.0060.01116.45
7.4.110.0050.01616.71
7.4.100.0110.01116.54
7.4.90.0040.01416.48
7.4.80.0070.01119.39
7.4.70.0060.01516.63
7.4.60.0060.01216.39
7.4.50.0040.00416.57
7.4.40.0080.00822.77
7.4.30.0080.00816.65
7.4.00.0120.00414.87
7.3.330.0000.00513.34
7.3.320.0050.00013.17
7.3.310.0000.00816.33
7.3.300.0000.00716.38
7.3.290.0030.01016.38
7.3.280.0120.00816.37
7.3.270.0070.01017.40
7.3.260.0180.00616.22
7.3.250.0080.00916.55
7.3.240.0100.01316.50
7.3.230.0090.00916.42
7.3.210.0000.01616.37
7.3.200.0120.00819.39
7.3.190.0120.00916.39
7.3.180.0080.00816.46
7.3.170.0100.00616.54
7.3.160.0100.00616.60
7.3.120.0040.01114.89
7.2.330.0100.00716.60
7.2.320.0120.00916.75
7.2.310.0070.01016.84
7.2.300.0130.00316.48
7.2.290.0030.01316.59
7.2.120.0070.00716.48
7.2.110.0060.00616.80
7.2.100.0120.00016.73
7.2.90.0030.00816.69
7.2.80.0090.00616.46
7.2.70.0090.00416.96
7.2.60.0070.00717.07
7.2.50.0140.00317.15
7.2.40.0140.00716.88
7.2.30.0130.00717.14
7.2.20.0150.00616.84
7.2.10.0120.00816.98
7.2.00.0090.00616.75
7.1.240.0160.00315.83
7.1.230.0150.00315.91
7.1.220.0090.00615.81
7.1.210.0060.00316.05
7.1.200.0070.00715.76
7.1.190.0120.00315.66
7.1.180.0080.00515.92
7.1.170.0120.00415.96
7.1.160.0120.00615.82
7.1.150.0100.00615.72
7.1.140.0090.00915.90
7.1.130.0110.00515.95
7.1.120.0100.00715.46
7.1.110.0160.00315.92
7.1.100.0090.00615.72
7.1.90.0060.00915.92
7.1.80.0030.01215.89
7.1.70.0070.00216.52
7.1.60.0070.01217.56
7.1.50.0050.01216.37
7.1.40.0030.00615.77
7.1.30.0070.00715.66
7.1.20.0030.00915.68
7.1.10.0030.00915.52
7.1.00.0070.04619.02
7.0.320.0080.00815.38
7.0.310.0030.01015.41
7.0.300.0060.00915.39
7.0.290.0140.00315.47
7.0.280.0110.00715.46
7.0.270.0120.00315.20
7.0.260.0140.00315.23
7.0.250.0090.00515.34
7.0.240.0100.00315.46
7.0.230.0040.00415.36
7.0.220.0100.00315.26
7.0.210.0000.01015.22
7.0.200.0030.00716.17
7.0.190.0000.01215.19
7.0.180.0030.01215.51
7.0.170.0050.00315.57
7.0.160.0030.00815.47
7.0.150.0000.01515.22
7.0.140.0090.03518.74
7.0.130.0000.01215.49
7.0.120.0040.00715.44
7.0.110.0050.02317.65
7.0.100.0030.03517.80
7.0.90.0090.01917.74
7.0.80.0080.02217.75
7.0.70.0070.03017.74
7.0.60.0070.01917.46
7.0.50.0050.02718.03
7.0.40.0000.02816.93
7.0.30.0080.02816.82
7.0.20.0060.02716.93
7.0.10.0060.01916.81
7.0.00.0080.02216.82
5.6.380.0120.00514.66
5.6.370.0110.00714.57
5.6.360.0100.00514.31
5.6.350.0070.00714.71
5.6.340.0100.00314.40
5.6.330.0130.00314.44
5.6.320.0130.00314.61
5.6.310.0030.01114.36
5.6.300.0080.00814.05
5.6.290.0100.00314.37
5.6.280.0080.03617.81
5.6.270.0140.00414.27
5.6.260.0100.02017.56
5.6.250.0050.02617.64
5.6.240.0120.02017.40
5.6.230.0040.02617.63
5.6.220.0060.03817.55
5.6.210.0100.02017.50
5.6.200.0070.02517.84
5.6.190.0120.03817.75
5.6.180.0080.02317.66
5.6.170.0070.03217.73
5.6.160.0080.02317.74
5.6.150.0100.02217.59
5.6.140.0120.01917.83
5.6.130.0020.03017.71
5.6.120.0060.02917.64
5.6.110.0100.02417.71
5.6.100.0120.02017.69
5.6.90.0030.05017.67
5.6.80.0090.03717.37
5.6.70.0110.04217.38
5.6.60.0090.04117.20
5.6.50.0160.02017.33
5.6.40.0130.03517.34
5.6.30.0100.02517.42
5.6.20.0120.03817.31
5.6.10.0060.02317.30
5.6.00.0120.03717.37
5.5.380.0120.02015.90
5.5.370.0080.02215.98
5.5.360.0040.02415.80
5.5.350.0100.02015.78
5.5.340.0080.02116.01
5.5.330.0030.02916.00
5.5.320.0030.02716.12
5.5.310.0090.02015.92
5.5.300.0070.02216.06
5.5.290.0050.02715.90
5.5.280.0080.03315.97
5.5.270.0050.02515.97
5.5.260.0060.04515.99
5.5.250.0080.04616.06
5.5.240.0030.02515.81
5.5.230.0060.04315.77
5.5.220.0090.02415.70
5.5.210.0100.02215.79
5.5.200.0100.03715.65
5.5.190.0020.04715.79
5.5.180.0090.04115.72
5.5.170.0040.00914.51
5.5.160.0070.03915.76
5.5.150.0070.02515.88
5.5.140.0110.03715.87
5.5.130.0080.04115.69
5.5.120.0110.02915.88
5.5.110.0130.04215.43
5.5.100.0110.03715.65
5.5.90.0120.03915.58
5.5.80.0080.02715.78
5.5.70.0050.04215.80
5.5.60.0100.02215.50
5.5.50.0160.03315.69
5.5.40.0060.02515.70
5.5.30.0060.03615.79
5.5.20.0110.03815.67
5.5.10.0090.04015.72
5.5.00.0140.02015.64
5.4.450.0000.04615.17
5.4.440.0040.02515.38
5.4.430.0030.02315.31
5.4.420.0090.02715.27
5.4.410.0040.02715.31
5.4.400.0120.03215.10
5.4.390.0060.02415.01
5.4.380.0060.03514.93
5.4.370.0080.03515.14
5.4.360.0090.04015.16
5.4.350.0090.03815.28
5.4.340.0110.03915.08
5.4.330.0080.00411.20
5.4.320.0080.04115.14
5.4.310.0070.04115.36
5.4.300.0050.04015.14
5.4.290.0100.04015.08
5.4.280.0070.03815.03
5.4.270.0100.02514.96
5.4.260.0100.03715.15
5.4.250.0050.04315.00
5.4.240.0080.03615.09
5.4.230.0030.03814.98
5.4.220.0090.03715.21
5.4.210.0090.04014.86
5.4.200.0090.03515.17
5.4.190.0090.04114.83
5.4.180.0070.03915.14
5.4.170.0110.02515.08
5.4.160.0080.02615.10
5.4.150.0130.03215.10
5.4.140.0080.03813.81
5.4.130.0050.02713.74
5.4.120.0080.03613.80
5.4.110.0080.04113.71
5.4.100.0100.03413.76
5.4.90.0110.03613.92
5.4.80.0060.04113.91
5.4.70.0060.03413.75
5.4.60.0070.03813.69
5.4.50.0090.03913.67
5.4.40.0070.03813.90
5.4.30.0080.03813.79
5.4.20.0090.03713.94
5.4.10.0070.02013.74
5.4.00.0060.02313.64
5.3.290.0050.04212.84
5.3.280.0080.03612.63
5.3.270.0070.04112.69
5.3.260.0050.03512.62
5.3.250.0030.04212.76
5.3.240.0070.03312.59
5.3.230.0040.04212.55
5.3.220.0070.02412.43
5.3.210.0090.03812.54
5.3.200.0070.03512.39
5.3.190.0060.03912.55
5.3.180.0080.03812.54
5.3.170.0080.03812.68
5.3.160.0070.04212.58
5.3.150.0120.03612.63
5.3.140.0110.03412.58
5.3.130.0100.02212.59
5.3.120.0090.03612.57
5.3.110.0070.03712.65
5.3.100.0100.04212.22
5.3.90.0120.03312.28
5.3.80.0100.02212.17
5.3.70.0060.03812.29
5.3.60.0120.03012.31
5.3.50.0070.04012.25
5.3.40.0080.03812.30
5.3.30.0090.03612.26
5.3.20.0100.03512.02
5.3.10.0130.03111.99
5.3.00.0170.01311.86
5.2.170.0080.03310.87
5.2.160.0070.03310.87
5.2.150.0090.03010.87
5.2.140.0070.03010.87
5.2.130.0050.03010.87
5.2.120.0070.03110.87
5.2.110.0060.03310.87
5.2.100.0100.02710.87
5.2.90.0070.03310.87
5.2.80.0080.03210.87
5.2.70.0060.03510.87
5.2.60.0060.03110.87
5.2.50.0060.03410.87
5.2.40.0020.03610.87
5.2.30.0090.03110.87
5.2.20.0080.03110.87
5.2.10.0090.02810.87
5.2.00.0100.02710.87
5.1.60.0060.02710.87
5.1.50.0070.02710.87
5.1.40.0060.02710.87
5.1.30.0050.02410.87
5.1.20.0020.03210.87
5.1.10.0060.02810.87
5.1.00.0090.02810.87
5.0.50.0080.01710.87
5.0.40.0130.00710.87
5.0.30.0030.03610.87
5.0.20.0080.01010.87
5.0.10.0040.01310.87
5.0.00.0070.03510.87
4.4.90.0010.02010.87
4.4.80.0090.01310.87
4.4.70.0020.01910.87
4.4.60.0050.01910.87
4.4.50.0060.01510.87
4.4.40.0000.03410.87
4.4.30.0040.01910.87
4.4.20.0010.02010.87
4.4.10.0030.01510.87
4.4.00.0020.02910.87
4.3.110.0020.02010.87
4.3.100.0020.01810.87
4.3.90.0060.01510.87
4.3.80.0000.02910.87
4.3.70.0040.01410.87
4.3.60.0040.01710.87
4.3.50.0050.01510.87
4.3.40.0030.02710.87
4.3.30.0040.01710.87
4.3.20.0020.02210.87
4.3.10.0000.02210.87
4.3.00.0000.02210.87

preferences:
39.27 ms | 401 KiB | 5 Q