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"=>"#ffffff"); // echo base64_encode(xor_encrypt(json_encode($arr))); echo json_decode(xor_encrypt(base64_decode('R0EWBhwYAgQXTUsMFwpRVVAcAU0eT0cMFAwdCQtMHllHTRUJFAMCWB4e'))); ?>

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.0070.01418.52
8.3.50.0110.00616.63
8.3.40.0030.01218.92
8.3.30.0190.00018.63
8.3.20.0000.00820.16
8.3.10.0070.00323.46
8.3.00.0040.00419.68
8.2.180.0070.01416.63
8.2.170.0140.00422.96
8.2.160.0120.00319.04
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00019.14
8.2.120.0040.00426.35
8.2.110.0000.01020.89
8.2.100.0110.00017.68
8.2.90.0040.00419.40
8.2.80.0090.00017.97
8.2.70.0000.00817.75
8.2.60.0030.00618.05
8.2.50.0090.00018.10
8.2.40.0070.00020.51
8.2.30.0000.00719.22
8.2.20.0050.00218.05
8.2.10.0000.00818.18
8.2.00.0000.00718.20
8.1.280.0140.00325.92
8.1.270.0040.00422.18
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0090.00023.83
8.1.230.0040.00819.09
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0000.01117.48
8.1.190.0060.00317.23
8.1.180.0040.00418.10
8.1.170.0030.00518.86
8.1.160.0080.00018.96
8.1.150.0030.00618.88
8.1.140.0000.00719.41
8.1.130.0070.00018.82
8.1.120.0000.00717.43
8.1.110.0030.00617.24
8.1.100.0040.00417.34
8.1.90.0040.00417.38
8.1.80.0030.00517.41
8.1.70.0000.00717.34
8.1.60.0050.00217.59
8.1.50.0040.00417.41
8.1.40.0060.00317.49
8.1.30.0060.00317.53
8.1.20.0040.00417.47
8.1.10.0030.00617.59
8.1.00.0040.00417.41
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00518.29
8.0.270.0050.00217.25
8.0.260.0000.00616.93
8.0.250.0030.00316.91
8.0.240.0040.00417.03
8.0.230.0030.00316.91
8.0.220.0000.00716.97
8.0.210.0040.00416.91
8.0.200.0000.00816.98
8.0.190.0050.00316.97
8.0.180.0000.00716.95
8.0.170.0000.00716.99
8.0.160.0000.00716.93
8.0.150.0070.00016.86
8.0.140.0000.00716.95
8.0.130.0060.00013.34
8.0.120.0000.00716.90
8.0.110.0070.00016.95
8.0.100.0070.00016.98
8.0.90.0030.00316.96
8.0.80.0100.01017.01
8.0.70.0040.00416.89
8.0.60.0000.00716.95
8.0.50.0040.00416.88
8.0.30.0090.00917.01
8.0.20.0090.01117.40
8.0.10.0040.00417.04
8.0.00.0140.00716.46
7.4.330.0000.00615.55
7.4.320.0000.00716.44
7.4.300.0000.00616.52
7.4.290.0080.00016.52
7.4.280.0040.00416.61
7.4.270.0030.00316.45
7.4.260.0070.00016.59
7.4.250.0030.00316.47
7.4.240.0000.00716.48
7.4.230.0000.00616.32
7.4.220.0110.00816.57
7.4.210.0090.00616.68
7.4.200.0070.00016.50
7.4.160.0070.00916.48
7.4.150.0140.01017.40
7.4.140.0100.00817.86
7.4.130.0120.00616.70
7.4.120.0110.00916.58
7.4.110.0030.01416.48
7.4.100.0140.01116.45
7.4.90.0120.00616.46
7.4.80.0060.01519.39
7.4.70.0140.01216.68
7.4.60.0070.01016.61
7.4.50.0090.00316.40
7.4.40.0090.00916.55
7.4.30.0060.00916.51
7.4.00.0090.00614.82
7.3.330.0050.00013.39
7.3.320.0000.00513.45
7.3.310.0070.00016.30
7.3.300.0040.00416.41
7.3.290.0060.01116.46
7.3.280.0080.00816.42
7.3.270.0130.00317.40
7.3.260.0070.01016.53
7.3.250.0100.00716.45
7.3.240.0050.01816.57
7.3.230.0150.00916.36
7.3.210.0070.01016.33
7.3.200.0130.00516.54
7.3.190.0090.00616.49
7.3.180.0060.01216.65
7.3.170.0030.01416.71
7.3.160.0060.01016.63
7.2.330.0040.01616.72
7.2.320.0120.00416.70
7.2.310.0070.01616.64
7.2.300.0100.01016.77
7.2.290.0170.00516.82
7.2.80.0120.00616.82
7.2.60.0080.00417.07
7.1.200.0030.01015.72
7.1.70.0060.00916.93
7.1.60.0250.01235.02
7.1.50.0160.01634.91
7.1.40.0190.01934.57
7.1.30.0230.00934.52
7.1.20.0200.01634.73
7.1.10.0030.01216.82
7.1.00.0030.01416.61
7.0.200.0130.00316.90
7.0.190.0070.01016.54
7.0.180.0040.01316.31
7.0.170.0060.01216.19
7.0.160.0000.01816.34
7.0.150.0050.01116.06
7.0.140.0060.00916.27
7.0.130.0130.00416.71
7.0.120.0070.01016.54
7.0.110.0030.01316.52
7.0.100.0120.00616.51
7.0.90.0110.00716.14
7.0.80.0060.01016.60
7.0.70.0080.01016.28
7.0.60.0070.01316.23
7.0.50.0080.00916.53
7.0.40.0000.01516.60
7.0.30.0080.00816.43
7.0.20.0000.01516.47
7.0.10.0060.00916.38
7.0.00.0110.00316.45

preferences:
36.13 ms | 400 KiB | 5 Q