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 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.0120.00316.50
8.3.50.0150.00016.38
8.3.40.0120.00318.79
8.3.30.0090.00918.85
8.3.20.0040.00420.38
8.3.10.0070.00321.90
8.3.00.0040.00419.80
8.2.180.0110.00318.16
8.2.170.0090.00622.96
8.2.160.0120.00319.21
8.2.150.0030.00624.18
8.2.140.0000.00724.66
8.2.130.0000.00821.06
8.2.120.0080.00026.35
8.2.110.0030.00620.57
8.2.100.0060.00617.91
8.2.90.0080.00019.17
8.2.80.0030.00618.05
8.2.70.0000.00817.50
8.2.60.0030.00518.03
8.2.50.0040.00418.10
8.2.40.0060.00320.64
8.2.30.0040.00419.18
8.2.20.0040.00418.21
8.2.10.0030.00617.99
8.2.00.0000.00718.06
8.1.280.0040.01125.92
8.1.270.0080.00022.14
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0000.00922.67
8.1.230.0070.00420.89
8.1.220.0000.00817.74
8.1.210.0090.00018.77
8.1.200.0060.00317.23
8.1.190.0080.00017.00
8.1.180.0080.00018.10
8.1.170.0050.00318.36
8.1.160.0040.00419.00
8.1.150.0040.00420.68
8.1.140.0060.00319.47
8.1.130.0070.00018.73
8.1.120.0040.00417.39
8.1.110.0040.00417.39
8.1.100.0030.00617.35
8.1.90.0000.00717.38
8.1.80.0030.00317.41
8.1.70.0030.00517.45
8.1.60.0000.01117.53
8.1.50.0000.00817.54
8.1.40.0080.00417.45
8.1.30.0050.00317.62
8.1.20.0030.00617.52
8.1.10.0000.00817.59
8.1.00.0060.00317.50
8.0.300.0070.00218.77
8.0.290.0070.00016.75
8.0.280.0000.00718.44
8.0.270.0070.00017.25
8.0.260.0040.00416.81
8.0.250.0050.00316.85
8.0.240.0030.00316.91
8.0.230.0040.00416.99
8.0.220.0080.00016.76
8.0.210.0040.00416.84
8.0.200.0040.00416.94
8.0.190.0080.00016.83
8.0.180.0030.00316.95
8.0.170.0040.00416.86
8.0.160.0060.00316.96
8.0.150.0000.00716.79
8.0.140.0040.00416.86
8.0.130.0030.00313.28
8.0.120.0040.00416.87
8.0.110.0000.00716.91
8.0.100.0000.00716.86
8.0.90.0000.00716.95
8.0.80.0040.01216.84
8.0.70.0040.00416.92
8.0.60.0080.00016.87
8.0.50.0040.00416.77
8.0.30.0110.00616.91
8.0.20.0130.00617.40
8.0.10.0040.00417.00
8.0.00.0160.00316.80
7.4.330.0030.00315.55
7.4.320.0030.00316.51
7.4.300.0030.00316.52
7.4.290.0070.00016.61
7.4.280.0020.00516.59
7.4.270.0000.00716.53
7.4.260.0070.00016.39
7.4.250.0030.00316.61
7.4.240.0040.00416.54
7.4.230.0000.00716.64
7.4.220.0120.00616.59
7.4.210.0130.00616.46
7.4.200.0000.00716.66
7.4.160.0090.00716.48
7.4.150.0130.00617.40
7.4.140.0100.00917.86
7.4.130.0150.00816.51
7.4.120.0090.00816.56
7.4.110.0110.00616.52
7.4.100.0090.01216.50
7.4.90.0000.02116.51
7.4.80.0060.00419.39
7.4.70.0140.00316.50
7.4.60.0030.01316.55
7.4.50.0070.00716.56
7.4.40.0100.00616.65
7.4.30.0160.00316.37
7.4.00.0060.00914.68
7.3.330.0050.00013.34
7.3.320.0000.00613.36
7.3.310.0000.00716.41
7.3.300.0000.00716.30
7.3.290.0090.00716.38
7.3.280.0100.00816.36
7.3.270.0110.00717.40
7.3.260.0110.00616.43
7.3.250.0100.00716.52
7.3.240.0100.01016.44
7.3.230.0060.01616.36
7.3.210.0090.00616.36
7.3.200.0060.00916.46
7.3.190.0100.00816.70
7.3.180.0080.00916.54
7.3.170.0170.00016.68
7.3.160.0090.00916.41
7.3.10.0100.00316.45
7.3.00.0080.00516.40
7.2.330.0100.00716.66
7.2.320.0150.00316.70
7.2.310.0080.00816.78
7.2.300.0100.00616.61
7.2.290.0160.00316.77
7.2.130.0120.00916.75
7.2.120.0090.00616.98
7.2.110.0100.01416.62
7.2.100.0160.00316.87
7.2.90.0090.00616.69
7.2.80.0140.00716.78
7.2.70.0110.00717.00
7.2.60.0080.00617.04
7.2.50.0090.00916.74
7.2.40.0140.00317.02
7.2.30.0130.00317.02
7.2.20.0040.01116.83
7.2.10.0120.00416.97
7.2.00.0060.01018.13
7.1.250.0170.00315.57
7.1.200.0060.00615.99
7.1.100.0100.00318.23
7.1.70.0040.01317.28
7.1.60.0130.01634.77
7.1.50.0240.01234.91
7.1.40.0200.01434.47
7.1.30.0210.01434.51
7.1.20.0130.02334.73
7.1.10.0030.01316.65
7.1.00.0090.00816.66
7.0.200.0040.01416.98
7.0.190.0030.01416.75
7.0.180.0070.01016.30
7.0.170.0030.01316.20
7.0.160.0030.01316.52
7.0.150.0060.01116.46
7.0.140.0060.00916.40
7.0.130.0040.01116.79
7.0.120.0060.00916.65
7.0.110.0090.00616.34
7.0.100.0060.00916.49
7.0.90.0090.00616.26
7.0.80.0060.01116.60
7.0.70.0060.01216.38
7.0.60.0060.01016.21
7.0.50.0060.01216.30
7.0.40.0060.00916.58
7.0.30.0090.00716.54
7.0.20.0060.01216.63
7.0.10.0060.01116.59
7.0.00.0030.01016.34

preferences:
39.1 ms | 400 KiB | 5 Q