3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xor_encrypt($in) { $key = 'haha'; $text = $in; $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } // echo xor_encrypt('lol'); $arr = array( "showpassword"=>"yes", "bgcolor"=>"#0000ff"); echo base64_encode(xor_encrypt(json_encode($arr))); // echo json_decode(xor_encrypt(base64_decode($arrd)), true); ?>

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.0150.00616.63
8.3.50.0110.00416.23
8.3.40.0120.00318.97
8.3.30.0030.01418.66
8.3.20.0050.00220.39
8.3.10.0110.00021.69
8.3.00.0030.00619.81
8.2.180.0060.00918.29
8.2.170.0090.00922.96
8.2.160.0090.00919.04
8.2.150.0050.00524.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0050.00320.99
8.2.110.0060.00321.12
8.2.100.0070.00717.84
8.2.90.0000.00819.36
8.2.80.0040.00418.05
8.2.70.0050.00317.63
8.2.60.0050.00318.16
8.2.50.0030.00618.10
8.2.40.0060.00320.59
8.2.30.0040.00419.37
8.2.20.0080.00018.11
8.2.10.0050.00317.99
8.2.00.0040.00418.12
8.1.280.0170.00325.92
8.1.270.0080.00022.19
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00324.02
8.1.230.0110.00019.16
8.1.220.0040.00417.79
8.1.210.0060.00318.77
8.1.200.0030.00617.23
8.1.190.0090.00017.23
8.1.180.0030.00518.10
8.1.170.0000.00819.07
8.1.160.0040.00418.95
8.1.150.0000.00820.67
8.1.140.0040.00719.47
8.1.130.0070.00018.73
8.1.120.0030.00317.25
8.1.110.0000.00817.38
8.1.100.0000.00817.42
8.1.90.0000.00817.29
8.1.80.0000.00717.40
8.1.70.0030.00517.38
8.1.60.0030.00617.47
8.1.50.0040.00417.39
8.1.40.0030.00917.38
8.1.30.0050.00217.65
8.1.20.0040.00417.65
8.1.10.0070.00017.56
8.1.00.0000.00717.50
8.0.300.0030.00319.96
8.0.290.0000.00716.75
8.0.280.0030.00318.46
8.0.270.0000.00717.25
8.0.260.0030.00316.82
8.0.250.0030.00616.86
8.0.240.0070.00016.86
8.0.230.0000.00716.82
8.0.220.0000.00716.93
8.0.210.0040.00416.79
8.0.200.0060.00016.98
8.0.190.0000.00916.94
8.0.180.0030.00316.89
8.0.170.0080.00016.86
8.0.160.0080.00016.84
8.0.150.0000.00816.81
8.0.140.0000.00716.89
8.0.130.0030.00313.27
8.0.120.0040.00416.77
8.0.110.0000.00816.83
8.0.100.0040.00416.95
8.0.90.0040.00416.95
8.0.80.0090.00916.86
8.0.70.0070.00016.91
8.0.60.0040.00416.89
8.0.50.0040.00416.86
8.0.30.0110.00716.95
8.0.20.0120.00917.40
8.0.10.0000.00716.79
8.0.00.0090.00916.59
7.4.330.0000.00615.55
7.4.320.0000.00616.43
7.4.300.0000.00616.55
7.4.290.0030.00316.61
7.4.280.0030.00616.60
7.4.270.0070.00016.62
7.4.260.0070.00016.47
7.4.250.0000.00716.56
7.4.240.0000.00716.48
7.4.230.0070.00016.51
7.4.220.0150.00316.61
7.4.210.0070.00716.42
7.4.200.0030.00516.70
7.4.160.0090.00716.49
7.4.150.0090.00917.40
7.4.140.0090.00917.86
7.4.130.0120.01816.47
7.4.120.0080.01116.50
7.4.110.0160.00416.48
7.4.100.0120.00416.49
7.4.90.0120.00616.64
7.4.80.0130.01219.39
7.4.70.0040.01416.62
7.4.60.0130.00316.66
7.4.50.0090.00616.41
7.4.40.0090.00916.56
7.4.30.0040.01516.47
7.4.00.0060.00314.73
7.3.330.0060.00013.28
7.3.320.0020.00213.20
7.3.310.0070.00016.17
7.3.300.0030.00316.23
7.3.290.0080.00816.33
7.3.280.0100.00816.36
7.3.270.0180.00617.40
7.3.260.0110.00716.56
7.3.250.0060.01216.36
7.3.240.0100.00816.48
7.3.230.0130.00316.37
7.3.210.0060.00916.31
7.3.200.0090.01216.56
7.3.190.0120.00916.50
7.3.180.0140.00416.26
7.3.170.0060.01016.37
7.3.160.0100.00716.36
7.3.00.0080.00416.79
7.2.330.0180.00416.89
7.2.320.0090.00916.75
7.2.310.0030.01416.82
7.2.300.0070.01016.71
7.2.290.0080.01216.77
7.2.130.0070.00816.95
7.2.120.0030.00616.79
7.2.110.0040.01116.97
7.2.100.0070.00717.05
7.2.90.0090.00016.98
7.2.80.0030.01017.00
7.2.70.0000.00916.89
7.2.60.0030.00917.04
7.2.50.0060.00916.92
7.2.40.0030.00716.99
7.2.30.0070.00317.03
7.2.20.0070.00316.89
7.2.10.0040.00816.98
7.2.00.0050.00818.20
7.1.250.0080.00415.59
7.1.240.0040.00415.92
7.1.230.0060.00615.70
7.1.220.0060.00315.92
7.1.210.0060.00815.89
7.1.200.0030.00715.81
7.1.190.0030.00915.63
7.1.180.0080.00015.94
7.1.170.0030.00515.57
7.1.160.0000.00715.56
7.1.150.0040.01115.96
7.1.140.0040.00415.88
7.1.130.0040.00415.90
7.1.120.0060.00915.89
7.1.110.0040.00715.98
7.1.100.0010.01016.94
7.1.90.0100.00615.73
7.1.80.0070.00715.99
7.1.70.0020.01116.45
7.1.60.0130.01025.57
7.1.50.0130.01025.15
7.1.40.0080.01425.23
7.1.30.0120.00825.25
7.1.20.0140.01025.13
7.1.10.0110.00416.24
7.1.00.0040.01116.33
7.0.330.0060.00615.51
7.0.320.0060.00915.63
7.0.310.0040.00715.52
7.0.300.0060.00615.47
7.0.290.0000.01215.17
7.0.280.0080.00315.16
7.0.270.0080.00015.38
7.0.260.0030.00815.59
7.0.250.0090.00315.27
7.0.240.0080.00015.61
7.0.230.0060.00315.44
7.0.220.0070.00715.29
7.0.210.0040.00815.27
7.0.200.0090.00416.04
7.0.190.0020.00916.01
7.0.180.0090.00415.89
7.0.170.0020.01115.92
7.0.160.0020.01215.91
7.0.150.0090.00615.88
7.0.140.0080.00515.95
7.0.130.0020.01016.01
7.0.120.0050.01015.94
7.0.110.0040.01015.97
7.0.100.0080.00516.06
7.0.90.0050.01115.73
7.0.80.0050.00815.89
7.0.70.0080.00715.88
7.0.60.0030.00915.84
7.0.50.0120.00515.81
7.0.40.0060.00815.02
7.0.30.0100.00614.88
7.0.20.0090.00314.90
7.0.10.0060.00914.97
7.0.00.0050.00814.94
5.6.380.0060.00314.30

preferences:
39.71 ms | 401 KiB | 5 Q