3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xor_encrypt() { $key = 'qw8J'; $text = json_encode(array("showpassword"=>"yes", "bgcolor"=>"#0000ff")); $outText = base64_decode("ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSEV4sFxFeaAw%3D"); for($i=0;$i<32;$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } echo 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.0070.01118.43
8.3.50.0100.00716.50
8.3.40.0070.00718.71
8.3.30.0090.00618.84
8.3.20.0040.00420.16
8.3.10.0070.00321.71
8.3.00.0040.00419.79
8.2.180.0110.01118.41
8.2.170.0210.00022.96
8.2.160.0180.00018.85
8.2.150.0040.00425.66
8.2.140.0000.00824.66
8.2.130.0030.00519.16
8.2.120.0040.00426.35
8.2.110.0070.00322.24
8.2.100.0060.00617.91
8.2.90.0050.00319.21
8.2.80.0040.00418.04
8.2.70.0060.00617.50
8.2.60.0040.00418.05
8.2.50.0060.00318.10
8.2.40.0040.00420.45
8.2.30.0040.00419.31
8.2.20.0050.00318.13
8.2.10.0040.00418.05
8.2.00.0040.00418.10
8.1.280.0110.01125.92
8.1.270.0040.00422.05
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0080.00023.83
8.1.230.0030.00922.25
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0040.00717.22
8.1.190.0080.00017.35
8.1.180.0000.00718.10
8.1.170.0060.00318.55
8.1.160.0000.00719.02
8.1.150.0060.00318.80
8.1.140.0000.00719.43
8.1.130.0080.00018.75
8.1.120.0000.00817.26
8.1.110.0030.00617.31
8.1.100.0050.00217.36
8.1.90.0040.00417.45
8.1.80.0000.00817.30
8.1.70.0000.00717.40
8.1.60.0070.00017.61
8.1.50.0030.00617.54
8.1.40.0060.00317.43
8.1.30.0000.00817.68
8.1.20.0030.00517.59
8.1.10.0030.00617.45
8.1.00.0030.00617.40
8.0.300.0080.00018.77
8.0.290.0000.00716.75
8.0.280.0030.00318.46
8.0.270.0030.00317.32
8.0.260.0070.00016.88
8.0.250.0000.00717.00
8.0.240.0080.00016.85
8.0.230.0030.00716.95
8.0.220.0000.00716.95
8.0.210.0030.00316.89
8.0.200.0060.00016.85
8.0.190.0040.00416.85
8.0.180.0020.00516.86
8.0.170.0070.00016.95
8.0.160.0050.00316.95
8.0.150.0070.00016.80
8.0.140.0050.00316.85
8.0.130.0030.00313.34
8.0.120.0000.00716.85
8.0.110.0040.00416.79
8.0.100.0070.00016.86
8.0.90.0040.00416.95
8.0.80.0150.00316.95
8.0.70.0000.00816.96
8.0.60.0050.00216.79
8.0.50.0000.00716.88
8.0.30.0120.00417.22
8.0.20.0130.00617.40
8.0.10.0000.00817.07
8.0.00.0070.01116.91
7.4.330.0030.00315.55
7.4.320.0030.00316.52
7.4.300.0000.00616.56
7.4.290.0040.00416.48
7.4.280.0000.00816.43
7.4.270.0070.00016.63
7.4.260.0000.00816.67
7.4.250.0050.00216.57
7.4.240.0000.00716.55
7.4.230.0070.00016.64
7.4.220.0060.01216.54
7.4.210.0030.01716.70
7.4.200.0050.00316.67
7.4.160.0060.01016.46
7.4.150.0120.00617.40
7.4.140.0130.00817.86
7.4.130.0210.00316.63
7.4.120.0090.01116.62
7.4.110.0070.01016.65
7.4.100.0120.00816.54
7.4.90.0060.01116.65
7.4.80.0040.01519.39
7.4.70.0080.00816.57
7.4.60.0170.00016.54
7.4.50.0060.00916.46
7.4.40.0120.00916.66
7.4.30.0100.00716.70
7.4.00.0080.00915.06
7.3.330.0050.00013.20
7.3.320.0000.00513.23
7.3.310.0000.00716.39
7.3.300.0030.00316.21
7.3.290.0060.00916.33
7.3.280.0070.00816.34
7.3.270.0100.00717.40
7.3.260.0080.00916.39
7.3.250.0100.00816.51
7.3.240.0120.00916.63
7.3.230.0100.01016.60
7.3.210.0000.01716.47
7.3.200.0120.00416.70
7.3.190.0040.01216.59
7.3.180.0130.00416.44
7.3.170.0090.00616.59
7.3.160.0000.01516.46
7.3.120.0070.01015.14
7.3.110.0000.01315.11
7.3.100.0070.00714.89
7.3.90.0000.01114.50
7.3.80.0060.01014.63
7.3.70.0070.00714.49
7.3.60.0080.00814.89
7.3.50.0060.00914.64
7.3.40.0090.00614.96
7.3.30.0100.00614.65
7.3.20.0040.00816.46
7.3.10.0040.01016.62
7.3.00.0080.00516.63
7.2.330.0060.01316.59
7.2.320.0090.00916.76
7.2.310.0120.00616.48
7.2.300.0100.00716.64
7.2.290.0090.00916.92
7.2.250.0040.00814.83
7.2.240.0040.01214.87
7.2.230.0030.00915.32
7.2.220.0000.01215.09
7.2.210.0080.01115.25
7.2.200.0030.01415.00
7.2.190.0000.01215.13
7.2.180.0040.01215.09
7.2.170.0030.00714.95
7.2.130.0070.00716.89
7.2.120.0040.01216.77
7.2.110.0100.00316.98
7.2.100.0030.01016.72
7.2.90.0000.00916.75
7.2.80.0070.00616.92
7.2.70.0030.01016.90
7.2.60.0030.00816.94
7.2.50.0080.00417.01
7.2.40.0100.00316.98
7.2.30.0030.01217.07
7.2.20.0030.01217.00
7.2.10.0030.01216.91
7.2.00.0080.00418.21
7.1.330.0040.01115.80
7.1.320.0070.00315.63
7.1.310.0090.00615.51
7.1.300.0000.01415.82
7.1.290.0060.00615.72
7.1.280.0000.01515.41
7.1.270.0070.00715.91
7.1.260.0030.01015.85
7.1.250.0060.00315.81
7.1.200.0190.00015.55
7.1.100.0100.01018.09
7.1.70.0080.01217.38
7.1.60.0210.01835.15
7.1.50.0220.00634.69
7.1.40.0150.01834.17
7.1.30.0150.01534.27
7.1.20.0140.01434.61
7.1.10.0030.01216.57
7.1.00.0120.00916.63
7.0.200.0050.01016.71
7.0.190.0070.00716.48
7.0.180.0080.00816.35
7.0.170.0070.00716.37
7.0.160.0070.00716.52
7.0.150.0070.00716.50
7.0.140.0030.01216.27
7.0.130.0090.00916.63
7.0.120.0070.00716.63
7.0.110.0070.01016.43
7.0.100.0040.01116.60
7.0.90.0070.01016.30
7.0.80.0090.00616.49
7.0.70.0030.01016.58
7.0.60.0070.00716.12
7.0.50.0030.01016.53
7.0.40.0080.00516.56
7.0.30.0060.00616.41
7.0.20.0040.01116.59
7.0.10.0060.00916.35
7.0.00.0080.00516.48

preferences:
41.61 ms | 400 KiB | 5 Q