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_encode(json_encode($arr))); echo json_decode(xor_encode(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.0130.01018.55
8.3.50.0100.00716.59
8.3.40.0060.00918.66
8.3.30.0030.01218.71
8.3.20.0070.00020.33
8.3.10.0030.00723.49
8.3.00.0070.00319.56
8.2.180.0060.00916.88
8.2.170.0130.00322.96
8.2.160.0120.00619.03
8.2.150.0120.00624.18
8.2.140.0050.00324.66
8.2.130.0000.00719.21
8.2.120.0040.00426.35
8.2.110.0060.01322.29
8.2.100.0040.00817.72
8.2.90.0060.00319.14
8.2.80.0030.00517.97
8.2.70.0040.00417.63
8.2.60.0080.00017.93
8.2.50.0030.00618.10
8.2.40.0000.00720.55
8.2.30.0000.00819.17
8.2.20.0040.00417.95
8.2.10.0070.00017.98
8.2.00.0000.00718.11
8.1.280.0100.00325.92
8.1.270.0000.00822.14
8.1.260.0070.00026.35
8.1.250.0030.00628.09
8.1.240.0050.00520.89
8.1.230.0040.00819.15
8.1.220.0000.00817.74
8.1.210.0050.00318.77
8.1.200.0000.01017.23
8.1.190.0030.00517.35
8.1.180.0040.00418.10
8.1.170.0000.00718.91
8.1.160.0040.00419.05
8.1.150.0000.00818.79
8.1.140.0080.00019.48
8.1.130.0040.00418.70
8.1.120.0040.00417.39
8.1.110.0070.00017.35
8.1.100.0000.00717.41
8.1.90.0000.00817.29
8.1.80.0000.00717.39
8.1.70.0040.00417.38
8.1.60.0070.00417.46
8.1.50.0030.00517.41
8.1.40.0030.00617.49
8.1.30.0030.00517.61
8.1.20.0000.00717.61
8.1.10.0020.00517.59
8.1.00.0050.00217.49
8.0.300.0070.00020.09
8.0.290.0050.00316.63
8.0.280.0000.00818.33
8.0.270.0000.00717.24
8.0.260.0000.00616.75
8.0.250.0000.00716.96
8.0.240.0070.00016.98
8.0.230.0000.00716.85
8.0.220.0030.00316.82
8.0.210.0030.00316.93
8.0.200.0000.00716.90
8.0.190.0090.00016.94
8.0.180.0070.00016.94
8.0.170.0030.00316.92
8.0.160.0000.00716.93
8.0.150.0050.00316.84
8.0.140.0070.00016.74
8.0.130.0000.00513.30
8.0.120.0000.00916.84
8.0.110.0000.00716.89
8.0.100.0040.00416.83
8.0.90.0000.00716.78
8.0.80.0080.00816.94
8.0.70.0070.00016.90
8.0.60.0000.00716.95
8.0.50.0070.00016.75
8.0.30.0080.01217.08
8.0.20.0120.00817.40
8.0.10.0030.00516.82
8.0.00.0070.01016.96
7.4.330.0000.00715.55
7.4.320.0060.00016.46
7.4.300.0000.00616.37
7.4.290.0070.00016.51
7.4.280.0000.00716.58
7.4.270.0070.00016.51
7.4.260.0000.00716.59
7.4.250.0030.00316.56
7.4.240.0080.00016.50
7.4.230.0070.00016.68
7.4.220.0120.00816.63
7.4.210.0040.01516.61
7.4.200.0040.00416.41
7.4.160.0070.01116.48
7.4.150.0160.00317.40
7.4.140.0130.00517.86
7.4.130.0030.01316.50
7.4.120.0130.00816.47
7.4.110.0130.00316.55
7.4.100.0110.00816.52
7.4.90.0060.01516.46
7.4.80.0090.01819.39
7.4.70.0150.00916.55
7.4.60.0070.01016.56
7.4.50.0000.01816.42
7.4.40.0090.00916.36
7.4.30.0090.00916.44
7.4.10.0030.01315.05
7.4.00.0090.00614.94
7.3.330.0000.00513.30
7.3.320.0030.00313.28
7.3.310.0000.00716.35
7.3.300.0000.00716.28
7.3.290.0070.01016.27
7.3.280.0080.01116.31
7.3.270.0090.00917.40
7.3.260.0110.00716.35
7.3.250.0110.00616.32
7.3.240.0130.00616.56
7.3.230.0100.00716.32
7.3.210.0130.00316.38
7.3.200.0070.01116.62
7.3.190.0030.01416.59
7.3.180.0100.00716.41
7.3.170.0090.00616.45
7.3.160.0110.00516.52
7.3.130.0120.00614.77
7.3.120.0050.01314.88
7.3.110.0040.01514.69
7.3.100.0050.01114.59
7.3.90.0090.00414.90
7.3.80.0060.00614.80
7.3.70.0040.00914.58
7.3.60.0060.00714.76
7.3.50.0050.00814.75
7.3.40.0050.00514.73
7.3.30.0050.00714.77
7.3.20.0040.00916.65
7.3.10.0060.00616.60
7.3.00.0090.00316.50
7.2.330.0130.00416.48
7.2.320.0120.00616.32
7.2.310.0060.01116.66
7.2.300.0170.00016.26
7.2.290.0090.00916.29
7.2.260.0070.01014.36
7.2.250.0050.01114.91
7.2.240.0070.01014.89
7.2.230.0030.01014.93
7.2.220.0030.01114.78
7.2.210.0050.01014.74
7.2.200.0040.01314.77
7.2.190.0060.00714.94
7.2.180.0030.00714.88
7.2.170.0030.00814.71
7.2.160.0030.01314.61
7.2.150.0100.00316.82
7.2.140.0030.00716.52
7.2.130.0030.00816.77
7.2.120.0100.00316.73
7.2.110.0000.00916.72
7.2.100.0030.00916.52
7.2.90.0000.00916.81
7.2.80.0030.01016.63
7.2.70.0070.00716.62
7.2.60.0030.01216.85
7.2.50.0060.00916.57
7.2.40.0070.00416.80
7.2.30.0030.00716.88
7.2.20.0070.01116.54
7.2.10.0060.00916.73
7.2.00.0100.00316.78
7.1.330.0060.00615.70
7.1.320.0120.00215.61
7.1.310.0080.00415.64
7.1.300.0070.00615.43
7.1.290.0060.00315.61
7.1.280.0050.00815.50
7.1.270.0070.00515.53
7.1.260.0030.01015.70
7.1.250.0070.00715.62
7.1.240.0060.00915.29
7.1.230.0050.00315.70
7.1.220.0060.00615.53
7.1.210.0000.00815.51
7.1.200.0070.00715.60
7.1.190.0060.00615.63
7.1.180.0030.01015.18
7.1.170.0070.00715.57
7.1.160.0070.00715.26
7.1.150.0040.00715.46
7.1.140.0110.00315.57
7.1.130.0040.00415.66
7.1.120.0040.00815.52
7.1.110.0030.01015.57
7.1.100.0000.01415.41
7.1.90.0070.00715.63
7.1.80.0000.01515.71
7.1.70.0050.00816.06
7.1.60.0160.01125.25
7.1.50.0130.01325.08
7.1.40.0130.01324.93
7.1.30.0100.01224.89
7.1.20.0140.01124.98
7.1.10.0060.00716.00
7.1.00.0070.01315.92
7.0.330.0030.00915.31
7.0.320.0140.00015.07
7.0.310.0000.01015.21
7.0.300.0000.00815.01
7.0.290.0060.00615.23
7.0.280.0000.01415.37
7.0.270.0060.00615.27
7.0.260.0000.00815.20
7.0.250.0120.00314.97
7.0.240.0040.00815.27
7.0.230.0040.00715.20
7.0.220.0000.01115.36
7.0.210.0030.01015.30
7.0.200.0030.01316.09
7.0.190.0030.01016.01
7.0.180.0050.01015.70
7.0.170.0030.01015.56
7.0.160.0120.00315.69
7.0.150.0080.00815.69
7.0.140.0040.01415.72
7.0.130.0030.01015.84
7.0.120.0020.01115.77
7.0.110.0040.01015.81
7.0.100.0060.00615.85
7.0.90.0070.00915.88
7.0.80.0050.01215.72
7.0.70.0090.00915.65
7.0.60.0080.00615.60
7.0.50.0060.01015.88
7.0.40.0080.00714.77
7.0.30.0020.01314.78
7.0.20.0040.00814.82
7.0.10.0100.00814.77
7.0.00.0060.00814.89
5.6.400.0040.00414.09
5.6.390.0110.00414.31
5.6.380.0050.00813.80
5.6.370.0070.00714.29
5.6.360.0000.00914.02
5.6.350.0070.00714.30
5.6.340.0080.00014.19
5.6.330.0000.01114.45
5.6.320.0090.00914.14
5.6.310.0040.00814.26
5.6.300.0060.00614.18
5.6.290.0070.01014.04
5.6.280.0030.00714.18
5.6.270.0030.00914.48
5.6.260.0030.00614.21
5.6.250.0060.00314.13
5.6.240.0000.01614.20
5.6.230.0070.00714.51
5.6.220.0070.01014.28
5.6.210.0040.01114.25
5.6.200.0070.00714.16
5.6.190.0040.01114.34
5.6.180.0040.00713.97
5.6.170.0060.01214.43
5.6.160.0130.00314.20
5.6.150.0040.00414.25
5.6.140.0030.00614.05
5.6.130.0030.01314.20
5.6.120.0000.01714.13
5.6.110.0040.01114.38
5.6.100.0080.00814.04
5.6.90.0090.00614.19
5.6.80.0040.01114.20
5.6.70.0080.00314.02
5.6.60.0100.00014.02
5.6.50.0060.00914.12
5.6.40.0070.00714.13
5.6.30.0070.00713.95
5.6.20.0030.01214.02
5.6.10.0000.01214.20
5.6.00.0140.00014.29

preferences:
63.24 ms | 400 KiB | 5 Q