3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( "showpassword"=>"no", "bgcolor"=>"#ffffff"); $json = json_encode($data); $data2 = "ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSEV4sFxFeaAw="; $base64 = base64_decode($data2); echo $json . "\n" . $base64; 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; }

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.40.0060.00918.64
8.3.30.0070.00718.70
8.3.20.0070.00020.21
8.3.10.0030.00521.77
8.3.00.0050.00319.56
8.2.170.0170.00322.96
8.2.160.0040.01119.04
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0040.00419.39
8.2.120.0040.00426.35
8.2.110.0000.00920.30
8.2.100.0080.00417.91
8.2.90.0000.00919.04
8.2.80.0040.00417.97
8.2.70.0080.00017.38
8.2.60.0040.00818.03
8.2.50.0090.00018.10
8.2.40.0000.00720.55
8.2.30.0000.00719.19
8.2.20.0000.00717.96
8.2.10.0050.00218.11
8.2.00.0050.00318.11
8.1.270.0040.00423.91
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0030.00622.74
8.1.230.0110.00019.02
8.1.220.0080.00017.91
8.1.210.0040.00418.77
8.1.200.0070.00317.35
8.1.190.0080.00017.23
8.1.180.0050.00318.10
8.1.170.0030.00618.69
8.1.160.0030.00319.05
8.1.150.0070.00018.80
8.1.140.0040.00419.52
8.1.130.0040.00418.80
8.1.120.0030.00317.46
8.1.110.0000.00717.45
8.1.100.0030.00517.37
8.1.90.0040.00417.47
8.1.80.0000.00717.36
8.1.70.0030.00317.46
8.1.60.0080.00017.46
8.1.50.0000.00817.49
8.1.40.0040.00417.47
8.1.30.0080.00017.61
8.1.20.0000.00717.63
8.1.10.0020.00517.50
8.1.00.0020.00517.48
8.0.300.0080.00018.77
8.0.290.0040.00416.75
8.0.280.0040.00418.36
8.0.270.0080.00017.25
8.0.260.0070.00016.82
8.0.250.0030.00316.81
8.0.240.0030.00916.86
8.0.230.0030.00316.88
8.0.220.0030.00316.80
8.0.210.0040.00416.88
8.0.200.0000.00616.81
8.0.190.0050.00216.94
8.0.180.0040.00416.82
8.0.170.0030.00516.96
8.0.160.0030.00616.90
8.0.150.0050.00316.72
8.0.140.0030.00316.84
8.0.130.0000.00513.35
8.0.120.0000.00816.87
8.0.110.0000.00716.70
8.0.100.0040.00416.90
8.0.90.0040.00416.87
8.0.80.0070.01416.86
8.0.70.0050.00216.80
8.0.60.0070.00016.77
8.0.50.0040.00416.77
8.0.30.0080.01116.87
8.0.20.0080.01117.40
8.0.10.0000.00716.81
8.0.00.0000.01816.77
7.4.330.0050.00015.55
7.4.320.0030.00316.45
7.4.300.0000.00616.52
7.4.290.0100.00016.51
7.4.280.0000.00816.52
7.4.270.0030.00316.50
7.4.260.0000.00816.51
7.4.250.0000.00816.49
7.4.240.0050.00316.60
7.4.230.0030.00316.44
7.4.220.0120.00616.50
7.4.210.0060.00916.66
7.4.200.0030.00316.55
7.4.160.0080.00816.44
7.4.150.0060.01117.40
7.4.140.0090.00817.86
7.4.130.0070.01016.60
7.4.120.0110.01016.42
7.4.110.0100.00716.46
7.4.100.0100.01016.55
7.4.90.0070.01116.43
7.4.80.0090.00919.39
7.4.70.0070.01016.45
7.4.60.0100.00616.42
7.4.50.0110.00616.43
7.4.40.0060.01116.36
7.4.30.0110.01116.28
7.4.00.0070.01015.06
7.3.330.0060.00013.28
7.3.320.0070.00013.32
7.3.310.0000.00716.23
7.3.300.0030.00316.25
7.3.290.0080.00616.22
7.3.280.0080.00916.23
7.3.270.0110.00817.40
7.3.260.0110.00616.40
7.3.250.0110.00616.42
7.3.240.0110.01016.42
7.3.230.0100.01016.24
7.3.210.0030.01316.32
7.3.200.0060.01216.33
7.3.190.0030.01416.34
7.3.180.0140.00316.31
7.3.170.0080.00816.40
7.3.160.0100.00616.34
7.2.330.0130.00616.80
7.2.320.0120.00316.66
7.2.310.0170.00716.74
7.2.300.0080.00816.59
7.2.290.0120.00816.75
7.2.60.0060.00616.90
7.2.00.0000.01519.62
7.1.200.0030.00315.70
7.1.100.0030.00618.12
7.1.70.0030.01017.22
7.1.60.0170.01034.93
7.1.50.0220.00634.58
7.1.40.0170.01334.30
7.1.30.0230.01034.51
7.1.20.0160.01334.50
7.1.10.0000.01416.59
7.1.00.0030.01016.77
7.0.200.0000.01216.86
7.0.190.0060.00616.77
7.0.180.0080.00616.20
7.0.170.0050.01016.11
7.0.160.0080.00616.16
7.0.150.0070.00716.16
7.0.140.0060.00616.37
7.0.130.0060.00816.38
7.0.120.0000.01316.48
7.0.110.0050.01116.22
7.0.100.0070.00716.48
7.0.90.0030.01316.15
7.0.80.0040.01116.23
7.0.70.0090.00316.28
7.0.60.0000.01416.09
7.0.50.0000.01316.34
7.0.40.0040.01116.36
7.0.30.0070.00716.23
7.0.20.0040.00916.48
7.0.10.0100.00316.36
7.0.00.0030.01016.35

preferences:
32.63 ms | 400 KiB | 5 Q