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; } $arr = array( "showpassword"=>"yes", "bgcolor"=>"#ffffff"); $arrd = base64_encode(xor_encrypt(json_encode($arr))); echo json_decode(xor_encrypt(base64_decode($arrd)), true); ?>

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.75
8.3.50.0100.00316.52
8.3.40.0070.01418.96
8.3.30.0070.00718.92
8.3.20.0070.00020.09
8.3.10.0110.00023.57
8.3.00.0000.00919.66
8.2.180.0120.00316.38
8.2.170.0110.01122.96
8.2.160.0100.01019.19
8.2.150.0090.00924.18
8.2.140.0000.00824.66
8.2.130.0070.00019.39
8.2.120.0020.00526.35
8.2.110.0100.00021.05
8.2.100.0070.00417.91
8.2.90.0040.00419.36
8.2.80.0050.00317.97
8.2.70.0090.00317.63
8.2.60.0080.00018.05
8.2.50.0060.00318.10
8.2.40.0000.00820.42
8.2.30.0000.00719.38
8.2.20.0050.00218.18
8.2.10.0040.00418.05
8.2.00.0040.00418.23
8.1.280.0040.01125.92
8.1.270.0030.00522.08
8.1.260.0080.00026.35
8.1.250.0070.00028.09
8.1.240.0030.00621.42
8.1.230.0080.00419.02
8.1.220.0030.00517.78
8.1.210.0030.00618.77
8.1.200.0000.00917.25
8.1.190.0050.00317.25
8.1.180.0000.00818.10
8.1.170.0040.00418.89
8.1.160.0000.00719.02
8.1.150.0040.00418.80
8.1.140.0070.00019.45
8.1.130.0000.00718.79
8.1.120.0030.00317.29
8.1.110.0040.00417.38
8.1.100.0040.00417.34
8.1.90.0030.00617.27
8.1.80.0000.00717.38
8.1.70.0000.00717.29
8.1.60.0030.00717.59
8.1.50.0000.00817.42
8.1.40.0040.00417.48
8.1.30.0000.00917.65
8.1.20.0000.00717.65
8.1.10.0080.00017.57
8.1.00.0000.00817.50
8.0.300.0000.00718.77
8.0.290.0000.00816.75
8.0.280.0000.00718.45
8.0.270.0040.00417.18
8.0.260.0030.00316.81
8.0.250.0030.00316.89
8.0.240.0040.00417.02
8.0.230.0070.00016.90
8.0.220.0030.00316.94
8.0.210.0000.00716.96
8.0.200.0000.00717.03
8.0.190.0000.00816.88
8.0.180.0000.00716.98
8.0.170.0000.00716.96
8.0.160.0000.00716.98
8.0.150.0070.00016.88
8.0.140.0040.00416.95
8.0.130.0000.00513.36
8.0.120.0000.00816.76
8.0.110.0040.00416.80
8.0.100.0000.00716.81
8.0.90.0000.00717.07
8.0.80.0090.00916.90
8.0.70.0040.00416.82
8.0.60.0020.00516.80
8.0.50.0040.00416.89
8.0.30.0080.01217.20
8.0.20.0130.00717.42
8.0.10.0000.00717.06
8.0.00.0100.00716.73
7.4.330.0030.00315.55
7.4.320.0000.00716.36
7.4.300.0030.00316.46
7.4.290.0070.00016.41
7.4.280.0000.00816.55
7.4.270.0030.00316.44
7.4.260.0040.00416.43
7.4.250.0040.00416.53
7.4.240.0030.00516.62
7.4.230.0000.00816.45
7.4.220.0060.02116.46
7.4.210.0100.00416.70
7.4.200.0000.00716.51
7.4.160.0170.00216.48
7.4.150.0170.01117.40
7.4.140.0100.01217.86
7.4.130.0170.00716.55
7.4.120.0130.00716.52
7.4.110.0120.00616.49
7.4.100.0120.00616.58
7.4.90.0030.01316.63
7.4.80.0100.00719.39
7.4.70.0090.00916.68
7.4.60.0120.00416.58
7.4.50.0060.00816.52
7.4.40.0080.01216.47
7.4.30.0090.00616.41
7.4.10.0060.01214.89
7.4.00.0070.01015.10
7.3.330.0000.00513.37
7.3.320.0050.00013.37
7.3.310.0000.00716.40
7.3.300.0000.00616.48
7.3.290.0100.00716.44
7.3.280.0100.00816.43
7.3.270.0000.01717.40
7.3.260.0040.01316.43
7.3.250.0110.00616.47
7.3.240.0060.01416.45
7.3.230.0190.00016.66
7.3.210.0060.01216.72
7.3.200.0090.00916.51
7.3.190.0060.01016.61
7.3.180.0110.01116.46
7.3.170.0090.00916.50
7.3.160.0110.00816.65
7.3.130.0070.01014.77
7.3.120.0100.00714.60
7.3.110.0090.00914.79
7.3.100.0030.01014.98
7.3.90.0130.00014.88
7.3.80.0130.00315.01
7.3.70.0090.00615.02
7.3.60.0040.00414.85
7.3.50.0080.00414.90
7.3.40.0000.01414.70
7.3.30.0000.01114.70
7.3.20.0100.00316.85
7.3.10.0060.00316.63
7.3.00.0060.00316.79
7.2.330.0100.01016.86
7.2.320.0090.01516.66
7.2.310.0120.00416.46
7.2.300.0130.00316.81
7.2.290.0120.00816.74
7.2.260.0120.00614.89
7.2.250.0110.00714.73
7.2.240.0090.00615.27
7.2.230.0060.00915.02
7.2.220.0090.00315.25
7.2.210.0100.00315.17
7.2.200.0070.01015.18
7.2.190.0090.00614.86
7.2.180.0030.00715.19
7.2.170.0070.00715.27
7.2.160.0100.00315.13
7.2.150.0090.00416.82
7.2.140.0060.00616.59
7.2.130.0070.00716.88
7.2.120.0110.00416.95
7.2.110.0070.01116.99
7.2.100.0000.01516.96
7.2.90.0090.00617.11
7.2.80.0110.00416.84
7.2.70.0070.00716.62
7.2.60.0070.00716.88
7.2.50.0080.00717.03
7.2.40.0000.01016.95
7.2.30.0090.00616.84
7.2.20.0060.00617.04
7.2.10.0040.00717.03
7.2.00.0040.01218.26
7.1.330.0040.01116.11
7.1.320.0030.00915.90
7.1.310.0130.00015.45
7.1.300.0030.00615.51
7.1.290.0040.01115.91
7.1.280.0060.00615.59
7.1.270.0000.01215.90
7.1.260.0030.00615.78
7.1.250.0030.01115.86
7.1.240.0060.00915.84
7.1.230.0060.00915.76
7.1.220.0030.00716.02
7.1.210.0070.00715.98
7.1.200.0090.00615.93
7.1.190.0130.00315.73
7.1.180.0030.01015.63
7.1.170.0070.00715.85
7.1.160.0060.00615.96
7.1.150.0090.00615.76
7.1.140.0090.00315.63
7.1.130.0030.00615.87
7.1.120.0040.01115.82
7.1.110.0000.01515.79
7.1.100.0050.00717.10
7.1.90.0030.01015.80
7.1.80.0110.00415.78
7.1.70.0040.01016.47
7.1.60.0120.01425.40
7.1.50.0170.00825.43
7.1.40.0150.00825.25
7.1.30.0160.01225.23
7.1.20.0160.01225.29
7.1.10.0070.00816.10
7.1.00.0090.00816.29
7.0.330.0030.01315.18
7.0.320.0060.00615.38
7.0.310.0030.01115.43
7.0.300.0140.00315.41
7.0.290.0110.00415.40
7.0.280.0000.01015.63
7.0.270.0070.00715.48
7.0.260.0060.00615.40
7.0.250.0090.00015.28
7.0.240.0100.00315.59
7.0.230.0080.00715.40
7.0.220.0040.00815.64
7.0.210.0030.01015.24
7.0.200.0080.00815.97
7.0.190.0070.00816.20
7.0.180.0020.01515.68
7.0.170.0110.00715.80
7.0.160.0040.01015.88
7.0.150.0030.01215.86
7.0.140.0120.00415.93
7.0.130.0430.00815.15
7.0.120.0090.00516.10
7.0.110.0040.01115.95
7.0.100.0070.00915.94
7.0.90.0080.00515.96
7.0.80.0060.01015.94
7.0.70.0350.00715.05
7.0.60.0030.01015.86
7.0.50.0080.00715.99
7.0.40.0060.01014.99
7.0.30.0020.01015.13
7.0.20.0430.01014.00
7.0.10.0460.00814.97
7.0.00.0070.00814.89
5.6.400.0000.00914.18
5.6.390.0060.01014.42
5.6.380.0030.01014.21
5.6.370.0040.00714.70
5.6.360.0070.00414.27
5.6.350.0110.00414.56
5.6.340.0000.01414.18
5.6.330.0040.01214.60
5.6.320.0040.01114.64
5.6.310.0030.01014.53
5.6.300.0060.00614.29
5.6.290.0100.00314.43
5.6.280.0060.00314.11
5.6.270.0110.00414.36
5.6.260.0000.01714.51
5.6.250.0100.00314.31
5.6.240.0070.00714.35
5.6.230.0040.00814.52
5.6.220.0060.00614.42
5.6.210.0060.00614.42
5.6.200.0100.00314.48
5.6.190.0070.01014.44
5.6.180.0140.00014.45
5.6.170.0120.00614.20
5.6.160.0090.00614.31
5.6.150.0060.00314.12
5.6.140.0100.00014.45
5.6.130.0040.01114.32
5.6.120.0040.00414.20
5.6.110.0070.01014.45
5.6.100.0090.00314.48
5.6.90.0100.00014.32
5.6.80.0000.00814.41
5.6.70.0100.00714.30
5.6.60.0090.00614.22
5.6.50.0100.00314.09
5.6.40.0040.00414.29
5.6.30.0080.00414.21
5.6.20.0000.01414.11
5.6.10.0070.00714.12
5.6.00.0030.01014.48

preferences:
52.77 ms | 401 KiB | 5 Q