3v4l.org

run code in 300+ PHP versions simultaneously
<?php $defaultdata = array( "showpassword"=>"no", "bgcolor"=>"#ffffff"); 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 json_encode($defaultdata);

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.01016.38
8.3.50.0090.01219.46
8.3.40.0090.00618.84
8.3.30.0100.01018.53
8.3.20.0050.00221.86
8.3.10.0040.00423.48
8.3.00.0040.00421.76
8.2.180.0120.00618.16
8.2.170.0140.00322.96
8.2.160.0140.00019.08
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0060.00319.35
8.2.120.0040.00426.35
8.2.110.0100.00021.10
8.2.100.0110.00617.48
8.2.90.0050.00319.05
8.2.80.0030.00617.97
8.2.70.0060.00317.50
8.2.60.0000.00818.04
8.2.50.0040.00418.10
8.2.40.0000.00820.55
8.2.30.0080.00019.29
8.2.20.0040.00417.98
8.2.10.0000.00717.99
8.2.00.0000.00718.05
8.1.280.0100.01025.92
8.1.270.0040.00422.19
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0080.00023.96
8.1.230.0110.00017.70
8.1.220.0000.00917.76
8.1.210.0000.00818.77
8.1.200.0030.00517.23
8.1.190.0050.00317.23
8.1.180.0050.00218.10
8.1.170.0040.00418.48
8.1.160.0040.00418.81
8.1.150.0030.00518.87
8.1.140.0040.00418.98
8.1.130.0030.00317.70
8.1.120.0040.00417.41
8.1.110.0050.00317.29
8.1.100.0000.00717.30
8.1.90.0090.00017.36
8.1.80.0000.00717.40
8.1.70.0070.00017.39
8.1.60.0040.00417.50
8.1.50.0040.00417.45
8.1.40.0070.00017.33
8.1.30.0040.00417.53
8.1.20.0080.00017.48
8.1.10.0030.00617.47
8.1.00.0030.00617.44
8.0.300.0040.00418.77
8.0.290.0070.00016.75
8.0.280.0070.00018.36
8.0.270.0000.00717.23
8.0.260.0000.00617.24
8.0.250.0040.00416.91
8.0.240.0030.00516.93
8.0.230.0040.00416.95
8.0.220.0080.00016.78
8.0.210.0030.00316.81
8.0.200.0030.00316.88
8.0.190.0040.00316.75
8.0.180.0030.00616.85
8.0.170.0000.00816.88
8.0.160.0040.00416.80
8.0.150.0040.00416.70
8.0.140.0040.00416.77
8.0.130.0040.00413.21
8.0.120.0050.00316.66
8.0.110.0020.00516.70
8.0.100.0050.00316.69
8.0.90.0070.00016.71
8.0.80.0030.01216.89
8.0.70.0040.00416.80
8.0.60.0070.00016.75
8.0.50.0030.00516.87
8.0.30.0080.01116.98
8.0.20.0130.00917.40
8.0.10.0000.00716.91
8.0.00.0090.00916.69
7.4.330.0030.00315.55
7.4.320.0060.00016.50
7.4.300.0030.00316.55
7.4.290.0000.00716.34
7.4.280.0070.00016.55
7.4.270.0060.00016.51
7.4.260.0000.00716.58
7.4.250.0000.00716.42
7.4.240.0000.00716.38
7.4.230.0030.00316.25
7.4.220.0090.00016.59
7.4.210.0140.00716.46
7.4.200.0030.00316.55
7.4.160.0100.00816.46
7.4.150.0100.03217.40
7.4.140.0100.00917.86
7.4.130.0000.02116.40
7.4.120.0100.01016.47
7.4.110.0100.01016.65
7.4.100.0060.01016.42
7.4.90.0060.01516.28
7.4.80.0080.00819.39
7.4.70.0130.00916.44
7.4.60.0100.00716.57
7.4.50.0090.00616.35
7.4.40.0070.01016.48
7.4.00.0070.00715.13
7.3.330.0000.00713.20
7.3.320.0050.00013.02
7.3.310.0030.00316.14
7.3.300.0030.00316.04
7.3.290.0070.00016.21
7.3.280.0100.01016.14
7.3.270.0130.01417.40
7.3.260.0110.01016.19
7.3.250.0060.01116.50
7.3.240.0110.00716.45
7.3.230.0100.00716.55
7.3.210.0060.01016.30
7.3.200.0060.01516.27
7.3.190.0120.00316.57
7.3.180.0100.00616.10
7.3.170.0030.01316.21
7.3.160.0060.01016.37
7.2.330.0100.00716.26
7.2.320.0160.00016.64
7.2.310.0120.00616.50
7.2.300.0100.00716.26
7.2.290.0080.00816.61
7.2.60.0140.00716.68
7.2.00.0220.00917.35
7.1.200.0030.00915.83
7.1.120.0180.01216.29
7.1.110.0290.00615.89
7.1.100.0260.01115.85
7.1.90.0190.01016.00
7.1.80.0300.00915.79
7.1.70.1050.01215.23
7.1.60.0340.00733.29
7.1.50.0360.01232.86
7.1.40.0360.00632.40
7.1.30.0320.01032.45
7.1.20.0300.01332.54
7.1.10.0230.01014.66
7.1.00.0190.01914.68

preferences:
45.08 ms | 400 KiB | 5 Q