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), 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.0160.00016.75
8.3.50.0130.00316.25
8.3.40.0070.00718.55
8.3.30.0080.00818.54
8.3.20.0040.00420.01
8.3.10.0000.00923.60
8.3.00.0080.00019.56
8.2.180.0100.01018.16
8.2.170.0070.00722.96
8.2.160.0070.01519.09
8.2.150.0070.00024.18
8.2.140.0000.00824.66
8.2.130.0020.00519.32
8.2.120.0080.00026.35
8.2.110.0060.00320.98
8.2.100.0080.00317.84
8.2.90.0040.00419.26
8.2.80.0040.00417.97
8.2.70.0080.00417.50
8.2.60.0040.00417.93
8.2.50.0060.00318.10
8.2.40.0040.00420.59
8.2.30.0080.00019.17
8.2.20.0070.00017.99
8.2.10.0080.00017.94
8.2.00.0030.00618.07
8.1.280.0140.00725.92
8.1.270.0070.00022.23
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0000.00923.80
8.1.230.0080.00319.08
8.1.220.0070.00017.79
8.1.210.0000.00818.77
8.1.200.0040.00717.23
8.1.190.0000.00817.23
8.1.180.0070.00018.10
8.1.170.0080.00018.96
8.1.160.0070.00018.89
8.1.150.0040.00418.89
8.1.140.0080.00019.63
8.1.130.0030.00318.83
8.1.120.0000.00717.30
8.1.110.0070.00017.25
8.1.100.0000.00717.39
8.1.90.0000.00817.31
8.1.80.0000.00717.41
8.1.70.0040.00417.28
8.1.60.0080.00417.44
8.1.50.0040.00417.46
8.1.40.0000.00817.41
8.1.30.0080.00017.52
8.1.20.0040.00417.64
8.1.10.0060.00317.50
8.1.00.0040.00417.36
8.0.300.0000.00718.77
8.0.290.0080.00016.75
8.0.280.0000.00818.44
8.0.270.0030.00517.27
8.0.260.0060.00016.95
8.0.250.0030.00316.91
8.0.240.0040.00417.01
8.0.230.0000.00716.91
8.0.220.0000.00716.82
8.0.210.0000.00716.92
8.0.200.0000.00616.95
8.0.190.0050.00316.87
8.0.180.0040.00416.98
8.0.170.0050.00316.95
8.0.160.0050.00316.83
8.0.150.0040.00416.80
8.0.140.0000.00816.86
8.0.130.0030.00313.29
8.0.120.0030.00516.88
8.0.110.0030.00316.92
8.0.100.0050.00316.85
8.0.90.0000.00716.71
8.0.80.0070.00716.78
8.0.70.0060.00316.74
8.0.60.0080.00016.86
8.0.50.0050.00316.77
8.0.30.0150.00417.01
8.0.20.0110.01017.40
8.0.10.0040.00416.98
8.0.00.0110.01016.64
7.4.330.0030.00315.55
7.4.320.0000.00616.49
7.4.300.0030.00316.34
7.4.290.0040.00416.45
7.4.280.0030.00616.45
7.4.270.0030.00316.53
7.4.260.0030.00316.53
7.4.250.0000.00716.46
7.4.240.0040.00416.46
7.4.230.0030.00316.43
7.4.220.0090.00916.57
7.4.210.0090.00616.41
7.4.200.0040.00416.57
7.4.160.0060.01016.34
7.4.150.0120.00617.40
7.4.140.0080.01017.86
7.4.130.0080.01416.52
7.4.120.0130.01016.52
7.4.110.0110.00616.38
7.4.100.0150.00316.30
7.4.90.0100.00716.48
7.4.80.0130.00719.39
7.4.70.0090.01216.33
7.4.60.0120.00416.55
7.4.50.0090.00616.36
7.4.40.0060.01616.61
7.4.30.0040.01216.38
7.4.10.0070.01215.11
7.4.00.0100.00514.90
7.3.330.0060.00013.07
7.3.320.0050.00013.22
7.3.310.0030.00316.11
7.3.300.0000.00716.29
7.3.290.0030.01116.19
7.3.280.0060.01116.24
7.3.270.0060.01217.40
7.3.260.0080.01116.34
7.3.250.0080.00916.43
7.3.240.0110.00816.28
7.3.230.0070.01016.18
7.3.210.0230.00516.43
7.3.200.0110.00616.52
7.3.190.0130.00316.45
7.3.180.0040.01516.61
7.3.170.0080.00816.43
7.3.160.0030.01316.40
7.3.130.0060.01114.79
7.3.120.0080.01114.73
7.3.110.0050.01114.90
7.3.100.0070.00714.61
7.3.90.0090.00514.89
7.3.80.0040.00814.90
7.3.70.0070.00914.73
7.3.60.0060.00814.56
7.3.50.0040.00814.74
7.3.40.0050.00914.69
7.3.30.0050.00914.67
7.3.20.0040.00716.57
7.3.10.0050.00616.64
7.3.00.0060.00816.61
7.2.330.0070.01416.67
7.2.320.0060.01516.31
7.2.310.0030.01316.45
7.2.300.0130.00316.42
7.2.290.0030.01716.48
7.2.260.0070.01115.01
7.2.250.0120.00415.09
7.2.240.0070.00814.93
7.2.230.0090.00715.08
7.2.220.0090.00814.99
7.2.210.0040.00914.94
7.2.200.0040.00914.93
7.2.190.0090.00715.01
7.2.180.0040.00914.90
7.2.170.0060.01015.03
7.2.160.0090.00414.93
7.2.150.0010.01416.82
7.2.140.0080.00816.86
7.2.130.0050.00916.91
7.2.120.0090.00716.77
7.2.110.0080.00716.84
7.2.100.0080.00616.90
7.2.90.0090.00716.88
7.2.80.0080.00916.77
7.2.70.0050.01116.93
7.2.60.0090.00516.75
7.2.50.0060.00816.82
7.2.40.0060.00716.76
7.2.30.0100.00316.85
7.2.20.0050.01016.88
7.2.10.0080.00616.92
7.2.00.0070.00817.41
7.1.330.0050.01015.77
7.1.320.0070.00815.71
7.1.310.0050.00815.76
7.1.300.0070.00615.82
7.1.290.0070.00415.83
7.1.280.0070.00815.57
7.1.270.0090.00615.74
7.1.260.0060.00915.76
7.1.250.0070.00615.77
7.1.240.0100.00515.81
7.1.230.0060.00615.55
7.1.220.0070.00815.61
7.1.210.0080.00815.69
7.1.200.0040.01215.72
7.1.190.0030.01115.78
7.1.180.0050.00915.70
7.1.170.0100.00315.64
7.1.160.0040.00915.73
7.1.150.0040.00915.63
7.1.140.0090.00315.71
7.1.130.0050.00915.77
7.1.120.0020.01115.47
7.1.110.0050.00815.92
7.1.100.0050.00916.60
7.1.90.0050.01015.80
7.1.80.0040.00915.64
7.1.70.0050.00916.22
7.1.60.0090.01122.20
7.1.50.0140.00822.03
7.1.40.0100.01221.94
7.1.30.0080.01121.93
7.1.20.0090.01121.89
7.1.10.0050.00915.97
7.1.00.0070.01115.95
7.0.330.0090.00515.37
7.0.320.0070.00715.29
7.0.310.0050.00915.40
7.0.300.0050.00715.37
7.0.290.0000.01215.36
7.0.280.0050.00715.21
7.0.270.0020.01215.15
7.0.260.0070.00915.31
7.0.250.0080.00615.51
7.0.240.0050.00515.41
7.0.230.0050.01015.32
7.0.220.0050.00915.31
7.0.210.0030.01215.31
7.0.200.0090.00815.86
7.0.190.0040.00715.88
7.0.180.0080.00715.50
7.0.170.0070.00615.60
7.0.160.0040.01015.57
7.0.150.0080.00515.67
7.0.140.0080.00515.61
7.0.130.0040.00715.65
7.0.120.0020.01215.74
7.0.110.0050.01015.69
7.0.100.0070.00815.65
7.0.90.0030.01015.60
7.0.80.0050.01015.72
7.0.70.0130.01115.75
7.0.60.0230.01015.54
7.0.50.0070.00715.67
7.0.40.0060.00814.33
7.0.30.0080.00514.26
7.0.20.0170.00613.82
7.0.10.0210.00814.46
7.0.00.0060.00814.22
5.6.400.0070.00514.34
5.6.390.0050.01014.47
5.6.380.0020.01014.24
5.6.370.0070.00914.47
5.6.360.0080.00514.49
5.6.350.0070.00414.29
5.6.340.0070.00614.36
5.6.330.0060.00914.26
5.6.320.0050.01014.17
5.6.310.0030.01014.54
5.6.300.0030.00814.31
5.6.290.0030.00814.35
5.6.280.0040.01114.04
5.6.270.0100.00314.35
5.6.260.0110.00614.27
5.6.250.0080.00414.27
5.6.240.0030.01214.40
5.6.230.0080.00714.29
5.6.220.0070.00514.26
5.6.210.0030.01114.36
5.6.200.0090.00314.36
5.6.190.0020.01314.04
5.6.180.0050.01114.30
5.6.170.0070.00714.27
5.6.160.0020.01014.19
5.6.150.0070.00914.14
5.6.140.0030.01014.18
5.6.130.0000.01214.25
5.6.120.0040.00614.31
5.6.110.0060.00714.39
5.6.100.0050.00414.29
5.6.90.0000.01314.39
5.6.80.0030.01014.26
5.6.70.0070.00714.17
5.6.60.0050.00914.04
5.6.50.0070.00414.14
5.6.40.0050.00614.29
5.6.30.0090.00314.34
5.6.20.0100.00114.36
5.6.10.0050.00914.30
5.6.00.0070.00514.18

preferences:
50.71 ms | 401 KiB | 5 Q