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))); ?>

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.01416.88
8.3.50.0070.01016.34
8.3.40.0150.00018.77
8.3.30.0040.01418.65
8.3.20.0040.00420.16
8.3.10.0090.00023.66
8.3.00.0040.00419.69
8.2.180.0120.00918.54
8.2.170.0100.00722.96
8.2.160.0080.00819.07
8.2.150.0030.00624.18
8.2.140.0050.00324.66
8.2.130.0050.00219.30
8.2.120.0000.00726.16
8.2.110.0060.00320.96
8.2.100.0060.00618.03
8.2.90.0000.00819.20
8.2.80.0000.00818.04
8.2.70.0040.00417.75
8.2.60.0040.00417.93
8.2.50.0040.00418.10
8.2.40.0000.00720.55
8.2.30.0040.00419.23
8.2.20.0050.00218.04
8.2.10.0030.00618.17
8.2.00.0000.00818.13
8.1.280.0040.01125.92
8.1.270.0050.00322.05
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.83
8.1.230.0030.00819.03
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0090.00017.35
8.1.190.0090.00017.23
8.1.180.0000.00818.10
8.1.170.0090.00018.96
8.1.160.0000.00719.02
8.1.150.0050.00218.93
8.1.140.0000.00719.48
8.1.130.0000.00718.73
8.1.120.0000.00717.35
8.1.110.0000.00817.28
8.1.100.0000.00717.41
8.1.90.0040.00417.31
8.1.80.0000.00717.35
8.1.70.0000.00717.42
8.1.60.0000.00817.51
8.1.50.0080.00017.53
8.1.40.0090.00017.38
8.1.30.0040.00417.63
8.1.20.0040.00417.70
8.1.10.0050.00217.62
8.1.00.0000.00817.52
8.0.300.0000.00718.77
8.0.290.0040.00416.75
8.0.280.0030.00318.32
8.0.270.0000.00717.23
8.0.260.0060.00016.81
8.0.250.0050.00316.96
8.0.240.0040.00417.04
8.0.230.0060.00316.98
8.0.220.0030.00316.97
8.0.210.0000.00716.89
8.0.200.0030.00516.99
8.0.190.0030.00616.93
8.0.180.0000.00717.01
8.0.170.0040.00417.05
8.0.160.0000.00716.89
8.0.150.0000.00716.77
8.0.140.0040.00416.90
8.0.130.0030.00313.35
8.0.120.0050.00216.87
8.0.110.0050.00316.93
8.0.100.0070.00016.91
8.0.90.0000.00716.76
8.0.80.0060.01016.93
8.0.70.0030.00516.79
8.0.60.0040.00416.92
8.0.50.0000.00716.96
8.0.30.0080.01116.97
8.0.20.0110.00817.40
8.0.10.0040.00417.14
8.0.00.0160.00616.71
7.4.330.0030.00315.55
7.4.320.0030.00316.38
7.4.300.0040.00416.64
7.4.290.0000.00716.60
7.4.280.0000.00816.51
7.4.270.0040.00416.60
7.4.260.0050.00216.61
7.4.250.0000.00716.47
7.4.240.0070.00016.54
7.4.230.0070.00016.41
7.4.220.0160.00716.52
7.4.210.0090.00616.51
7.4.200.0000.00716.42
7.4.160.0060.01016.49
7.4.150.0110.00817.40
7.4.140.0100.00817.86
7.4.130.0140.01116.55
7.4.120.0070.01216.53
7.4.110.0000.01816.64
7.4.100.0060.01416.58
7.4.90.0090.00916.55
7.4.80.0120.00619.39
7.4.70.0150.00916.44
7.4.60.0130.00316.42
7.4.50.0030.01016.75
7.4.40.0130.00916.32
7.4.30.0170.00716.45
7.4.00.0070.01015.11
7.3.330.0000.00513.27
7.3.320.0000.00513.29
7.3.310.0070.00016.50
7.3.300.0030.00316.48
7.3.290.0100.00316.41
7.3.280.0090.00916.41
7.3.270.0170.00017.40
7.3.260.0110.00916.67
7.3.250.0100.00616.44
7.3.240.0100.01016.63
7.3.230.0130.00416.64
7.3.210.0110.00716.61
7.3.200.0080.00816.41
7.3.190.0110.00516.48
7.3.180.0120.00316.40
7.3.170.0100.00616.45
7.3.160.0130.00316.68
7.3.120.0080.01115.13
7.3.110.0060.01214.76
7.3.100.0110.00714.89
7.3.90.0070.01015.01
7.3.80.0050.00514.97
7.3.70.0090.00314.98
7.3.60.0040.00415.02
7.3.50.0000.01714.87
7.3.40.0000.01314.92
7.3.30.0030.01014.81
7.3.20.0090.00616.66
7.3.10.0100.00416.60
7.3.00.0030.00916.67
7.2.330.0130.00316.66
7.2.320.0060.01216.78
7.2.310.0090.00616.83
7.2.300.0060.01016.51
7.2.290.0130.01016.73
7.2.250.0090.00914.82
7.2.240.0060.01214.90
7.2.230.0000.01714.85
7.2.220.0090.00615.04
7.2.210.0030.01415.22
7.2.200.0030.00915.16
7.2.190.0090.00315.10
7.2.180.0070.00714.95
7.2.170.0060.00615.05
7.2.60.0090.00316.70
7.1.330.0000.01315.88
7.1.320.0000.01715.86
7.1.310.0070.00716.18
7.1.300.0040.00815.84
7.1.290.0070.00715.64
7.1.280.0000.01115.91
7.1.270.0070.00715.78
7.1.260.0040.01115.82
7.1.200.0000.01415.89
7.1.70.0040.00917.17
7.1.60.0210.01535.24
7.1.50.0170.01834.83
7.1.40.0260.01034.65
7.1.30.0180.02134.55
7.1.20.0100.02634.73
7.1.10.0580.01016.54
7.1.00.0750.00616.63
7.0.200.0050.01116.70
7.0.190.0130.00316.56
7.0.180.0090.00916.43
7.0.170.0000.01816.22
7.0.160.0440.01714.46
7.0.150.0060.01116.52
7.0.140.0060.01316.26
7.0.130.0120.00316.59
7.0.120.0000.01716.47
7.0.110.0030.01016.32
7.0.100.2170.01314.35
7.0.90.0360.00714.50
7.0.80.0070.01016.60
7.0.70.0030.01214.47
7.0.60.0000.01716.08
7.0.50.0120.00314.74
7.0.40.0630.00914.80
7.0.30.0110.01114.65
7.0.20.0660.00414.83
7.0.10.0480.01414.58
7.0.00.0650.00414.70

preferences:
40.01 ms | 400 KiB | 5 Q