3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array["showpassword"] = "yes"; $array["bgcolor"] = "#ffffff"; $defaultdata = array( "showpassword"=>"yes", "bgcolor"=>"#ffffff"); $json = json_encode($defaultdata); echo $json; function xor_encrypt($in) { $key = 'WWWWWW'; $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)); ?>

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.0110.00416.63
8.3.50.0090.00618.18
8.3.40.0140.00718.64
8.3.30.0060.00918.45
8.3.20.0000.00820.04
8.3.10.0040.00423.53
8.3.00.0080.00019.51
8.2.180.0070.01117.93
8.2.170.0070.01022.96
8.2.160.0140.00321.98
8.2.150.0080.00025.66
8.2.140.0000.00724.66
8.2.130.0040.00419.23
8.2.120.0000.00826.35
8.2.110.0080.00422.20
8.2.100.0040.00718.05
8.2.90.0030.00619.19
8.2.80.0050.00317.97
8.2.70.0050.00317.63
8.2.60.0080.00018.03
8.2.50.0000.00818.07
8.2.40.0080.00019.38
8.2.30.0070.00020.70
8.2.20.0060.00317.67
8.2.10.0040.00418.01
8.2.00.0000.00718.00
8.1.280.0090.00625.92
8.1.270.0100.00022.06
8.1.260.0050.00328.09
8.1.250.0140.00028.09
8.1.240.0030.00622.71
8.1.230.0080.00417.77
8.1.220.0000.00817.78
8.1.210.0050.00318.77
8.1.200.0050.00517.35
8.1.190.0040.00417.35
8.1.180.0080.00018.10
8.1.170.0090.00018.83
8.1.160.0050.00221.93
8.1.150.0000.00818.89
8.1.140.0040.00419.53
8.1.130.0000.00917.71
8.1.120.0000.00717.40
8.1.110.0050.00317.32
8.1.100.0080.00017.35
8.1.90.0070.00017.31
8.1.80.0060.00317.41
8.1.70.0040.00417.31
8.1.60.0000.00817.63
8.1.50.0000.00817.54
8.1.40.0050.00317.51
8.1.30.0030.00517.66
8.1.20.0000.00717.70
8.1.10.0000.00817.57
8.1.00.0030.00617.45
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0000.00718.47
8.0.270.0030.00317.30
8.0.260.0000.00617.17
8.0.250.0030.00516.98
8.0.240.0030.00316.98
8.0.230.0070.00016.93
8.0.220.0030.00616.91
8.0.210.0000.00816.92
8.0.200.0030.00316.83
8.0.190.0040.00416.96
8.0.180.0000.00816.94
8.0.170.0040.00416.91
8.0.160.0040.00416.82
8.0.150.0070.00016.84
8.0.140.0000.01116.89
8.0.130.0030.00313.30
8.0.120.0000.00816.80
8.0.110.0050.00216.79
8.0.100.0040.00416.88
8.0.90.0070.00016.80
8.0.80.0030.01216.88
8.0.70.0070.00016.94
8.0.60.0000.00816.72
8.0.50.0040.00416.76
8.0.30.0140.00717.16
8.0.20.0110.00617.40
8.0.10.0070.00317.00
8.0.00.0080.00916.79
7.4.330.0000.00516.67
7.4.320.0000.00616.43
7.4.300.0000.00616.61
7.4.290.0000.00716.64
7.4.280.0000.00816.37
7.4.270.0030.00316.56
7.4.260.0040.00416.39
7.4.250.0070.00016.58
7.4.240.0020.00516.60
7.4.230.0000.00716.43
7.4.220.0040.01416.54
7.4.210.0060.01516.63
7.4.200.0000.00716.68
7.4.160.0100.01016.55
7.4.150.0040.01317.40
7.4.140.0120.00817.86
7.4.130.0140.00516.48
7.4.120.0070.01016.49
7.4.110.0120.00616.43
7.4.100.0030.01416.59
7.4.90.0130.00316.44
7.4.80.0080.00919.39
7.4.70.0100.00716.52
7.4.60.0070.01016.50
7.4.50.0060.00616.43
7.4.40.0100.00716.48
7.4.30.0150.00916.52
7.4.00.0050.00915.04
7.3.330.0030.00313.35
7.3.320.0030.00313.22
7.3.310.0030.00316.36
7.3.300.0000.00716.36
7.3.290.0040.01316.32
7.3.280.0060.01216.35
7.3.270.0130.00617.40
7.3.260.0110.00716.50
7.3.240.0110.00816.45
7.3.230.0100.00716.41
7.3.210.0060.00916.53
7.3.200.0060.01316.33
7.3.190.0000.01616.26
7.3.180.0160.00716.38
7.3.170.0090.00916.50
7.3.160.0060.01016.58
7.2.330.0140.00616.63
7.2.320.0100.01416.79
7.2.310.0060.01116.86
7.2.300.0100.01316.69
7.2.290.0030.01616.75
7.2.00.0000.01619.29
7.1.200.0110.00415.84
7.1.100.0070.00418.19
7.1.70.0060.00317.21
7.1.60.0120.01219.48
7.1.50.0070.01317.07
7.1.00.0100.07022.24
7.0.200.0440.00714.64
7.0.90.0270.07719.77
7.0.80.0570.04019.88
7.0.70.0470.05719.82
7.0.60.0500.05019.80
7.0.50.0530.07320.39
7.0.40.0070.04320.04
7.0.30.0070.08320.14
7.0.20.0170.05020.18
7.0.10.0070.08320.14
7.0.00.0100.07320.10
5.6.280.0030.03721.13
5.6.240.0130.07320.64
5.6.230.0100.05320.58
5.6.220.0130.07020.53
5.6.210.0030.08320.53
5.6.200.0130.05021.04
5.6.190.0000.06021.06
5.6.180.0100.04321.04
5.6.170.0030.05721.02
5.6.160.0030.04720.94
5.6.150.0030.05021.09
5.6.140.0030.06320.95
5.6.130.0070.09021.10
5.6.120.0070.08721.04
5.6.110.0030.05321.04
5.6.100.0100.08021.08
5.6.90.0200.07321.07
5.6.80.0230.05020.50
5.6.70.0100.07320.47
5.6.60.0070.06320.45
5.6.50.0130.07320.50
5.6.40.0070.07720.46
5.6.30.0200.06720.46
5.6.20.0030.08320.46
5.6.10.0100.05020.44
5.6.00.0030.07320.38
5.5.380.0070.07020.32
5.5.370.0030.08320.35
5.5.360.0030.05320.30
5.5.350.0130.07320.41
5.5.340.0030.05020.93
5.5.330.0030.08720.78
5.5.320.0130.04720.77
5.5.310.0030.08720.88
5.5.300.0030.06320.77
5.5.290.0000.09020.87
5.5.280.0100.05020.88
5.5.270.0130.08020.92
5.5.260.0100.08020.84
5.5.250.0000.05020.64
5.5.240.0100.07320.14
5.5.230.0070.05020.15
5.5.220.0170.06720.22
5.5.210.0070.07720.30
5.5.200.0130.07720.17
5.5.190.0100.07320.26
5.5.180.0070.08020.18
5.5.160.0070.08020.21
5.5.150.0100.07020.18
5.5.140.0000.05320.14
5.5.130.0030.08020.13
5.5.120.0030.05320.21
5.5.110.0000.08719.98
5.5.100.0070.07319.98
5.5.90.0070.08320.06
5.5.80.0000.07720.15
5.5.70.0100.07720.16
5.5.60.0170.07020.00
5.5.50.0070.05020.14
5.5.40.0070.07320.05
5.5.30.0070.07719.96
5.5.20.0170.06320.05
5.5.10.0070.08319.98
5.5.00.0100.07320.00

preferences:
48.29 ms | 400 KiB | 5 Q