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; } echo base64_encode(xor_encrypt(json_encode('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.60.0150.00618.56
8.3.50.0100.01016.40
8.3.40.0000.01518.67
8.3.30.0120.00318.67
8.3.20.0040.00420.34
8.3.10.0090.00023.53
8.3.00.0080.00019.69
8.2.180.0110.01118.66
8.2.170.0040.01122.96
8.2.160.0030.01019.21
8.2.150.0040.00424.18
8.2.140.0030.00624.66
8.2.130.0040.00421.00
8.2.120.0040.00426.35
8.2.110.0060.00320.89
8.2.100.0080.00317.91
8.2.90.0050.00319.05
8.2.80.0050.00318.04
8.2.70.0030.00617.63
8.2.60.0000.00818.05
8.2.50.0040.00418.10
8.2.40.0060.00320.33
8.2.30.0000.00719.32
8.2.20.0080.00018.18
8.2.10.0000.00918.09
8.2.00.0040.00418.12
8.1.280.0140.00325.92
8.1.270.0050.00322.19
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.70
8.1.230.0070.00319.17
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.35
8.1.190.0050.00317.35
8.1.180.0050.00318.10
8.1.170.0090.00018.53
8.1.160.0000.00718.93
8.1.150.0040.00420.66
8.1.140.0040.00419.47
8.1.130.0000.00718.81
8.1.120.0030.00317.43
8.1.110.0000.00717.33
8.1.100.0050.00317.41
8.1.90.0040.00417.29
8.1.80.0040.00417.40
8.1.70.0030.00517.35
8.1.60.0030.00617.60
8.1.50.0040.00417.44
8.1.40.0040.00417.45
8.1.30.0040.00417.64
8.1.20.0050.00217.63
8.1.10.0070.00017.63
8.1.00.0040.00417.40
8.0.300.0040.00420.05
8.0.290.0000.00716.63
8.0.280.0030.00318.45
8.0.270.0000.00717.33
8.0.260.0030.00316.73
8.0.250.0000.00616.99
8.0.240.0000.00816.98
8.0.230.0030.00316.92
8.0.220.0000.00816.91
8.0.210.0070.00016.80
8.0.200.0030.00316.89
8.0.190.0000.00916.86
8.0.180.0000.00716.93
8.0.170.0000.00716.91
8.0.160.0000.00916.79
8.0.150.0020.00516.78
8.0.140.0070.00016.88
8.0.130.0000.00613.25
8.0.120.0040.00416.91
8.0.110.0000.00716.92
8.0.100.0070.00016.79
8.0.90.0000.00716.85
8.0.80.0150.00316.84
8.0.70.0070.00016.80
8.0.60.0050.00317.00
8.0.50.0040.00416.92
8.0.30.0090.01017.10
8.0.20.0160.01317.40
8.0.10.0000.00816.85
8.0.00.0060.01116.75
7.4.330.0050.00015.55
7.4.320.0000.00616.35
7.4.300.0030.00316.62
7.4.290.0040.00416.61
7.4.280.0000.00816.56
7.4.270.0030.00316.50
7.4.260.0070.00016.61
7.4.250.0030.00316.57
7.4.240.0030.00516.50
7.4.230.0030.00316.63
7.4.220.0180.00616.50
7.4.210.0120.00916.72
7.4.200.0080.00016.42
7.4.160.0090.00616.55
7.4.150.0120.01217.40
7.4.140.0090.01017.86
7.4.130.0130.01016.57
7.4.120.0120.00916.62
7.4.110.0000.01816.43
7.4.100.0100.01816.50
7.4.90.0100.00716.47
7.4.80.0100.00719.39
7.4.70.0070.01016.65
7.4.60.0040.01416.66
7.4.50.0140.00316.52
7.4.40.0150.00616.61
7.4.30.0080.01116.45
7.4.00.0000.01315.12
7.3.330.0030.00313.37
7.3.320.0030.00313.23
7.3.310.0030.00316.23
7.3.300.0000.00716.39
7.3.290.0070.00916.38
7.3.280.0070.01116.39
7.3.270.0080.00817.40
7.3.260.0090.00716.43
7.3.250.0060.01116.53
7.3.240.0110.00816.48
7.3.230.0130.00316.36
7.3.210.0100.00716.58
7.3.200.0100.00616.52
7.3.190.0110.00616.39
7.3.180.0120.00316.63
7.3.170.0160.02216.39
7.3.160.0110.00716.60
7.3.10.0000.00916.52
7.3.00.0030.00716.80
7.2.330.0130.00416.78
7.2.320.0090.00816.82
7.2.310.0080.00816.41
7.2.300.0080.01116.54
7.2.290.0030.01416.76
7.2.130.0030.00717.02
7.2.120.0040.01117.05
7.2.110.0100.00716.95
7.2.100.0100.00316.61
7.2.90.0030.01317.16
7.2.80.0030.00616.68
7.2.70.0140.00016.93
7.2.60.0090.00816.87
7.2.50.0000.01117.05
7.2.40.0000.00917.13
7.2.30.0070.00716.75
7.2.20.0120.00316.78
7.2.10.0070.00716.76
7.2.00.0070.00518.27
7.1.250.0030.00715.82
7.1.200.0000.01515.85
7.1.100.0030.01018.34
7.1.70.0050.01517.30
7.1.60.0240.01635.05
7.1.50.0160.02234.64
7.1.40.0240.01334.36
7.1.30.0220.01434.51
7.1.20.0200.01734.73
7.1.10.0080.01016.50
7.1.00.0060.00916.76
7.0.200.0000.01816.90
7.0.190.0150.00416.80
7.0.180.0030.01516.47
7.0.170.0050.01316.21
7.0.160.0030.01416.06
7.0.150.0060.01116.37
7.0.140.0080.01116.38
7.0.130.0040.01316.80
7.0.120.0000.01516.48
7.0.110.0070.01016.41
7.0.100.0030.01316.43
7.0.90.0050.01116.50
7.0.80.0000.01516.36
7.0.70.0050.00916.28
7.0.60.0070.01016.29
7.0.50.0060.01116.41
7.0.40.0130.01316.59
7.0.30.0060.01016.46
7.0.20.0000.01716.34
7.0.10.0030.01316.37
7.0.00.0040.01216.65

preferences:
51.9 ms | 401 KiB | 5 Q