3v4l.org

run code in 300+ PHP versions simultaneously
<?php function xor_encrypt() { $key = ''; $text = json_encode(array("showpassword"=>"no", "bgcolor"=>"#0000ff")); $outText = base64_decode("ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSEV4sFxFeaAw%3D"); for($i=0;$i<32;$i++) { $key .= $text[$i] ^ $outText[$i]; } return $key; } 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.0060.01316.75
8.3.50.0120.00316.50
8.3.40.0040.01118.70
8.3.30.0110.00318.80
8.3.20.0050.00220.41
8.3.10.0120.00021.90
8.3.00.0040.00419.68
8.2.180.0100.00716.37
8.2.170.0110.00722.96
8.2.160.0110.00419.25
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0040.00419.38
8.2.120.0040.00426.35
8.2.110.0000.00820.39
8.2.100.0060.00617.73
8.2.90.0070.00419.09
8.2.80.0030.00518.04
8.2.70.0040.00417.63
8.2.60.0030.00617.68
8.2.50.0040.00418.10
8.2.40.0050.00220.30
8.2.30.0060.00319.25
8.2.20.0080.00018.01
8.2.10.0000.00718.11
8.2.00.0070.00018.00
8.1.280.0140.01025.92
8.1.270.0060.00323.88
8.1.260.0070.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.88
8.1.230.0070.00419.25
8.1.220.0060.00317.74
8.1.210.0080.00018.77
8.1.200.0000.01017.22
8.1.190.0040.00417.10
8.1.180.0040.00418.10
8.1.170.0040.00418.50
8.1.160.0070.00019.04
8.1.150.0070.00320.73
8.1.140.0040.00419.44
8.1.130.0030.00318.85
8.1.120.0030.00617.46
8.1.110.0040.00417.28
8.1.100.0030.00617.31
8.1.90.0000.00817.44
8.1.80.0070.00017.34
8.1.70.0000.00717.29
8.1.60.0000.00817.56
8.1.50.0050.00317.51
8.1.40.0000.00817.46
8.1.30.0000.00817.71
8.1.20.0000.00717.70
8.1.10.0030.00617.63
8.1.00.0040.00417.40
8.0.300.0030.00618.77
8.0.290.0050.00316.63
8.0.280.0040.00418.39
8.0.270.0070.00017.15
8.0.260.0030.00316.76
8.0.250.0000.00716.97
8.0.240.0000.00716.93
8.0.230.0100.00016.88
8.0.220.0070.00016.91
8.0.210.0040.00416.90
8.0.200.0000.00616.96
8.0.190.0040.00416.95
8.0.180.0000.00716.94
8.0.170.0030.00316.89
8.0.160.0060.00316.83
8.0.150.0000.00816.86
8.0.140.0040.00416.69
8.0.130.0030.00313.24
8.0.120.0050.00316.79
8.0.110.0070.00016.77
8.0.100.0000.00816.83
8.0.90.0000.00816.86
8.0.80.0000.01716.79
8.0.70.0000.00816.62
8.0.60.0070.00016.86
8.0.50.0040.00416.74
8.0.30.0100.00917.02
8.0.20.0080.01217.40
8.0.10.0000.00716.86
8.0.00.0130.00716.55
7.4.330.0060.00015.55
7.4.320.0000.00616.54
7.4.300.0000.00616.64
7.4.290.0040.00416.65
7.4.280.0000.00916.52
7.4.270.0000.00716.58
7.4.260.0030.00316.43
7.4.250.0020.00516.46
7.4.240.0000.00716.54
7.4.230.0030.00316.35
7.4.220.0100.01716.58
7.4.210.0060.00916.64
7.4.200.0000.00716.70
7.4.160.0060.01016.54
7.4.150.0090.00917.40
7.4.140.0130.00517.86
7.4.130.0090.01116.30
7.4.120.0090.01016.61
7.4.110.0100.00716.50
7.4.100.0060.01516.61
7.4.90.0100.00716.63
7.4.80.0150.00319.39
7.4.70.0060.01616.39
7.4.60.0060.01016.38
7.4.50.0100.00716.39
7.4.40.0040.01216.27
7.4.30.0100.00716.65
7.4.00.0030.01315.10
7.3.330.0020.00213.30
7.3.320.0050.00013.12
7.3.310.0030.00316.21
7.3.300.0060.00016.32
7.3.290.0050.00916.29
7.3.280.0080.00816.29
7.3.270.0120.00617.40
7.3.260.0180.01316.41
7.3.250.0080.01016.61
7.3.240.0100.00816.58
7.3.230.0130.01116.41
7.3.210.0060.01116.50
7.3.200.0090.00816.38
7.3.190.0030.01816.37
7.3.180.0030.01216.23
7.3.170.0090.00916.45
7.3.160.0080.00816.51
7.2.330.0120.00616.84
7.2.320.0160.00916.50
7.2.310.0130.01016.83
7.2.300.0130.01016.71
7.2.290.0140.00516.84
7.2.60.0050.00916.98
7.2.00.0030.00919.45
7.1.200.0110.00015.75
7.1.100.0040.00417.79
7.1.70.0100.00317.19
7.1.60.0210.00735.23
7.1.50.0070.02334.55
7.1.40.0180.00934.32
7.1.30.0130.01634.53
7.1.20.0190.00934.46
7.1.10.0030.01016.37
7.1.00.0070.00716.63
7.0.200.0060.00616.88
7.0.190.0030.00916.67
7.0.180.0100.00316.34
7.0.170.0000.01216.46
7.0.160.0080.00416.06
7.0.150.0090.00316.20
7.0.140.0030.01016.22
7.0.130.0060.00916.48
7.0.120.0000.01316.63
7.0.110.0060.00916.09
7.0.100.0060.00616.45
7.0.90.0090.00316.34
7.0.80.0000.01216.49
7.0.70.0000.01216.41
7.0.60.0100.00316.08
7.0.50.0050.00816.16
7.0.40.0000.01316.56
7.0.30.0070.00716.47
7.0.20.0030.01016.38
7.0.10.0060.00916.54
7.0.00.0060.00916.45

preferences:
33.64 ms | 401 KiB | 5 Q