3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xor_encrypt($in) { $key = '<censored>'; $text = $in; $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } $arr = array( "showpassword"=>"yes", "bgcolor"=>"#00sdfsdfdsfsdfdsf0ff"); 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.0060.00916.25
8.3.50.0110.00316.71
8.3.40.0070.00718.82
8.3.30.0110.00318.54
8.3.20.0000.00720.22
8.3.10.0100.00023.51
8.3.00.0040.00419.65
8.2.180.0120.00316.75
8.2.170.0140.00322.96
8.2.160.0180.00419.02
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00419.30
8.2.120.0070.00026.35
8.2.110.0070.00321.02
8.2.100.0050.00517.84
8.2.90.0050.00319.25
8.2.80.0030.00617.97
8.2.70.0000.01117.75
8.2.60.0070.00018.05
8.2.50.0080.00018.10
8.2.40.0000.00720.42
8.2.30.0070.00019.38
8.2.20.0040.00418.20
8.2.10.0080.00017.99
8.2.00.0000.00817.99
8.1.280.0120.00625.92
8.1.270.0040.00421.88
8.1.260.0000.00726.35
8.1.250.0070.00028.09
8.1.240.0090.00021.34
8.1.230.0110.00019.16
8.1.220.0050.00517.78
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0030.00517.23
8.1.180.0000.00718.10
8.1.170.0040.00418.85
8.1.160.0000.00718.90
8.1.150.0040.00420.67
8.1.140.0060.00319.50
8.1.130.0080.00018.69
8.1.120.0000.00717.36
8.1.110.0000.00717.29
8.1.100.0040.00417.40
8.1.90.0040.00417.30
8.1.80.0040.00417.34
8.1.70.0040.00417.34
8.1.60.0060.00617.54
8.1.50.0040.00417.43
8.1.40.0000.00917.51
8.1.30.0000.00717.52
8.1.20.0030.00617.62
8.1.10.0050.00317.57
8.1.00.0040.00417.46
8.0.300.0030.00619.84
8.0.290.0040.00416.88
8.0.280.0000.00818.44
8.0.270.0030.00317.25
8.0.260.0040.00416.88
8.0.250.0030.00316.96
8.0.240.0050.00216.98
8.0.230.0030.00316.93
8.0.220.0000.00616.77
8.0.210.0000.00716.89
8.0.200.0030.00316.96
8.0.190.0000.00916.96
8.0.180.0000.00716.88
8.0.170.0070.00016.95
8.0.160.0000.00716.96
8.0.150.0070.00016.77
8.0.140.0070.00016.85
8.0.130.0060.00013.28
8.0.120.0040.00416.81
8.0.110.0070.00016.82
8.0.100.0040.00416.86
8.0.90.0040.00416.89
8.0.80.0090.00916.79
8.0.70.0040.00416.88
8.0.60.0040.00316.72
8.0.50.0040.00416.87
8.0.30.0100.00816.96
8.0.20.0080.01217.40
8.0.10.0000.00717.03
8.0.00.0030.01316.57
7.4.330.0060.00015.55
7.4.320.0030.00316.54
7.4.300.0070.00016.58
7.4.290.0000.00716.52
7.4.280.0050.00316.45
7.4.270.0080.00016.51
7.4.260.0050.00216.39
7.4.250.0000.00816.49
7.4.240.0000.00716.53
7.4.230.0030.00316.35
7.4.220.0150.00616.54
7.4.210.0110.00716.46
7.4.200.0040.00416.41
7.4.160.0070.01016.47
7.4.150.0110.00717.40
7.4.140.0130.00417.86
7.4.130.0150.00616.66
7.4.120.0140.00716.56
7.4.110.0130.01316.39
7.4.100.0240.00016.38
7.4.90.0120.00416.62
7.4.80.0070.01019.39
7.4.70.0090.00916.62
7.4.60.0140.00316.50
7.4.50.0040.01216.37
7.4.40.0090.01216.46
7.4.30.0100.00616.40
7.4.00.0040.01115.05
7.3.330.0050.00013.36
7.3.320.0020.00213.20
7.3.310.0030.00316.43
7.3.300.0040.00416.41
7.3.290.0060.00916.33
7.3.280.0100.00816.40
7.3.270.0040.01417.40
7.3.260.0090.00816.41
7.3.250.0100.00716.45
7.3.240.0130.00616.52
7.3.230.0100.01316.50
7.3.210.0140.00716.69
7.3.200.0110.00616.54
7.3.190.0090.01516.46
7.3.180.0070.01616.68
7.3.170.0100.00716.32
7.3.160.0130.00316.55
7.2.330.0080.00816.86
7.2.320.0030.01716.74
7.2.310.0070.01016.64
7.2.300.0130.01016.62
7.2.290.0120.00616.89
7.2.60.0000.01416.85
7.2.00.0030.00919.48
7.1.200.0060.00915.86
7.1.100.0060.00617.88
7.1.70.0080.00817.09
7.1.60.0750.01333.17
7.1.50.0250.00734.93
7.1.40.0170.01334.45
7.1.30.0280.00434.51
7.1.20.0190.01634.69
7.1.10.0000.01716.55
7.1.00.0030.01416.61
7.0.200.0800.00716.76
7.0.190.0080.00816.88
7.0.180.0070.00716.20
7.0.170.0040.01416.23
7.0.160.0030.01416.19
7.0.150.0100.00716.46
7.0.140.0000.01416.25
7.0.130.0030.01016.65
7.0.120.0030.01116.74
7.0.110.0050.01016.44
7.0.100.0030.01016.41
7.0.90.0110.00416.55
7.0.80.0090.00616.20
7.0.70.0060.01116.41
7.0.60.0030.01016.31
7.0.50.0090.00716.37
7.0.40.0110.00616.47
7.0.30.0070.01016.29
7.0.20.0110.00616.38
7.0.10.0060.01016.41
7.0.00.0050.01116.40

preferences:
45.82 ms | 400 KiB | 5 Q