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; } echo base74_encode(xor_encrypt(json_encode('array( "showpassword"=>"yes", "bgcolor"=>"#ffffff");'))); ?>

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.0090.00618.31
8.3.50.0100.01016.59
8.3.40.0040.01118.83
8.3.30.0070.01118.42
8.3.20.0070.00020.16
8.3.10.0040.00423.40
8.3.00.0040.00419.55
8.2.180.0110.00418.15
8.2.170.0040.01122.96
8.2.160.0100.00319.04
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00419.26
8.2.120.0080.00026.35
8.2.110.0070.00322.11
8.2.100.0040.00817.72
8.2.90.0040.00419.05
8.2.80.0040.00417.97
8.2.70.0040.00717.37
8.2.60.0090.00017.93
8.2.50.0060.00618.07
8.2.40.0070.00018.03
8.2.30.0040.00418.00
8.2.20.0070.00018.00
8.2.10.0000.00717.99
8.2.00.0050.00317.99
8.1.280.0090.01225.92
8.1.270.0050.00322.04
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0090.00022.05
8.1.230.0070.00417.70
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0000.00817.13
8.1.190.0030.00617.22
8.1.180.0060.00318.10
8.1.170.0030.00618.59
8.1.160.0000.00718.77
8.1.150.0050.00220.55
8.1.140.0000.00719.32
8.1.130.0040.00418.67
8.1.120.0000.00717.34
8.1.110.0040.00417.25
8.1.100.0030.00417.24
8.1.90.0000.00717.41
8.1.80.0040.00417.32
8.1.70.0050.00317.32
8.1.60.0040.00817.36
8.1.50.0030.00617.46
8.1.40.0050.00317.33
8.1.30.0000.00817.44
8.1.20.0060.00317.43
8.1.10.0000.00817.41
8.1.00.0080.00017.33
8.0.300.0070.00018.77
8.0.290.0000.00816.63
8.0.280.0020.00518.35
8.0.270.0030.00317.10
8.0.260.0000.00716.83
8.0.250.0040.00416.88
8.0.240.0000.00816.98
8.0.230.0040.00416.97
8.0.220.0080.00016.77
8.0.210.0040.00416.89
8.0.200.0000.00816.96
8.0.190.0050.00317.00
8.0.180.0040.00416.89
8.0.170.0000.00716.80
8.0.160.0030.00616.91
8.0.150.0030.00316.86
8.0.140.0000.00816.86
8.0.130.0080.00013.30
8.0.120.0000.00816.86
8.0.110.0030.00516.84
8.0.100.0000.00816.93
8.0.90.0030.00316.90
8.0.80.0120.01016.89
8.0.70.0040.00416.93
8.0.60.0000.00816.93
8.0.50.0040.00416.77
8.0.30.0060.01116.99
8.0.20.0120.00817.40
8.0.10.0070.00016.82
8.0.00.0070.01016.70
7.4.330.0030.00315.55
7.4.320.0030.00316.34
7.4.300.0030.00316.46
7.4.290.0000.00716.39
7.4.280.0040.00416.52
7.4.270.0070.00016.45
7.4.260.0050.00316.41
7.4.250.0040.00416.33
7.4.240.0040.00416.52
7.4.230.0070.00016.45
7.4.220.0130.00616.56
7.4.210.0030.01216.66
7.4.200.0030.00316.21
7.4.160.0070.00916.29
7.4.150.0040.01317.40
7.4.140.0120.00917.86
7.4.130.0140.00316.59
7.4.120.0130.00616.46
7.4.110.0100.00716.55
7.4.100.0090.01216.46
7.4.90.0030.01316.43
7.4.80.0100.00719.39
7.4.70.0030.01216.43
7.4.60.0090.00816.64
7.4.50.0040.01116.45
7.4.40.0140.01016.52
7.4.30.0150.00316.58
7.4.10.0040.01514.91
7.4.00.0060.01015.06
7.3.330.0030.00313.09
7.3.320.0030.00313.13
7.3.310.0030.00316.35
7.3.300.0030.00316.32
7.3.290.0080.00816.31
7.3.280.0060.01116.31
7.3.270.0080.01217.40
7.3.260.0120.00416.28
7.3.250.0080.00916.44
7.3.240.0110.00816.42
7.3.230.0000.01616.44
7.3.210.0070.01016.23
7.3.200.0060.01116.36
7.3.190.0070.01516.50
7.3.180.0170.00016.33
7.3.170.0060.00916.29
7.3.160.0000.01716.30
7.3.130.0040.01815.02
7.3.120.0080.00814.69
7.3.110.0080.01014.85
7.3.100.0070.00714.72
7.3.90.0080.00514.68
7.3.80.0060.00814.71
7.3.70.0030.00814.59
7.3.60.0060.00814.75
7.3.50.0070.00514.70
7.3.40.0030.00814.56
7.3.30.0060.00914.84
7.3.20.0050.00716.70
7.3.10.0050.00916.49
7.3.00.0020.00916.54
7.2.330.0030.01416.40
7.2.320.0170.00016.50
7.2.310.0080.00816.48
7.2.300.0170.00316.70
7.2.290.0100.00516.47
7.2.260.0070.01315.02
7.2.250.0100.00914.95
7.2.240.0100.00814.97
7.2.230.0080.00714.80
7.2.220.0070.00714.94
7.2.210.0050.01014.83
7.2.200.0070.00814.93
7.2.190.0060.00914.81
7.2.180.0050.00914.88
7.2.170.0010.01314.82
7.2.160.0100.00514.70
7.2.150.0050.00916.73
7.2.140.0060.00616.68
7.2.130.0060.00616.54
7.2.120.0050.00516.71
7.2.110.0070.00516.72
7.2.100.0060.00816.80
7.2.90.0050.00916.81
7.2.80.0040.01116.62
7.2.70.0060.00716.68
7.2.60.0090.00516.70
7.2.50.0070.00716.81
7.2.40.0070.00416.80
7.2.30.0090.00716.84
7.2.20.0030.00916.62
7.2.10.0050.01016.74
7.2.00.0010.01217.47
7.1.330.0080.00615.57
7.1.320.0070.00615.54
7.1.310.0060.00815.63
7.1.300.0050.00515.62
7.1.290.0020.00915.59
7.1.280.0060.00715.56
7.1.270.0070.00615.43
7.1.260.0070.00515.63
7.1.250.0050.00615.46
7.1.240.0000.01215.52
7.1.230.0000.01315.57
7.1.220.0100.00615.42
7.1.210.0100.00415.47
7.1.200.0020.00915.67
7.1.190.0060.00315.69
7.1.180.0030.01015.54
7.1.170.0070.00315.50
7.1.160.0100.00715.63
7.1.150.0040.00815.52
7.1.140.0000.01315.71
7.1.130.0060.00615.64
7.1.120.0140.00415.76
7.1.110.0030.01415.79
7.1.100.0040.00716.85
7.1.90.0040.00715.66
7.1.80.0080.00815.43
7.1.70.0310.00815.33
7.1.60.0290.01025.28
7.1.50.0300.00724.96
7.1.40.0110.01124.88
7.1.30.0310.00824.04
7.1.20.0300.00724.22
7.1.10.0280.01215.13
7.1.00.0060.00616.02
7.0.330.0000.01415.44
7.0.320.0030.00915.45
7.0.310.0030.00615.15
7.0.300.0060.00315.30
7.0.290.0120.00315.32
7.0.280.0080.00415.07
7.0.270.0100.00315.30
7.0.260.0070.01115.20
7.0.250.0070.01015.09
7.0.240.0040.00715.41
7.0.230.0030.01315.22
7.0.220.0040.00715.21
7.0.210.0060.00615.27
7.0.200.0140.00916.01
7.0.190.0040.01216.01
7.0.180.0170.01114.76
7.0.170.0200.00814.87
7.0.160.0200.01114.76
7.0.150.0070.00915.70
7.0.140.0260.00914.75
7.0.130.0290.00814.93
7.0.120.0070.00715.86
7.0.110.0270.00814.82
7.0.100.0270.00714.87
7.0.90.0060.00915.73
7.0.80.0360.00615.78
7.0.70.0100.00715.64
7.0.60.0300.01115.63
7.0.50.0060.00915.66
7.0.40.0220.01113.91
7.0.30.0170.00914.71
7.0.20.0030.01014.87
7.0.10.0020.01414.95
7.0.00.0240.00713.68
5.6.400.0060.00914.29
5.6.390.0100.00614.11
5.6.380.0090.00313.89
5.6.370.0100.00013.80
5.6.360.0040.00714.31
5.6.350.0040.01114.18
5.6.340.0040.00814.44
5.6.330.0090.00313.79
5.6.320.0030.01514.05
5.6.310.0070.00714.55
5.6.300.0030.00714.28
5.6.290.0060.00914.18
5.6.280.0060.00914.23
5.6.270.0060.00613.87
5.6.260.0070.00714.16
5.6.250.0120.00314.25
5.6.240.0040.01114.00
5.6.230.0000.01714.10
5.6.220.0030.01014.31
5.6.210.0080.00413.85
5.6.200.0060.00614.02
5.6.190.0060.00313.93
5.6.180.0000.01014.13
5.6.170.0080.00814.05
5.6.160.0070.00314.23
5.6.150.0060.01014.22
5.6.140.0110.00414.23
5.6.130.0060.00613.93
5.6.120.0030.00614.29
5.6.110.0070.00714.06
5.6.100.0030.01014.18
5.6.90.0040.00414.07
5.6.80.0100.00014.20
5.6.70.0030.00713.96
5.6.60.0110.00414.07
5.6.50.0030.01314.03
5.6.40.0060.00613.77
5.6.30.0030.00913.93
5.6.20.0030.00914.05
5.6.10.0000.01314.14
5.6.00.0060.00614.08

preferences:
47.63 ms | 401 KiB | 5 Q