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; } function xor_decrypt($in) { $key = '<derosnec>'; $text = $in; $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } $my_data = array( "showpassword"=>"yes", "bgcolor"=>"#ffffff"); $my_data_e = base64_decode(xor_decrypt(json_decode())); $tempdata = json_decode(xor_decrypt(base64_decode("ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSEV4sFxFeaAw%3D"))); echo $tempdata;

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.70.0080.00816.63
8.3.60.0140.00418.40
8.3.50.0070.00822.93
8.3.40.0040.01118.96
8.3.30.0030.01418.87
8.3.20.0070.00020.16
8.3.10.0000.00821.95
8.3.00.0030.00517.63
8.2.180.0120.00316.50
8.2.170.0060.00922.96
8.2.160.0060.00920.52
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0000.00720.93
8.2.110.0060.00322.30
8.2.100.0130.00017.91
8.2.90.0090.00019.03
8.2.80.0060.00317.97
8.2.70.0050.00317.50
8.2.60.0050.00517.93
8.2.50.0030.00618.07
8.2.40.0000.00718.09
8.2.30.0060.00317.93
8.2.20.0040.00417.75
8.2.10.0050.00317.95
8.2.00.0020.00517.74
8.1.280.0070.00725.92
8.1.270.0030.01223.92
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00623.91
8.1.230.0040.00819.00
8.1.220.0000.00817.74
8.1.210.0080.00018.77
8.1.200.0070.00317.23
8.1.190.0000.00817.22
8.1.180.0040.00418.10
8.1.170.0040.00418.61
8.1.160.0000.00821.96
8.1.150.0000.00718.86
8.1.140.0000.00817.35
8.1.130.0000.00717.79
8.1.120.0040.00417.44
8.1.110.0000.00817.36
8.1.100.0080.00017.31
8.1.90.0040.00417.41
8.1.80.0000.00717.42
8.1.70.0030.00317.40
8.1.60.0030.00617.60
8.1.50.0040.00417.48
8.1.40.0060.00317.53
8.1.30.0080.00017.51
8.1.20.0050.00217.65
8.1.10.0070.00017.53
8.1.00.0040.00417.40
8.0.300.0030.00318.77
8.0.290.0070.00016.75
8.0.280.0000.00718.26
8.0.270.0030.00317.20
8.0.260.0060.00017.20
8.0.250.0070.00016.87
8.0.240.0060.00016.80
8.0.230.0040.00416.82
8.0.220.0000.00716.81
8.0.210.0030.00316.93
8.0.200.0030.00316.94
8.0.190.0000.00716.87
8.0.180.0000.00716.92
8.0.170.0000.00716.99
8.0.160.0000.00716.86
8.0.150.0000.00716.74
8.0.140.0030.00816.88
8.0.130.0030.00313.30
8.0.120.0050.00216.89
8.0.110.0000.00716.76
8.0.100.0000.00716.72
8.0.90.0040.00416.89
8.0.80.0030.01616.78
8.0.70.0070.00016.93
8.0.60.0070.00016.86
8.0.50.0070.00016.72
8.0.30.0100.01017.08
8.0.20.0110.01117.40
8.0.10.0000.00717.02
8.0.00.0100.00716.96
7.4.330.0030.00315.00
7.4.320.0030.00316.45
7.4.300.0030.00316.41
7.4.290.0040.00516.54
7.4.280.0030.00316.50
7.4.270.0000.00816.67
7.4.260.0040.00416.43
7.4.250.0040.00416.39
7.4.240.0030.00416.55
7.4.230.0070.00016.42
7.4.220.0090.00916.72
7.4.210.0130.01316.53
7.4.200.0050.00216.60
7.4.160.0080.00816.52
7.4.150.0120.00617.40
7.4.140.0120.00817.86
7.4.130.0130.00316.56
7.4.120.0070.01116.55
7.4.110.0100.00716.48
7.4.100.0110.00716.60
7.4.90.0100.00716.57
7.4.80.0070.01019.39
7.4.70.0100.00616.61
7.4.60.0100.00716.48
7.4.50.0030.00616.59
7.4.40.0120.00816.64
7.4.30.0130.00316.52
7.4.00.0000.00914.76
7.3.330.0070.00013.45
7.3.320.0030.00313.31
7.3.310.0070.00016.30
7.3.300.0060.00016.32
7.3.290.0160.00316.37
7.3.280.0060.01216.47
7.3.270.0060.01117.40
7.3.260.0150.00616.38
7.3.250.0130.00516.40
7.3.240.0100.01016.55
7.3.230.0120.00616.63
7.3.210.0120.00616.59
7.3.200.0160.00619.39
7.3.190.0100.01016.46
7.3.180.0060.01316.51
7.3.170.0100.00616.64
7.3.160.0030.01216.49
7.2.330.0130.00316.87
7.2.320.0090.00916.50
7.2.310.0060.01516.59
7.2.300.0100.00716.70
7.2.290.0100.01016.55
7.2.00.0040.00919.58
7.1.100.0030.00618.23
7.1.70.0060.00317.18
7.1.60.0040.01919.40
7.1.50.0040.01916.98
7.1.00.0000.07722.44
7.0.200.0030.00516.89
7.0.140.0070.07022.16
7.0.80.0030.04019.89
7.0.70.0030.04019.93
7.0.60.0030.04320.00
7.0.50.0100.03320.36
7.0.40.0030.04020.13
7.0.30.0070.04020.03
7.0.20.0000.04020.11
7.0.10.0100.05320.14
7.0.00.0070.04020.13
5.6.280.0070.07021.10
5.6.230.0030.04020.64
5.6.220.0000.04720.57
5.6.210.0070.03720.77
5.6.200.0100.03720.96
5.6.190.0000.04721.04
5.6.180.0070.08321.07
5.6.170.0030.03721.02
5.6.160.0030.04021.04
5.6.150.0000.04720.97
5.6.140.0030.04020.96
5.6.130.0070.04321.03
5.6.120.0070.04021.07
5.6.110.0100.03721.04
5.6.100.0070.04021.02
5.6.90.0100.07020.94
5.6.80.0100.08020.45
5.6.70.0070.06320.45
5.6.60.0070.08020.31
5.6.50.0070.05020.39
5.6.40.0030.08320.41
5.6.30.0030.08320.32
5.6.20.0030.08320.35
5.6.10.0170.07020.31
5.6.00.0130.07720.46
5.5.370.0000.04320.36
5.5.360.0070.04020.46
5.5.350.0030.04020.44
5.5.340.0000.04320.92
5.5.330.0070.04720.91
5.5.320.0100.03720.79
5.5.310.0030.04020.80
5.5.300.0000.04320.88
5.5.290.0070.04320.84
5.5.280.0070.04020.77
5.5.270.0070.03720.88
5.5.260.0070.03720.87
5.5.250.0070.07720.65
5.5.240.0070.08020.19
5.5.230.0030.05020.14
5.5.220.0070.06020.16
5.5.210.0100.05020.18
5.5.200.0030.04720.00
5.5.190.0270.08020.12
5.5.180.0100.07320.20
5.5.160.0030.05320.19
5.5.150.0070.07720.14
5.5.140.0130.07720.18
5.5.130.0100.07020.21
5.5.120.0130.04020.09
5.5.110.0030.05020.21
5.5.100.0070.08019.98
5.5.90.0070.08320.12
5.5.80.0070.07320.10
5.5.70.0070.06319.96
5.5.60.0000.08320.11
5.5.50.0100.05719.94
5.5.40.0130.05720.17
5.5.30.0130.06020.05
5.5.20.0070.08320.16
5.5.10.0070.08020.05
5.5.00.0070.07720.04
5.4.450.0030.04019.20
5.4.440.0100.03319.42
5.4.430.0000.04319.20
5.4.420.0000.04319.55
5.4.410.0200.06719.43
5.4.400.0170.07019.09
5.4.390.0070.05719.25
5.4.380.0170.03719.13
5.4.370.0030.06719.04
5.4.360.0100.08019.05
5.4.350.0030.06719.03
5.4.340.0070.08018.85
5.4.320.0130.06319.23
5.4.310.0130.04719.18
5.4.300.0130.06019.14
5.4.290.0070.05319.18
5.4.280.0130.06319.23
5.4.270.0070.05019.09
5.4.260.0070.07718.88
5.4.250.0070.03718.86
5.4.240.0030.08019.18
5.4.230.0000.07719.17
5.4.220.0100.07318.98
5.4.210.0100.07318.84
5.4.200.0070.07719.20
5.4.190.0070.07019.22
5.4.180.0030.08019.03
5.4.170.0200.05719.21
5.4.160.0100.08319.21
5.4.150.0000.08718.86
5.4.140.0130.07016.52
5.4.130.0130.07316.38
5.4.120.0130.06316.49
5.4.110.0000.08016.39
5.4.100.0000.08016.52
5.4.90.0070.07316.34
5.4.80.0030.07716.31
5.4.70.0070.06716.40
5.4.60.0070.07316.42
5.4.50.0000.08016.46
5.4.40.0130.06316.39
5.4.30.0100.05016.47
5.4.20.0030.04716.40
5.4.10.0070.07316.31
5.4.00.0100.07315.90
5.3.290.0100.07714.62
5.3.280.0100.07714.63
5.3.270.0000.08714.66
5.3.260.0170.04314.55
5.3.250.0070.07314.58
5.3.240.0270.07014.61
5.3.230.0100.07014.61
5.3.220.0170.06314.59
5.3.210.0170.06314.52
5.3.200.0130.07014.64
5.3.190.0070.07714.67
5.3.180.0130.06714.58
5.3.170.0030.07314.56
5.3.160.0100.06314.63
5.3.150.0030.06714.49
5.3.140.0030.06314.66
5.3.130.0100.06014.54
5.3.120.0030.06014.53
5.3.110.0030.07014.56
5.3.100.0030.06713.97
5.3.90.0030.06714.02
5.3.80.0070.08014.13
5.3.70.0030.07014.03
5.3.60.0130.07013.89
5.3.50.0030.08013.94
5.3.40.0000.07714.05
5.3.30.0130.08714.03
5.3.20.0070.08013.71
5.3.10.0130.05313.68
5.3.00.0100.06713.57
5.2.170.0030.06311.89
5.2.160.0070.06311.89
5.2.150.0100.06011.89
5.2.140.0100.05311.89
5.2.130.0000.06711.89
5.2.120.0070.06011.89
5.2.110.0030.06311.89
5.2.100.0070.05711.89
5.2.90.0130.05311.89
5.2.80.0070.06311.89
5.2.70.0030.05011.89
5.2.60.0030.05011.89
5.2.50.0070.06311.89
5.2.40.0030.04311.89
5.2.30.0100.05311.89
5.2.20.0030.04011.89
5.2.10.0100.05311.89
5.2.00.0070.05011.89
5.1.60.0000.05311.89
5.1.50.0030.05011.89
5.1.40.0030.04011.89
5.1.30.0100.04711.89
5.1.20.0030.05311.89
5.1.10.0030.03011.89
5.1.00.0030.06011.89
5.0.50.0100.04011.89
5.0.40.0100.03711.89
5.0.30.0030.06011.89
5.0.20.0000.02311.89
5.0.10.0070.03711.89
5.0.00.0000.06011.89
4.4.90.0070.03011.89
4.4.80.0030.03311.89
4.4.70.0030.03311.89
4.4.60.0000.02311.89
4.4.50.0030.03311.89
4.4.40.0070.04711.89
4.4.30.0070.02711.89
4.4.20.0130.02311.89
4.4.10.0030.02311.89
4.4.00.0030.02711.89
4.3.110.0070.03011.89
4.3.100.0000.03711.89
4.3.90.0070.03011.89
4.3.80.0030.04711.89
4.3.70.0000.02011.89
4.3.60.0000.02711.89
4.3.50.0070.03011.89
4.3.40.0000.04711.89
4.3.30.0030.03311.89
4.3.20.0000.03011.89
4.3.10.0070.02711.89
4.3.00.0000.03711.89

preferences:
38.23 ms | 401 KiB | 5 Q