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(json_encode($arr)); echo json_decode(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.0190.00316.50
8.3.50.0140.00316.36
8.3.40.0070.00718.64
8.3.30.0140.00318.85
8.3.20.0080.00020.39
8.3.10.0060.00323.65
8.3.00.0000.00919.80
8.2.180.0110.01118.43
8.2.170.0070.00722.96
8.2.160.0060.00919.21
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0020.00519.27
8.2.120.0070.00026.35
8.2.110.0060.00320.92
8.2.100.0110.00017.91
8.2.90.0040.00419.26
8.2.80.0040.00417.97
8.2.70.0060.00317.63
8.2.60.0080.00017.90
8.2.50.0100.00018.10
8.2.40.0000.00720.42
8.2.30.0050.00319.28
8.2.20.0000.00817.96
8.2.10.0040.00418.12
8.2.00.0030.00518.12
8.1.280.0120.00325.92
8.1.270.0060.00322.02
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0090.00023.82
8.1.230.0080.00319.01
8.1.220.0000.00817.79
8.1.210.0030.00518.77
8.1.200.0040.00417.35
8.1.190.0030.00517.23
8.1.180.0050.00318.10
8.1.170.0040.00418.96
8.1.160.0050.00218.92
8.1.150.0040.00418.78
8.1.140.0000.00719.42
8.1.130.0030.00518.82
8.1.120.0040.00417.32
8.1.110.0030.00617.35
8.1.100.0000.00817.44
8.1.90.0050.00317.48
8.1.80.0000.00817.42
8.1.70.0000.00717.38
8.1.60.0060.00317.55
8.1.50.0040.00417.52
8.1.40.0080.00017.51
8.1.30.0060.00317.64
8.1.20.0020.00517.71
8.1.10.0040.00417.54
8.1.00.0030.00517.37
8.0.300.0040.00418.77
8.0.290.0030.00516.75
8.0.280.0020.00518.46
8.0.270.0000.00717.19
8.0.260.0030.00318.45
8.0.250.0030.00316.89
8.0.240.0040.00416.95
8.0.230.0030.00516.99
8.0.220.0030.00316.88
8.0.210.0040.00416.76
8.0.200.0030.00316.92
8.0.190.0030.00616.96
8.0.180.0000.00716.88
8.0.170.0000.00816.92
8.0.160.0040.00416.95
8.0.150.0000.00716.87
8.0.140.0040.00416.77
8.0.130.0000.00613.36
8.0.120.0000.00716.87
8.0.110.0070.00016.83
8.0.100.0030.00516.67
8.0.90.0000.00816.90
8.0.80.0100.00716.88
8.0.70.0040.00416.94
8.0.60.0050.00316.88
8.0.50.0050.00316.75
8.0.30.0130.00716.99
8.0.20.0150.01417.40
8.0.10.0030.00617.07
8.0.00.0110.00616.73
7.4.330.0030.00315.55
7.4.320.0000.00616.54
7.4.300.0020.00516.59
7.4.290.0000.00716.52
7.4.280.0040.00416.39
7.4.270.0030.00316.62
7.4.260.0040.00416.51
7.4.250.0000.00716.57
7.4.240.0040.00416.60
7.4.230.0060.00016.49
7.4.220.0110.01416.70
7.4.210.0040.01116.64
7.4.200.0020.00516.66
7.4.160.0080.01016.47
7.4.150.0100.00717.40
7.4.140.0110.00617.86
7.4.130.0060.01116.46
7.4.120.0110.00816.55
7.4.110.0110.00616.42
7.4.100.0070.01316.65
7.4.90.0140.00416.45
7.4.80.0130.01019.39
7.4.70.0060.01716.73
7.4.60.0050.01416.63
7.4.50.0070.01016.42
7.4.40.0090.00916.41
7.4.30.0070.01016.48
7.4.00.0070.00915.06
7.3.330.0000.00613.11
7.3.320.0000.00613.09
7.3.310.0030.00316.14
7.3.300.0030.00316.16
7.3.290.0090.00616.23
7.3.280.0070.01016.24
7.3.270.0090.00917.40
7.3.260.0130.00716.39
7.3.250.0060.01216.48
7.3.240.0110.01116.26
7.3.230.0140.00416.30
7.3.210.0060.01016.17
7.3.200.0100.01016.59
7.3.190.0100.00716.33
7.3.180.0120.00616.52
7.3.170.0060.00916.44
7.3.160.0130.00316.30
7.3.120.0080.00914.65
7.3.110.0060.01114.72
7.3.100.0050.00914.95
7.3.90.0060.00814.75
7.3.80.0040.00914.89
7.3.70.0030.01014.74
7.3.60.0060.00714.58
7.3.50.0050.01114.81
7.3.40.0080.00514.61
7.3.30.0070.00814.69
7.3.20.0060.00816.41
7.3.10.0060.00816.50
7.3.00.0070.00916.50
7.2.330.0110.01416.48
7.2.320.0100.00716.28
7.2.310.0150.00416.54
7.2.300.0090.00916.64
7.2.290.0100.01616.59
7.2.250.0040.01414.87
7.2.240.0070.01414.82
7.2.230.0050.01014.92
7.2.220.0020.00914.84
7.2.210.0060.00814.90
7.2.200.0080.00814.79
7.2.190.0040.00815.04
7.2.180.0050.00815.06
7.2.170.0050.00714.94
7.2.60.0030.01316.83
7.2.00.0000.01319.36
7.1.330.0050.00915.63
7.1.320.0060.00615.86
7.1.310.0100.00715.49
7.1.300.0020.01015.67
7.1.290.0050.01015.44
7.1.280.0060.00515.55
7.1.270.0020.00715.73
7.1.260.0080.00515.76
7.1.200.0060.00615.60
7.1.100.0290.00717.96
7.1.70.0720.01014.98
7.1.60.0690.01033.34
7.1.50.0580.01332.84
7.1.40.0760.01932.54
7.1.30.0210.01734.14
7.1.20.0780.01434.41
7.1.10.0650.01014.64
7.1.00.0860.01214.97
7.0.200.0590.00914.65
7.0.190.0740.01014.81
7.0.180.0120.00716.23
7.0.170.0080.01216.04
7.0.160.0730.00616.39
7.0.150.0580.01214.12
7.0.140.0590.01014.34
7.0.130.0710.00816.42
7.0.120.0640.01414.66
7.0.110.0070.01116.28
7.0.100.0060.01016.39
7.0.90.0080.00816.18
7.0.80.0030.01116.21
7.0.70.0050.01316.25
7.0.60.0110.01216.13
7.0.50.0100.00816.38
7.0.40.0130.01316.23
7.0.30.0030.01416.51
7.0.20.0030.01316.29
7.0.10.0000.02316.47
7.0.00.0160.01616.51

preferences:
46.75 ms | 401 KiB | 5 Q