3v4l.org

run code in 300+ PHP versions simultaneously
<? function xor_encrypt() { $text = json_encode(array( "showpassword"=>"yes", "bgcolor"=>"#ffffff")); $key = "qw8J"; $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } print base64_encode(xor_encrypt()); ?>

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.0090.00916.13
8.3.50.0120.00316.56
8.3.40.0120.00618.57
8.3.30.0110.00418.57
8.3.20.0060.00920.21
8.3.10.0040.00421.83
8.3.00.0030.00719.54
8.2.180.0070.01116.50
8.2.170.0100.00722.96
8.2.160.0120.00420.49
8.2.150.0080.00624.18
8.2.140.0110.00424.66
8.2.130.0030.00520.99
8.2.120.0030.00526.35
8.2.110.0040.00419.34
8.2.100.0080.00317.97
8.2.90.0030.00519.02
8.2.80.0030.00517.97
8.2.70.0070.00417.50
8.2.60.0000.00917.90
8.2.50.0000.00818.10
8.2.40.0000.00720.55
8.2.30.0030.00620.91
8.2.20.0020.00517.80
8.2.10.0070.00017.84
8.2.00.0000.00817.90
8.1.280.0070.01025.92
8.1.270.0060.00623.97
8.1.260.0050.00226.35
8.1.250.0080.00628.09
8.1.240.0030.00623.95
8.1.230.0090.00317.42
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0060.00317.10
8.1.190.0000.00817.11
8.1.180.0040.00418.10
8.1.170.0080.00018.50
8.1.160.0000.00718.95
8.1.150.0000.00718.63
8.1.140.0030.00517.30
8.1.130.0030.00318.62
8.1.120.0000.00717.29
8.1.110.0000.00817.20
8.1.100.0040.00417.27
8.1.90.0040.00417.35
8.1.80.0070.00017.33
8.1.70.0030.00317.32
8.1.60.0040.00417.41
8.1.50.0030.00517.33
8.1.40.0040.00417.31
8.1.30.0000.00817.41
8.1.20.0000.00817.50
8.1.10.0000.00817.32
8.1.00.0000.00717.38
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0000.00618.38
8.0.270.0070.00017.18
8.0.260.0030.00316.85
8.0.250.0070.00016.69
8.0.240.0040.00416.68
8.0.230.0050.00316.69
8.0.220.0030.00316.80
8.0.210.0030.00316.75
8.0.200.0040.00416.80
8.0.190.0040.00416.69
8.0.180.0000.00816.78
8.0.170.0030.00316.74
8.0.160.0040.00416.75
8.0.150.0000.00716.75
8.0.140.0000.00716.72
8.0.130.0000.00613.32
8.0.120.0040.00416.72
8.0.110.0080.00016.71
8.0.100.0050.00216.73
8.0.90.0030.00316.76
8.0.80.0110.00516.70
8.0.70.0040.00416.81
8.0.60.0000.00716.61
8.0.50.0040.00416.79
8.0.30.0090.01016.84
8.0.20.0100.01117.40
8.0.10.0000.00716.87
8.0.00.0080.00816.76
7.4.330.0050.00015.55
7.4.320.0050.00216.36
7.4.300.0040.00416.45
7.4.290.0030.00316.47
7.4.280.0030.00316.40
7.4.270.0050.00316.45
7.4.260.0030.00313.32
7.4.250.0000.00716.32
7.4.240.0050.00216.37
7.4.230.0070.00016.36
7.4.220.0150.00316.46
7.4.210.0060.01316.50
7.4.200.0050.00216.53
7.4.160.0080.00816.44
7.4.150.0060.01217.40
7.4.140.0090.00817.86
7.4.130.0180.00416.51
7.4.120.0110.00716.43
7.4.110.0160.00016.46
7.4.100.0070.01016.21
7.4.90.0130.00416.36
7.4.80.0060.01519.39
7.4.70.0100.01016.42
7.4.60.0060.01116.57
7.4.50.0060.00616.45
7.4.40.0060.01516.13
7.4.30.0070.01416.61
7.4.00.0070.00714.63
7.3.330.0000.00613.36
7.3.320.0050.00013.15
7.3.310.0000.00716.12
7.3.300.0060.00016.21
7.3.290.0080.00716.13
7.3.280.0090.00716.13
7.3.270.0100.00717.40
7.3.260.0070.01516.33
7.3.250.0120.00816.33
7.3.240.0130.00616.46
7.3.230.0080.00916.42
7.3.210.0030.01316.43
7.3.200.0030.01316.04
7.3.190.0100.00716.42
7.3.180.0040.01516.13
7.3.170.0090.00916.46
7.3.160.0030.01216.37
7.3.00.0100.00016.39
7.2.330.0090.00916.60
7.2.320.0180.00016.51
7.2.310.0130.00716.63
7.2.300.0080.00916.55
7.2.290.0030.01416.38
7.2.130.0060.00316.83
7.2.120.0110.00016.67
7.2.110.0060.00316.90
7.2.100.0000.01116.60
7.2.90.0070.00316.99
7.2.80.0110.00416.75
7.2.70.0030.01016.88
7.2.60.0030.00816.79
7.2.50.0000.01216.84
7.2.40.0030.00716.75
7.2.30.0040.00416.67
7.2.20.0000.01316.86
7.2.10.0030.00616.72
7.2.00.0000.01216.98
7.1.250.0060.00615.86
7.1.240.0070.00315.94
7.1.230.0090.00015.89
7.1.220.0030.00615.83
7.1.210.0070.00315.66
7.1.200.0060.00515.75
7.1.190.0040.00715.69
7.1.180.0040.00815.63
7.1.170.0000.01115.83
7.1.160.0000.00915.68
7.1.150.0030.00615.62
7.1.140.0060.00315.70
7.1.130.0030.00615.75
7.1.120.0100.00315.76
7.1.110.0030.00515.52
7.1.100.0070.00315.61
7.1.90.0100.00015.70
7.1.80.0070.00715.46
7.1.70.0060.00516.53
7.1.60.0080.01025.26
7.1.50.0110.00825.28
7.1.40.0100.00925.16
7.1.30.0080.01225.02
7.1.20.0090.00925.08
7.1.10.0070.00516.20
7.1.00.0000.01216.09
7.0.330.0040.00415.16
7.0.320.0070.00315.19
7.0.310.0000.01015.42
7.0.300.0000.01015.00
7.0.290.0040.00415.33
7.0.280.0050.00515.39
7.0.270.0090.00015.13
7.0.260.0080.00315.40
7.0.250.0000.01015.56
7.0.240.0030.00615.18
7.0.230.0070.00415.40
7.0.220.0030.00715.39
7.0.210.0030.00715.57
7.0.200.0040.00716.09
7.0.190.0050.00616.07
7.0.180.0060.00515.77
7.0.170.0040.00715.96
7.0.160.0020.01115.95
7.0.150.0020.01015.90
7.0.140.0030.00915.77
7.0.130.0030.00816.01
7.0.120.0070.00716.03
7.0.110.0070.00615.96
7.0.100.0040.00915.95
7.0.90.0020.01215.83
7.0.80.0070.00715.90
7.0.70.0100.00515.77
7.0.60.0070.00715.91
7.0.50.0040.00915.80
7.0.40.0030.00814.77
7.0.30.0050.00715.16
7.0.20.0060.00614.57
7.0.10.0070.00514.57
7.0.00.0060.00814.96
5.6.380.0040.00414.68

preferences:
59.99 ms | 400 KiB | 5 Q