3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = array( "showpassword"=>"no", "bgcolor"=>"#ffffff"); $key = json_encode($data); $data2 = "ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSEV4sFxFeaAw="; $text = base64_decode($data2); $outText = ''; for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } echo $outText; 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.0040.01118.55
8.3.50.0180.00416.38
8.3.40.0190.00319.01
8.3.30.0070.01119.02
8.3.20.0070.00720.30
8.3.10.0040.00423.53
8.3.00.0040.00419.51
8.2.180.0120.00616.86
8.2.170.0100.00722.96
8.2.160.0140.00319.07
8.2.150.0050.00324.18
8.2.140.0030.00524.66
8.2.130.0000.00819.31
8.2.120.0000.00826.35
8.2.110.0030.00722.26
8.2.100.0110.00017.97
8.2.90.0070.00417.84
8.2.80.0030.00518.04
8.2.70.0030.00518.05
8.2.60.0040.00718.22
8.2.50.0060.00318.10
8.2.40.0030.00620.55
8.2.30.0050.00319.32
8.2.20.0040.00418.13
8.2.10.0040.00418.01
8.2.00.0000.00718.04
8.1.280.0140.00325.92
8.1.270.0050.00323.99
8.1.260.0000.00826.35
8.1.250.0030.00328.09
8.1.240.0090.00023.97
8.1.230.0140.00022.73
8.1.220.0050.00320.89
8.1.210.0040.00418.77
8.1.200.0040.00417.48
8.1.190.0080.00017.36
8.1.180.0040.00418.10
8.1.170.0030.00618.91
8.1.160.0050.00218.99
8.1.150.0040.00418.84
8.1.140.0040.00419.44
8.1.130.0080.00318.83
8.1.120.0040.00417.41
8.1.110.0060.00317.35
8.1.100.0040.00417.36
8.1.90.0040.00417.29
8.1.80.0040.00417.45
8.1.70.0070.00017.46
8.1.60.0080.00017.52
8.1.50.0030.00517.47
8.1.40.0030.00617.41
8.1.30.0040.00417.56
8.1.20.0060.00317.66
8.1.10.0070.00017.48
8.1.00.0000.00817.41
8.0.300.0040.00419.77
8.0.290.0080.00016.63
8.0.280.0080.00018.37
8.0.270.0030.00317.20
8.0.260.0000.00616.80
8.0.250.0080.00017.10
8.0.240.0060.00317.03
8.0.230.0000.00717.06
8.0.220.0000.00816.95
8.0.210.0030.00316.95
8.0.200.0000.00616.93
8.0.190.0050.00217.03
8.0.180.0000.00716.90
8.0.170.0070.00017.01
8.0.160.0060.00316.99
8.0.150.0050.00216.95
8.0.140.0040.00416.91
8.0.130.0000.00813.48
8.0.120.0000.00816.95
8.0.110.0000.00716.87
8.0.100.0070.00016.92
8.0.90.0050.00216.88
8.0.80.0120.00817.00
8.0.70.0040.00416.95
8.0.60.0040.00416.86
8.0.50.0050.00216.95
8.0.30.0070.01017.18
8.0.20.0120.00917.40
8.0.10.0040.00417.21
8.0.00.0110.00616.57
7.4.330.0050.00015.55
7.4.320.0040.00416.59
7.4.300.0000.00616.50
7.4.290.0060.00616.52
7.4.280.0070.00016.63
7.4.270.0070.00016.50
7.4.260.0000.00716.48
7.4.250.0000.00716.52
7.4.240.0000.00816.54
7.4.230.0030.00316.62
7.4.220.0140.01416.45
7.4.210.0030.01216.57
7.4.200.0040.00416.41
7.4.160.0110.00916.57
7.4.150.0040.01317.40
7.4.140.0090.01117.86
7.4.130.0080.01116.48
7.4.120.0100.00916.57
7.4.110.0070.01016.38
7.4.100.0110.00816.45
7.4.90.0090.00916.48
7.4.80.0120.00419.39
7.4.70.0110.00716.66
7.4.60.0100.00616.69
7.4.50.0030.01416.62
7.4.40.0150.00316.45
7.4.30.0170.00416.68
7.4.00.0070.01014.80
7.3.330.0020.00213.18
7.3.320.0080.00013.23
7.3.310.0040.00416.34
7.3.300.0000.00816.35
7.3.290.0070.00816.38
7.3.280.0070.00916.37
7.3.270.0120.00617.40
7.3.260.0080.01016.46
7.3.250.0070.01216.44
7.3.240.0150.00616.52
7.3.230.0100.01616.57
7.3.210.0130.00316.39
7.3.200.0110.00616.38
7.3.190.0140.00316.49
7.3.180.0060.00916.45
7.3.170.0130.01016.44
7.3.160.0100.00716.50
7.2.330.0110.00716.70
7.2.320.0120.01216.81
7.2.310.0060.00916.48
7.2.300.0060.01016.59
7.2.290.0080.00916.42
7.2.60.0000.01417.03
7.2.00.0070.00719.39
7.1.200.0120.00615.67
7.1.100.0030.00918.33
7.1.70.0110.00017.20
7.1.60.0130.01035.24
7.1.50.0140.01034.89
7.1.40.0190.00634.65
7.1.30.0150.00934.54
7.1.20.0140.01134.69
7.1.10.0040.00716.56
7.1.00.0070.00416.64
7.0.200.0000.01116.95
7.0.190.0080.00316.64
7.0.180.0040.00716.42
7.0.170.0070.00416.23
7.0.160.0000.01116.32
7.0.150.0000.01116.24
7.0.140.0070.00416.39
7.0.130.0000.01116.66
7.0.120.0030.00916.47
7.0.110.0090.00316.30
7.0.100.0060.00616.40
7.0.90.0030.00916.49
7.0.80.0060.00616.27
7.0.70.0040.00816.05
7.0.60.0030.00916.09
7.0.50.0040.00816.40
7.0.40.0000.01116.39
7.0.30.0070.00616.69
7.0.20.0030.00816.35
7.0.10.0030.00716.32
7.0.00.0000.01116.42

preferences:
51.28 ms | 401 KiB | 5 Q