3v4l.org

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

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.0080.00616.25
8.3.50.0220.00821.96
8.3.40.0000.01618.73
8.3.30.0100.00318.83
8.3.20.0040.00420.37
8.3.10.0070.00023.71
8.3.00.0040.00419.13
8.2.180.0070.01418.29
8.2.170.0110.00722.96
8.2.160.0130.00020.57
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0110.00426.16
8.2.120.0050.00222.25
8.2.110.0000.00820.52
8.2.100.0080.00417.78
8.2.90.0030.00519.11
8.2.80.0080.00017.97
8.2.70.0080.00017.63
8.2.60.0000.00717.90
8.2.50.0030.00618.10
8.2.40.0050.00319.89
8.2.30.0070.00017.92
8.2.20.0060.00317.60
8.2.10.0000.00717.98
8.2.00.0060.00317.55
8.1.280.0040.01125.92
8.1.270.0090.00023.88
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00721.25
8.1.230.0110.00017.45
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.23
8.1.190.0000.00916.98
8.1.180.0040.00418.10
8.1.170.0030.00618.49
8.1.160.0030.00321.80
8.1.150.0070.00318.47
8.1.140.0040.00417.18
8.1.130.0030.00317.81
8.1.120.0000.00717.36
8.1.110.0080.00017.20
8.1.100.0030.00717.33
8.1.90.0040.00417.35
8.1.80.0040.00417.17
8.1.70.0000.00817.31
8.1.60.0030.00617.46
8.1.50.0040.00417.34
8.1.40.0000.00817.21
8.1.30.0000.00817.45
8.1.20.0060.00317.55
8.1.10.0000.00817.32
8.1.00.0020.00517.33
8.0.300.0050.00318.77
8.0.290.0070.00016.63
8.0.280.0000.00618.30
8.0.270.0000.00717.18
8.0.260.0060.00017.22
8.0.250.0030.00316.75
8.0.240.0040.00416.79
8.0.230.0050.00216.71
8.0.220.0030.00316.65
8.0.210.0000.00716.64
8.0.200.0040.00416.64
8.0.190.0090.00016.78
8.0.180.0030.00516.82
8.0.170.0080.00016.81
8.0.160.0040.00416.68
8.0.150.0000.00816.73
8.0.140.0040.00416.57
8.0.130.0000.00613.40
8.0.120.0050.00316.72
8.0.110.0050.00216.79
8.0.100.0040.00416.65
8.0.90.0040.00316.78
8.0.80.0100.00616.75
8.0.70.0040.00416.78
8.0.60.0070.00016.57
8.0.50.0040.00416.54
8.0.30.0140.00517.09
8.0.20.0120.00517.40
8.0.10.0040.00416.70
8.0.00.0120.00816.63
7.4.330.0000.00515.00
7.4.320.0060.00016.27
7.4.300.0000.00616.30
7.4.290.0030.00316.42
7.4.280.0040.00416.49
7.4.270.0080.00016.36
7.4.260.0000.00816.30
7.4.250.0040.00416.33
7.4.240.0030.00316.40
7.4.230.0000.00716.24
7.4.220.0090.00916.39
7.4.210.0070.00816.44
7.4.200.0000.00716.55
7.4.190.0040.00416.56
7.4.160.0190.00316.23
7.4.150.0060.01217.40
7.4.140.0090.00917.86
7.4.130.0130.00316.46
7.4.120.0080.01016.50
7.4.110.0100.00616.72
7.4.100.0070.01416.20
7.4.90.0140.00316.43
7.4.80.0090.01119.39
7.4.70.0170.00616.58
7.4.60.0100.00716.28
7.4.50.0000.00916.47
7.4.40.0040.00822.77
7.4.30.0060.01016.30
7.4.00.0070.01014.60
7.3.330.0030.00413.30
7.3.320.0000.00613.42
7.3.310.0050.00315.98
7.3.300.0060.00316.11
7.3.290.0070.00716.18
7.3.280.0080.00716.09
7.3.270.0070.01017.40
7.3.260.0100.00716.21
7.3.250.0110.00916.34
7.3.240.0000.01716.58
7.3.230.0030.01716.39
7.3.210.0100.00616.51
7.3.200.0050.00419.39
7.3.190.0130.01016.38
7.3.180.0080.00816.35
7.3.170.0120.00816.29
7.3.160.0120.00416.22
7.3.120.0030.01414.69
7.3.10.0060.00316.61
7.3.00.0040.00416.71
7.2.330.0060.01016.20
7.2.320.0060.01116.54
7.2.310.0070.01416.40
7.2.300.0080.00816.62
7.2.290.0030.01416.57
7.2.130.0040.00817.11
7.2.120.0030.00716.99
7.2.110.0060.00617.03
7.2.100.0080.00416.80
7.2.90.0060.00616.56
7.2.80.0000.00916.78
7.2.70.0080.00317.03
7.2.60.0050.00816.75
7.2.50.0040.00717.02
7.2.40.0100.00716.68
7.2.30.0130.00016.74
7.2.20.0050.00516.83
7.2.10.0060.00316.94
7.2.00.0020.01118.21
7.1.250.0030.00715.59
7.1.200.0000.01015.63
7.1.100.0040.01418.23
7.1.70.0140.00017.33
7.1.60.0110.01117.04
7.1.50.0080.00816.70
7.1.40.0000.01216.46
7.1.30.0040.01216.69
7.1.20.0100.00716.77
7.1.10.0100.00516.67
7.1.00.0000.00816.80
7.0.200.0060.00616.70
7.0.190.0070.00716.75
7.0.180.0000.01316.15
7.0.170.0000.01316.09
7.0.160.0030.01016.46
7.0.150.0070.00716.23
7.0.140.0090.00616.52
7.0.130.0060.00616.55
7.0.120.0040.00816.66
7.0.110.0060.01216.36
7.0.100.0070.00716.45
7.0.90.0080.00316.50
7.0.80.0000.01216.52
7.0.70.0000.01116.46
7.0.60.0040.00816.16
7.0.50.0000.01016.32
7.0.40.0050.00715.14
7.0.30.0050.00815.14
7.0.20.0080.00415.14
7.0.10.0000.00815.14
7.0.00.0050.00815.14
5.6.300.0070.04420.80
5.6.290.0000.04820.80
5.6.280.0040.04920.88
5.6.270.0000.04720.88
5.6.260.0090.03920.87
5.6.250.0030.04820.99
5.6.240.0000.04620.85
5.6.230.0090.04320.98
5.6.220.0110.03521.04
5.6.210.0030.04821.07
5.6.200.0070.04120.84
5.6.190.0070.05121.03
5.6.180.0060.03920.93
5.6.170.0040.04220.86
5.6.160.0030.04420.99
5.6.150.0140.03120.74
5.6.140.0100.03820.73
5.6.130.0070.03921.02
5.6.120.0130.03620.80
5.6.110.0030.04020.82
5.6.100.0070.03921.02
5.6.90.0030.05520.81
5.6.80.0030.04120.31
5.6.70.0030.03820.16
5.6.60.0030.04220.10
5.6.50.0040.04220.41
5.6.40.0030.04120.29
5.6.30.0060.03520.22
5.6.20.0070.03420.25
5.6.10.0040.03920.09
5.6.00.0000.04620.27
5.5.380.0070.04617.55
5.5.370.0110.03917.56
5.5.360.0040.04317.55
5.5.350.0030.08217.52
5.5.340.0060.06117.75
5.5.330.0070.04018.13
5.5.320.0060.04718.13
5.5.310.0100.04818.09
5.5.300.0000.04318.01
5.5.290.0100.03318.12
5.5.280.0100.03518.03
5.5.270.0030.04018.00
5.5.260.0130.04018.09
5.5.250.0070.04017.85
5.5.240.0000.04117.51
5.5.230.0000.04417.13
5.5.220.0060.03517.50
5.5.210.0000.04517.51
5.5.200.0000.04317.36
5.5.190.0030.04917.43
5.5.180.0070.03317.41
5.5.160.0030.04517.19
5.5.150.0030.03717.21
5.5.140.0070.04917.44
5.5.130.0030.04317.09
5.5.120.0000.04117.43
5.5.110.0000.04117.43
5.5.100.0000.04316.96
5.5.90.0030.04217.38
5.5.80.0000.04917.31
5.5.70.0030.05117.30
5.5.60.0070.03417.38
5.5.50.0000.04017.32
5.5.40.0000.04017.34
5.5.30.0060.03917.31
5.5.20.0030.04417.27
5.5.10.0000.04117.32
5.5.00.0030.03717.27
5.4.450.0110.03519.57
5.4.440.0070.04719.42
5.4.430.0030.05119.47
5.4.420.0030.04019.47
5.4.410.0000.04319.29
5.4.400.0060.03419.22
5.4.390.0030.04019.18
5.4.380.0000.03919.09
5.4.370.0030.03719.24
5.4.360.0000.04219.24
5.4.350.0070.03319.08
5.4.340.0030.03718.96
5.4.320.0070.05919.09
5.4.310.0070.07419.08
5.4.300.0030.05618.98
5.4.290.0070.03418.92
5.4.280.0000.04518.99
5.4.270.0070.03419.24
5.4.260.0030.04919.24
5.4.250.0030.03619.04
5.4.240.0030.07319.20
5.4.230.0000.04818.89
5.4.220.0060.04918.98
5.4.210.0130.03919.13
5.4.200.0000.05119.06
5.4.190.0000.04519.07
5.4.180.0030.03619.16
5.4.170.0000.04519.05
5.4.160.0000.04518.88
5.4.150.0030.04718.93
5.4.140.0030.04616.78
5.4.130.0030.03716.50
5.4.120.0000.03716.76
5.4.110.0060.03516.75
5.4.100.0100.03516.41
5.4.90.0070.04116.75
5.4.80.0030.04116.75
5.4.70.0030.03816.75
5.4.60.0030.03816.74
5.4.50.0130.02916.73
5.4.40.0000.04116.78
5.4.30.0030.03816.70
5.4.20.0070.03316.46
5.4.10.0030.03716.72
5.4.00.0030.04216.14
5.3.290.0070.03715.14
5.3.280.0090.03115.14
5.3.270.0000.04915.14
5.3.260.0070.03415.14
5.3.250.0000.04215.14
5.3.240.0000.04715.14
5.3.230.0030.03415.14
5.3.220.0110.04115.14
5.3.210.0040.04615.13
5.3.200.0040.03915.13
5.3.190.0150.02715.13
5.3.180.0050.03615.13
5.3.170.0100.03515.13
5.3.160.0350.03515.13
5.3.150.0030.04415.13
5.3.140.0070.03815.13
5.3.130.0000.04315.13
5.3.120.0000.04315.13
5.3.110.0030.04815.13
5.3.100.0000.04115.13
5.3.90.0030.03515.13
5.3.80.0000.04215.13
5.3.70.0120.03115.13
5.3.60.0000.03915.13
5.3.50.0030.04515.13
5.3.40.0030.04015.13
5.3.30.0120.03015.13
5.3.20.0040.04315.13
5.3.10.0030.03615.13
5.3.00.0040.03915.13
5.2.170.0030.04115.13
5.2.160.0040.03015.13
5.2.150.0000.03715.13
5.2.140.0000.03315.13
5.2.130.0070.02915.13
5.2.120.0070.02915.13
5.2.110.0000.03415.13
5.2.100.0000.03115.13
5.2.90.0190.03515.13
5.2.80.0110.02515.13
5.2.70.0070.03715.13
5.2.60.0030.03615.13
5.2.50.0070.02715.13
5.2.40.0060.02515.13
5.2.30.0000.03815.13
5.2.20.0060.03315.13
5.2.10.0060.02615.13
5.2.00.0000.03815.13
5.1.60.0060.02215.13
5.1.50.0040.02515.13
5.1.40.0030.03315.13
5.1.30.0030.02515.13
5.1.20.0030.02715.13
5.1.10.0000.03015.13
5.1.00.0000.02715.13
5.0.50.0030.02415.13
5.0.40.0100.03015.13
5.0.30.0060.02815.13
5.0.20.0000.02315.13
5.0.10.0060.01715.13
5.0.00.0030.03015.13
4.4.90.0000.01715.13
4.4.80.0000.02315.13
4.4.70.0000.02115.13
4.4.60.0030.01615.13
4.4.50.0040.01515.13
4.4.40.0110.01615.13
4.4.30.0000.01715.13
4.4.20.0000.02015.13
4.4.10.0090.00915.13
4.4.00.0030.02615.13
4.3.110.0040.02015.13
4.3.100.0000.01615.13
4.3.90.0100.02015.13
4.3.80.0030.02615.13
4.3.70.0000.02015.13
4.3.60.0030.01315.13
4.3.50.0060.01215.13
4.3.40.0030.02315.13
4.3.30.0000.01715.13
4.3.20.0000.02215.13
4.3.10.0030.02915.13
4.3.00.0120.01815.13

preferences:
46.47 ms | 401 KiB | 5 Q