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("ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSEV4sFxFeaAw%3D"))); $tempdata = json_decode(xor_encrypt(base64_decode($my_data_e)), true); echo $my_data_e;

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.00418.68
8.3.50.0080.00722.93
8.3.40.0070.00718.75
8.3.30.0070.01018.95
8.3.20.0040.00420.30
8.3.10.0050.00321.66
8.3.00.0060.00317.59
8.2.180.0110.01116.50
8.2.170.0040.01122.96
8.2.160.0040.01620.53
8.2.150.0000.00724.18
8.2.140.0000.00724.66
8.2.130.0140.00026.16
8.2.120.0040.00421.01
8.2.110.0030.00620.55
8.2.100.0120.00017.84
8.2.90.0040.00419.20
8.2.80.0030.00617.97
8.2.70.0060.00317.63
8.2.60.0000.01118.03
8.2.50.0060.00318.07
8.2.40.0040.00418.22
8.2.30.0040.00418.08
8.2.20.0040.00417.69
8.2.10.0040.00418.14
8.2.00.0000.00817.63
8.1.280.0070.00725.92
8.1.270.0080.00023.93
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0040.00721.99
8.1.230.0110.00022.25
8.1.220.0060.00317.77
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0030.00617.11
8.1.180.0000.00918.10
8.1.170.0030.00518.47
8.1.160.0040.00421.91
8.1.150.0070.00018.81
8.1.140.0070.00017.36
8.1.130.0030.00317.84
8.1.120.0000.00817.31
8.1.110.0000.00817.37
8.1.100.0030.00517.38
8.1.90.0000.00717.47
8.1.80.0030.00317.29
8.1.70.0030.00317.25
8.1.60.0000.00717.59
8.1.50.0050.00317.43
8.1.40.0060.00317.43
8.1.30.0000.00817.67
8.1.20.0000.00717.53
8.1.10.0020.00517.54
8.1.00.0000.00717.46
8.0.300.0070.00018.77
8.0.290.0040.00416.63
8.0.280.0030.00318.44
8.0.270.0030.00317.19
8.0.260.0030.00317.32
8.0.250.0000.00716.99
8.0.240.0070.00016.96
8.0.230.0040.00416.77
8.0.220.0000.00716.74
8.0.210.0030.00316.86
8.0.200.0000.00616.84
8.0.190.0030.00316.89
8.0.180.0030.00516.78
8.0.170.0050.00216.84
8.0.160.0030.00316.86
8.0.150.0000.00816.80
8.0.140.0040.00716.79
8.0.130.0030.00313.24
8.0.120.0070.00016.86
8.0.110.0000.00716.75
8.0.100.0050.00316.67
8.0.90.0070.00016.72
8.0.80.0070.00916.79
8.0.70.0040.00416.76
8.0.60.0050.00216.73
8.0.50.0030.00516.73
8.0.30.0130.00816.89
8.0.20.0100.01017.40
8.0.10.0000.00716.90
8.0.00.0140.00316.81
7.4.330.0030.00315.03
7.4.320.0000.00816.57
7.4.300.0060.00016.56
7.4.290.0090.00016.51
7.4.280.0000.00716.66
7.4.270.0030.00316.55
7.4.260.0000.00916.51
7.4.250.0000.00816.43
7.4.240.0050.00216.54
7.4.230.0000.00716.72
7.4.220.0070.01316.64
7.4.210.0080.00816.65
7.4.200.0000.00716.34
7.4.160.0060.01016.48
7.4.150.0030.01517.40
7.4.140.0120.00717.86
7.4.130.0080.00916.43
7.4.120.0050.01416.44
7.4.110.0130.00316.60
7.4.100.0100.00716.45
7.4.90.0090.00916.59
7.4.80.0080.00919.39
7.4.70.0150.00316.68
7.4.60.0090.00916.53
7.4.50.0000.00516.56
7.4.40.0030.01316.59
7.4.30.0060.01116.44
7.4.10.0060.01316.44
7.4.00.0070.00815.73
7.3.330.0030.00313.46
7.3.320.0000.00513.33
7.3.310.0030.00316.28
7.3.300.0000.00716.32
7.3.290.0000.01316.30
7.3.280.0090.00616.38
7.3.270.0060.01217.40
7.3.260.0140.00316.32
7.3.250.0110.00916.63
7.3.240.0140.00516.49
7.3.230.0250.02616.39
7.3.210.0130.00316.68
7.3.200.0000.01619.39
7.3.190.0100.01016.58
7.3.180.0130.00316.68
7.3.170.0130.00316.48
7.3.160.0140.00316.38
7.3.130.0070.01016.22
7.3.120.0060.01115.72
7.3.110.0100.00615.70
7.3.100.0040.00915.60
7.3.90.0090.00415.64
7.3.80.0050.01015.69
7.3.70.0080.00615.44
7.3.60.0060.00915.56
7.3.50.0050.01015.57
7.3.40.0080.00515.73
7.3.30.0060.00815.63
7.3.20.0020.01017.38
7.3.10.0050.00717.41
7.3.00.0070.00917.39
7.2.330.0120.00616.50
7.2.320.0070.01016.77
7.2.310.0140.00416.63
7.2.300.0060.01016.73
7.2.290.0120.00916.80
7.2.260.0100.01016.80
7.2.250.0100.01016.69
7.2.240.0080.01015.62
7.2.230.0110.00415.98
7.2.220.0060.00815.84
7.2.210.0060.00615.78
7.2.200.0080.00615.75
7.2.190.0090.00715.85
7.2.180.0050.01115.78
7.2.170.0050.01015.85
7.2.160.0080.00515.73
7.2.150.0020.01317.70
7.2.140.0070.00917.66
7.2.130.0090.00617.66
7.2.120.0080.00317.53
7.2.110.0070.01017.72
7.2.100.0080.00617.62
7.2.90.0060.00817.56
7.2.80.0030.01217.42
7.2.70.0080.00817.51
7.2.60.0080.00817.71
7.2.50.0090.00317.65
7.2.40.0050.01117.53
7.2.30.0060.01017.68
7.2.20.0030.01117.58
7.2.10.0070.00817.55
7.2.00.0020.01118.04
7.1.330.0070.00616.68
7.1.320.0020.01116.61
7.1.310.0050.00816.66
7.1.300.0050.00716.51
7.1.290.0040.00916.57
7.1.280.0030.00816.55
7.1.270.0050.00816.64
7.1.260.0040.00716.63
7.1.250.0020.01216.69
7.1.240.0000.00917.30
7.1.230.0130.00717.28
7.1.220.0140.00317.36
7.1.210.0000.01117.34
7.1.200.0110.00417.18
7.1.190.0040.01117.38
7.1.180.0060.00917.28
7.1.170.0040.01417.22
7.1.160.0030.01017.29
7.1.150.0070.00717.19
7.1.140.0030.01317.42
7.1.130.0140.00017.23
7.1.120.0080.00417.18
7.1.110.0110.00417.30
7.1.100.0020.01017.56
7.1.90.0000.01117.38
7.1.80.0100.00317.38
7.1.70.0030.00817.26
7.1.60.0050.01218.40
7.1.50.0090.00817.15
7.1.40.0030.00917.54
7.1.30.0130.00017.41
7.1.20.0100.00317.45
7.1.10.0000.01217.39
7.1.00.0070.03919.85
7.0.330.0000.01316.91
7.0.320.0000.01416.97
7.0.310.0040.00816.96
7.0.300.0090.00317.11
7.0.290.0040.01117.01
7.0.280.0070.00316.85
7.0.270.0030.01317.07
7.0.260.0060.00617.13
7.0.250.0090.00616.94
7.0.240.0060.00617.11
7.0.230.0140.00017.07
7.0.220.0110.00017.09
7.0.210.0090.00016.98
7.0.200.0050.00516.83
7.0.190.0080.00417.07
7.0.180.0040.00816.87
7.0.170.0000.01116.99
7.0.160.0000.00917.03
7.0.150.0070.00716.96
7.0.140.0050.04119.55
7.0.130.0030.00916.88
7.0.120.0030.01217.02
7.0.110.0060.00917.07
7.0.100.0100.00716.87
7.0.90.0000.01016.88
7.0.80.0090.00616.97
7.0.70.0040.00817.04
7.0.60.0180.02818.44
7.0.50.0060.02617.44
7.0.40.0070.02717.51
7.0.30.0220.02217.67
7.0.20.0140.03917.58
7.0.10.0030.04317.52
7.0.00.0050.04617.61
5.6.400.0070.00715.70
5.6.390.0110.00616.04
5.6.380.0060.01015.71
5.6.370.0070.01015.73
5.6.360.0060.01215.92
5.6.350.0080.00415.98
5.6.340.0030.01415.58
5.6.330.0070.01115.99
5.6.320.0070.01015.93
5.6.310.0040.00715.60
5.6.300.0070.00416.10
5.6.290.0090.00015.66
5.6.280.0030.04318.64
5.6.270.0090.00616.07
5.6.260.0090.00616.17
5.6.250.0060.00315.98
5.6.240.0070.00416.04
5.6.230.0060.00915.82
5.6.220.0050.00515.77
5.6.210.0050.03818.29
5.6.200.0080.03217.13
5.6.190.0130.03018.18
5.6.180.0200.03718.32
5.6.170.0050.03018.18
5.6.160.0090.04218.11
5.6.150.0050.04616.98
5.6.140.0080.04117.02
5.6.130.0130.03816.95
5.6.120.0070.04318.35
5.6.110.0070.03718.68
5.6.100.0070.04718.46
5.6.90.0100.04518.49
5.6.80.0060.03818.10
5.6.70.0000.01215.67
5.6.60.0030.00916.03
5.6.50.0100.01015.84
5.6.40.0100.00315.80
5.6.30.0040.01515.73
5.6.20.0040.01115.73
5.6.10.0040.00715.55
5.6.00.0030.01015.64
5.5.380.0030.01015.88
5.5.370.0090.00615.75
5.5.360.0030.00815.66
5.5.350.0050.04818.17
5.5.340.0070.02516.90
5.5.330.0080.04518.14
5.5.320.0030.02218.09
5.5.310.0200.04718.10
5.5.300.0030.02516.84
5.5.290.0040.02416.93
5.5.280.0080.02818.33
5.5.270.0060.04518.26
5.5.260.0030.02818.40
5.5.250.0110.04018.27
5.5.240.0710.01818.00
5.5.230.0070.00315.72
5.5.220.0030.01215.88
5.5.210.0120.00615.74
5.5.200.0060.00315.64
5.5.190.0040.01215.87
5.5.180.0040.01115.55
5.5.170.0030.00915.68
5.5.160.0160.00015.65
5.5.150.0000.01315.61
5.5.140.0040.00715.77
5.5.130.0070.00315.95
5.5.120.0040.00815.77
5.5.110.0110.00415.76
5.5.100.0070.00715.77
5.5.90.0050.00515.73
5.5.80.0060.00915.87
5.5.70.0060.01015.61
5.5.60.0080.00815.68
5.5.50.0070.01015.80
5.5.40.0000.01415.78
5.5.30.0060.01015.77
5.5.20.0090.00615.75
5.5.10.0090.00615.81
5.5.00.0090.00615.55
5.4.450.0120.03216.35
5.4.440.0350.02916.34
5.4.430.0210.02616.38
5.4.420.0270.01916.38
5.4.410.0250.01716.15
5.4.400.0330.01916.13
5.4.390.0190.02016.19
5.4.380.0180.03615.86
5.4.370.0220.03515.96
5.4.360.0280.02815.96
5.4.350.0310.03015.96
5.4.340.0270.02915.93
5.4.330.0040.01113.13
5.4.320.0050.02612.82
5.4.310.0060.02212.82
5.4.300.0080.01912.82
5.4.290.0050.02712.82
5.4.280.0050.02012.77
5.4.270.0040.02212.77
5.4.260.0060.02412.76
5.4.250.0050.02612.76
5.4.240.0060.02212.77
5.4.230.0040.02412.76
5.4.220.0030.02512.76
5.4.210.0060.02412.76
5.4.200.0090.01812.76
5.4.190.0060.02112.76
5.4.180.0050.02312.76
5.4.170.0070.01812.76
5.4.160.0070.02012.76
5.4.150.0090.01812.76
5.4.140.0070.02312.60
5.4.130.0030.02512.60
5.4.120.0090.01912.58
5.4.110.0090.02012.57
5.4.100.0060.02212.57
5.4.90.0070.02312.57
5.4.80.0040.02212.57
5.4.70.0060.01912.57
5.4.60.0050.02012.57
5.4.50.0060.02212.57
5.4.40.0040.02012.57
5.4.30.0100.01612.56
5.4.20.0030.02412.56
5.4.10.0070.02212.56
5.4.00.0060.02212.31
5.3.290.0090.04512.80
5.3.280.0060.04012.71
5.3.270.0070.03912.73
5.3.260.0050.04112.72
5.3.250.0030.03912.72
5.3.240.0050.03812.71
5.3.230.0060.03712.71
5.3.220.0050.04412.68
5.3.210.0040.04512.68
5.3.200.0060.03512.68
5.3.190.0060.03712.67
5.3.180.0090.03812.67
5.3.170.0060.03712.66
5.3.160.0080.03712.67
5.3.150.0050.03612.67
5.3.140.0060.04312.66
5.3.130.0060.03712.66
5.3.120.0060.04412.66
5.3.110.0060.04112.66
5.3.100.0060.03712.12
5.3.90.0070.03812.11
5.3.80.0110.03112.10
5.3.70.0100.03612.10
5.3.60.0090.03312.08
5.3.50.0090.04212.03
5.3.40.0050.03812.03
5.3.30.0040.03611.99
5.3.20.0040.03711.77
5.3.10.0080.03811.73
5.3.00.0080.03911.72
5.2.170.0060.0299.23
5.2.160.0060.0279.22
5.2.150.0070.0289.23
5.2.140.0050.0309.22
5.2.130.0030.0319.18
5.2.120.0090.0239.18
5.2.110.0080.0279.19
5.2.100.0090.0329.18
5.2.90.0030.0379.18
5.2.80.0030.0359.18
5.2.70.0100.0319.18
5.2.60.0040.0319.13
5.2.50.0070.0349.11
5.2.40.0070.0269.08
5.2.30.0090.0259.06
5.2.20.0060.0279.04
5.2.10.0040.0298.95
5.2.00.0010.0338.81
5.1.60.0050.0328.09
5.1.50.0040.0288.09
5.1.40.0030.0318.07
5.1.30.0060.0238.43
5.1.20.0060.0328.45
5.1.10.0060.0258.17
5.1.00.0050.0308.17
5.0.50.0040.0196.65
5.0.40.0020.0246.52
5.0.30.0040.0316.32
5.0.20.0040.0196.29
5.0.10.0020.0206.27
5.0.00.0010.0326.26
4.4.90.0030.0154.78
4.4.80.0030.0144.76
4.4.70.0040.0144.76
4.4.60.0040.0174.75
4.4.50.0020.0204.77
4.4.40.0030.0344.71
4.4.30.0070.0184.76
4.4.20.0020.0204.84
4.4.10.0050.0174.85
4.4.00.0030.0244.76
4.3.110.0020.0234.67
4.3.100.0030.0144.67
4.3.90.0040.0204.63
4.3.80.0010.0314.58
4.3.70.0020.0144.63
4.3.60.0030.0134.63
4.3.50.0020.0164.63
4.3.40.0040.0294.54
4.3.30.0010.0223.31
4.3.20.0010.0173.29
4.3.10.0010.0173.25
4.3.00.0000.02015.92

preferences:
47.85 ms | 401 KiB | 5 Q