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))); ?>

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.0100.00318.55
8.3.50.0040.01116.76
8.3.40.0070.00718.65
8.3.30.0110.00418.80
8.3.20.0000.00720.02
8.3.10.0060.00321.85
8.3.00.0000.01019.69
8.2.180.0100.00716.38
8.2.170.0070.01022.96
8.2.160.0140.00319.04
8.2.150.0000.00724.18
8.2.140.0060.00324.66
8.2.130.0080.00019.33
8.2.120.0040.00426.35
8.2.110.0060.00322.30
8.2.100.0090.00317.91
8.2.90.0000.00819.19
8.2.80.0000.00817.97
8.2.70.0040.00417.63
8.2.60.0030.00718.16
8.2.50.0030.00618.10
8.2.40.0040.00420.59
8.2.30.0000.00719.18
8.2.20.0000.00718.13
8.2.10.0040.00418.12
8.2.00.0000.00718.22
8.1.280.0040.01125.92
8.1.270.0080.00022.02
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00323.96
8.1.230.0110.00022.13
8.1.220.0090.00017.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0060.00317.35
8.1.180.0030.00518.10
8.1.170.0060.00318.49
8.1.160.0000.00719.00
8.1.150.0040.00418.88
8.1.140.0000.00719.38
8.1.130.0000.00718.82
8.1.120.0090.00017.39
8.1.110.0040.00417.36
8.1.100.0040.00417.28
8.1.90.0050.00317.41
8.1.80.0000.00817.43
8.1.70.0040.00417.46
8.1.60.0070.00317.49
8.1.50.0040.00417.58
8.1.40.0030.00617.37
8.1.30.0000.00817.67
8.1.20.0000.00717.69
8.1.10.0030.00617.45
8.1.00.0040.00417.50
8.0.300.0070.00018.77
8.0.290.0040.00416.75
8.0.280.0000.00718.38
8.0.270.0030.00317.26
8.0.260.0030.00316.80
8.0.250.0030.00316.95
8.0.240.0040.00416.95
8.0.230.0070.00016.90
8.0.220.0000.00716.84
8.0.210.0000.00716.93
8.0.200.0030.00316.82
8.0.190.0040.00417.01
8.0.180.0040.00416.93
8.0.170.0000.00716.97
8.0.160.0040.00416.99
8.0.150.0040.00316.80
8.0.140.0080.00016.87
8.0.130.0000.00513.29
8.0.120.0070.00016.77
8.0.110.0030.00316.76
8.0.100.0000.00717.00
8.0.90.0040.00416.89
8.0.80.0100.01016.89
8.0.70.0000.00817.00
8.0.60.0040.00416.83
8.0.50.0040.00416.91
8.0.30.0100.00916.98
8.0.20.0090.01217.40
8.0.10.0070.00017.05
8.0.00.0060.01216.77
7.4.330.0050.00015.55
7.4.320.0040.00416.44
7.4.300.0070.00016.46
7.4.290.0030.00316.43
7.4.280.0040.00416.63
7.4.270.0000.00716.50
7.4.260.0040.00416.49
7.4.250.0030.00316.43
7.4.240.0000.00716.70
7.4.230.0040.00416.59
7.4.220.0090.00916.71
7.4.210.0100.01016.68
7.4.200.0070.00016.54
7.4.160.0100.00616.54
7.4.150.0000.01817.40
7.4.140.0120.00817.86
7.4.130.0110.01016.47
7.4.120.0130.00616.42
7.4.110.0070.01016.65
7.4.100.0100.01116.41
7.4.90.0120.00916.50
7.4.80.0110.00719.39
7.4.70.0070.01016.50
7.4.60.0040.01216.53
7.4.50.0000.01016.50
7.4.40.0110.01116.52
7.4.30.0040.01416.50
7.4.00.0000.01715.13
7.3.330.0000.00513.34
7.3.320.0000.00613.23
7.3.310.0000.00616.23
7.3.300.0000.00616.30
7.3.290.0090.00716.35
7.3.280.0090.00916.35
7.3.270.0150.00917.40
7.3.260.0120.00716.47
7.3.250.0120.00716.48
7.3.240.0180.00316.62
7.3.230.0030.01316.41
7.3.210.0060.00916.31
7.3.200.0070.01116.36
7.3.190.0120.00416.46
7.3.180.0070.01116.51
7.3.170.0060.01116.28
7.3.160.0100.00716.34
7.3.10.0050.01016.48
7.3.00.0030.01016.67
7.2.330.0130.00316.84
7.2.320.0100.00616.54
7.2.310.0060.01016.58
7.2.300.0070.01016.72
7.2.290.0150.00616.71
7.2.130.0080.00616.93
7.2.120.0060.00716.76
7.2.110.0050.00816.91
7.2.100.0020.01116.68
7.2.90.0080.00516.87
7.2.80.0040.00816.88
7.2.70.0080.00616.89
7.2.60.0070.00816.92
7.2.50.0090.00516.83
7.2.40.0100.00516.96
7.2.30.0070.00716.84
7.2.20.0040.01216.85
7.2.10.0050.00816.85
7.2.00.0050.00916.95
7.1.250.0050.00715.71
7.1.200.0030.00915.64
7.1.70.0090.00916.93
7.1.60.0210.01134.82
7.1.50.0340.01234.91
7.1.40.0320.01234.31
7.1.30.0240.01034.43
7.1.20.0240.00834.45
7.1.10.0030.01316.68
7.1.00.0090.00616.72
7.0.200.0070.01216.99
7.0.190.0000.01516.84
7.0.180.0040.01116.06
7.0.170.0050.01216.35
7.0.160.0030.01216.33
7.0.150.0030.01316.20
7.0.140.0100.00616.52
7.0.130.0020.01416.35
7.0.120.0100.00616.62
7.0.110.0030.01016.46
7.0.100.0100.00716.45
7.0.90.0030.01216.51
7.0.80.0030.01016.60
7.0.70.0030.01316.45
7.0.60.0060.00916.32
7.0.50.0070.01016.32
7.0.40.0000.01716.75
7.0.30.0030.01316.66
7.0.20.0070.00916.41
7.0.10.0080.00816.36
7.0.00.0060.01016.45

preferences:
38.92 ms | 400 KiB | 5 Q