3v4l.org

run code in 300+ PHP versions simultaneously
<?php function decrypt ($str) { if(preg_match('%^[a-zA-Z0-9/+]*={0,2}$%',$str)) { $str = base64_decode($str); if ($str != "" && $str != null && $str != false) { $decStr = ""; for ($i=0; $i < strlen($str); $i+=3) { $array[$i/3] = substr($str,$i,3); } foreach($array as $s) { $a = $s^192; $decStr .= chr($a); } return $decStr; } return false; } return false; } echo decrypt("MTI5MTY0MTczMTY5MTc0"); ?> <?php function encrypt($str) { if(preg_match('%[a-zA-Z0-9/+]*={0,2}$%',$str)) { if($str != "" && $str != null && $str != false) { $encStr=""; for($i=0;$i<strlen($str);$i+=1) { $a=$str[$i]^64; $encStr .=chr('MT'); $encStr .=chr($a); } $encStr=base64_encode($encStr); return $encStr; } return false; } return false; } echo encrypt("Admin"); ?>

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.70.0070.01418.55
8.3.60.0060.00917.25
8.3.50.0140.00522.02
8.3.40.0090.00619.04
8.3.30.0040.01119.12
8.3.20.0070.01120.15
8.3.10.0040.00423.62
8.3.00.0050.00320.69
8.2.190.0000.01416.75
8.2.180.0080.00816.63
8.2.170.0090.00622.96
8.2.160.0000.01322.13
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0070.00022.25
8.2.110.0060.00322.26
8.2.100.0080.00417.84
8.2.90.0040.00419.21
8.2.80.0060.00318.05
8.2.70.0040.00417.99
8.2.60.0080.00018.04
8.2.50.0090.00018.07
8.2.40.0000.00917.97
8.2.30.0080.00018.07
8.2.20.0000.00818.04
8.2.10.0040.00417.89
8.2.00.0040.00418.00
8.1.280.0120.00625.92
8.1.270.0030.00622.24
8.1.260.0030.00626.35
8.1.250.0020.00528.09
8.1.240.0000.00823.91
8.1.230.0080.00419.16
8.1.220.0060.00317.91
8.1.210.0040.00418.77
8.1.200.0060.00317.50
8.1.190.0050.00317.64
8.1.180.0030.00618.10
8.1.170.0050.00318.89
8.1.160.0030.00522.10
8.1.150.0000.00818.77
8.1.140.0050.00517.56
8.1.130.0000.00717.89
8.1.120.0040.00417.59
8.1.110.0000.00717.65
8.1.100.0000.00717.64
8.1.90.0030.00617.55
8.1.80.0040.00417.69
8.1.70.0030.00317.63
8.1.60.0000.00717.80
8.1.50.0000.00817.59
8.1.40.0030.00617.68
8.1.30.0000.00817.85
8.1.20.0030.00517.79
8.1.10.0080.00017.72
8.1.00.0020.00517.73
8.0.300.0040.00418.77
8.0.290.0050.00217.18
8.0.280.0020.00518.40
8.0.270.0070.00017.33
8.0.260.0030.00517.13
8.0.250.0000.00717.19
8.0.240.0060.00317.20
8.0.230.0070.00017.20
8.0.220.0070.00016.98
8.0.210.0070.00017.04
8.0.200.0000.00717.20
8.0.190.0000.00817.14
8.0.180.0040.00417.11
8.0.170.0040.00417.16
8.0.160.0070.00017.24
8.0.150.0000.01117.04
8.0.140.0070.00017.14
8.0.130.0030.00313.55
8.0.120.0000.00817.01
8.0.110.0000.00717.05
8.0.100.0000.00816.96
8.0.90.0040.00417.12
8.0.80.0000.01517.14
8.0.70.0040.00417.18
8.0.60.0000.00717.01
8.0.50.0000.00717.19
8.0.30.0130.00617.36
8.0.20.0150.00617.49
8.0.10.0050.00317.16
8.0.00.0120.00617.15
7.4.330.0000.00515.18
7.4.320.0000.00716.68
7.4.300.0030.00316.83
7.4.290.0000.00716.77
7.4.280.0000.00816.86
7.4.270.0020.00516.85
7.4.260.0030.00516.77
7.4.250.0000.00716.80
7.4.240.0060.00116.86
7.4.230.0040.00416.68
7.4.220.0110.00716.80
7.4.210.0070.00816.79
7.4.200.0040.00416.88
7.4.190.0030.00316.82
7.4.160.0100.00616.87
7.4.150.0160.00317.40
7.4.140.0050.01317.86
7.4.130.0110.00816.73
7.4.120.0090.01016.79
7.4.110.0100.01316.85
7.4.100.0120.01216.83
7.4.90.0150.00417.09
7.4.80.0080.01116.54
7.4.70.0070.01017.00
7.4.60.0060.01216.73
7.4.50.0000.00816.83
7.4.40.0040.01322.77
7.4.30.0110.01116.66
7.4.00.0060.01215.34
7.3.330.0060.00013.47
7.3.320.0000.00613.60
7.3.310.0030.00516.57
7.3.300.0030.00316.66
7.3.290.0120.00416.62
7.3.280.0110.00616.59
7.3.270.0150.00317.40
7.3.260.0170.00016.73
7.3.250.0110.00516.63
7.3.240.0040.01616.55
7.3.230.0060.01016.81
7.3.210.0140.00916.76
7.3.200.0040.01319.39
7.3.190.0090.00916.53
7.3.180.0060.01016.61
7.3.170.0000.01516.82
7.3.160.0070.01016.66
7.3.120.0070.01114.87
7.3.110.0120.00415.19
7.3.100.0090.00615.05
7.3.90.0000.01315.27
7.3.80.0030.01315.10
7.3.70.0000.01514.94
7.3.60.0030.01215.16
7.3.50.0100.00315.05
7.3.40.0060.00715.07
7.3.30.0070.00715.23
7.3.20.0000.01516.92
7.3.10.0030.00716.95
7.3.00.0000.01116.77
7.2.330.0030.01416.84
7.2.320.0000.01716.92
7.2.310.0030.01217.01
7.2.300.0100.00716.82
7.2.290.0080.00916.93
7.2.250.0120.00615.38
7.2.240.0070.01015.53
7.2.230.0070.00715.52
7.2.220.0060.01015.30
7.2.210.0070.00315.37
7.2.200.0060.00615.11
7.2.190.0030.00915.33
7.2.180.0090.00615.25
7.2.170.0030.00915.37
7.2.160.0000.01414.96
7.2.150.0030.01417.20
7.2.140.0030.01016.90
7.2.130.0070.01117.16
7.2.120.0030.01317.20
7.2.110.0080.00316.99
7.2.100.0040.01217.28
7.2.90.0100.00617.25
7.2.80.0040.01116.96
7.2.70.0120.00417.22
7.2.60.0070.00817.16
7.2.50.0100.00616.79
7.2.40.0090.00617.26
7.2.30.0070.00617.00
7.2.20.0110.00017.01
7.2.10.0060.00917.17
7.2.00.0030.01018.46
7.1.330.0030.01015.96
7.1.320.0130.00316.24
7.1.310.0100.00315.68
7.1.300.0070.00715.84
7.1.290.0110.00616.14
7.1.280.0000.01515.82
7.1.270.0030.01215.96
7.1.260.0100.00316.16
7.1.250.0070.00715.88
7.1.200.0120.00015.96
7.1.100.0030.00918.42
7.1.70.0040.01117.48
7.1.60.0110.01519.27
7.1.50.0040.01117.15
7.1.00.0030.07322.33
7.0.200.0040.00416.99
7.0.140.0070.06322.05
7.0.100.0230.04320.14
7.0.90.0070.08319.84
7.0.80.0030.08020.11
7.0.70.0070.03720.11
7.0.60.0100.07720.01
7.0.50.0100.08020.33
7.0.40.0100.07319.93
7.0.30.0100.07720.14
7.0.20.0130.07320.03
7.0.10.0230.07320.07
7.0.00.0170.07019.90
5.6.280.0000.07720.93
5.6.250.0070.04020.44
5.6.240.0000.08720.59
5.6.230.0030.08020.46
5.6.220.0170.07020.63
5.6.210.0100.08020.59
5.6.200.0130.07721.00
5.6.190.0100.03321.07
5.6.180.0170.07021.00
5.6.170.0030.06721.02
5.6.160.0070.04020.96
5.6.150.0070.08020.99
5.6.140.0170.06320.92
5.6.130.0030.08721.09
5.6.120.0100.06321.02
5.6.110.0070.07320.90
5.6.100.0000.08320.89
5.6.90.0070.09020.98
5.6.80.0100.05320.52
5.6.70.0100.07020.38
5.6.60.0130.07320.50
5.6.50.0000.09020.46
5.6.40.0070.07720.39
5.6.30.0030.08320.49
5.6.20.0100.05320.42
5.6.10.0030.08320.33
5.6.00.0030.05020.47
5.5.380.0070.07020.47
5.5.370.0030.08320.33
5.5.360.0000.09320.33
5.5.350.0070.08320.29
5.5.340.0030.07020.89
5.5.330.0070.07020.85
5.5.320.0030.05320.83
5.5.310.0130.04020.88
5.5.300.0100.04020.79
5.5.290.0030.08320.88
5.5.280.0200.05720.78
5.5.270.0100.08020.74
5.5.260.0200.07720.87
5.5.250.0170.06320.71
5.5.240.0100.07720.18
5.5.230.0170.06720.23
5.5.220.0030.08720.23
5.5.210.0070.08720.23
5.5.200.0030.08020.12
5.5.190.0070.07720.14
5.5.180.0000.09020.11
5.5.160.0130.07020.20
5.5.150.0100.07320.11
5.5.140.0200.07020.18
5.5.130.0200.07020.14
5.5.120.0070.06320.20
5.5.110.0100.06320.19
5.5.100.0130.03720.03
5.5.90.0070.04320.09
5.5.80.0100.04020.13
5.5.70.0070.03719.96
5.5.60.0070.04320.04
5.5.50.0070.03720.02
5.5.40.0070.03719.87
5.5.30.0070.03720.07
5.5.20.0100.03320.07
5.5.10.0100.03320.03
5.5.00.0000.04720.01
5.4.450.0030.08319.24
5.4.440.0030.08319.18
5.4.430.0030.07019.21
5.4.420.0030.04719.36
5.4.410.0100.07719.34
5.4.400.0200.06319.10
5.4.390.0100.05718.95
5.4.380.0100.07319.09
5.4.370.0030.05719.18
5.4.360.0000.08718.95
5.4.350.0130.06018.90
5.4.340.0000.08319.11
5.4.320.0030.05319.04
5.4.310.0030.07719.18
5.4.300.0070.07719.03
5.4.290.0000.07719.16
5.4.280.0100.07319.13
5.4.270.0000.05718.85
5.4.260.0070.06319.20
5.4.250.0130.03319.03
5.4.240.0030.03718.89
5.4.230.0030.04019.00
5.4.220.0000.04719.13
5.4.210.0030.04018.87
5.4.200.0070.03019.23
5.4.190.0000.04019.02
5.4.180.0030.04019.11
5.4.170.0030.04019.02
5.4.160.0030.04019.04
5.4.150.0100.04719.08
5.4.140.0000.04016.47
5.4.130.0030.03716.46
5.4.120.0000.03716.43
5.4.110.0030.03016.57
5.4.100.0030.03316.47
5.4.90.0000.03716.49
5.4.80.0030.05316.46
5.4.70.0070.03316.42
5.4.60.0000.04016.37
5.4.50.0030.03716.30
5.4.40.0030.04016.46
5.4.30.0000.04316.33
5.4.20.0030.03316.29
5.4.10.0030.03716.24
5.4.00.0030.03715.81
5.3.290.0070.08014.65
5.3.280.0070.04014.67
5.3.270.0070.03314.64
5.3.260.0030.03714.64
5.3.250.0030.03714.54
5.3.240.0070.05014.60
5.3.230.0070.03714.74
5.3.220.0070.03014.66
5.3.210.0000.03714.50
5.3.200.0030.05014.51
5.3.190.0070.03314.52
5.3.180.0070.03314.58
5.3.170.0000.04314.50
5.3.160.0000.03714.60
5.3.150.0030.03714.60
5.3.140.0070.05014.70
5.3.130.0100.03014.69
5.3.120.0070.03314.66
5.3.110.0030.03714.71
5.3.100.0200.02014.11
5.3.90.0000.04014.09
5.3.80.0000.04014.04
5.3.70.0070.03314.11
5.3.60.0030.03714.02
5.3.50.0000.04313.88
5.3.40.0030.03713.88
5.3.30.0070.03313.90
5.3.20.0070.07013.79
5.3.10.0070.06713.67
5.3.00.0100.06013.57
5.2.170.0030.03011.19
5.2.160.0100.02311.25
5.2.150.0030.03011.04
5.2.140.0030.03311.04
5.2.130.0030.06311.17
5.2.120.0030.06011.14
5.2.110.0030.06311.09
5.2.100.0070.06311.18
5.2.90.0000.06311.18
5.2.80.0130.05711.00
5.2.70.0130.05311.13
5.2.60.0030.06311.15
5.2.50.0070.03311.05
5.2.40.0000.06011.07
5.2.30.0000.06710.89
5.2.20.0000.06011.00
5.2.10.0030.06010.80
5.2.00.0000.06010.77
5.1.60.0100.04310.49
5.1.50.0070.03710.49
5.1.40.0000.05310.49
5.1.30.0000.06010.49
5.1.20.0100.04310.49
5.1.10.0070.04710.49
5.1.00.0030.06010.49
5.0.50.0030.04310.49
5.0.40.0130.03310.49
5.0.30.0030.07310.49
5.0.20.0030.04310.49
5.0.10.0070.04010.49
5.0.00.0000.06710.49
4.4.90.0000.03710.49
4.4.80.0000.03710.49
4.4.70.0070.03010.49
4.4.60.0070.02310.49
4.4.50.0000.03310.49
4.4.40.0070.05310.49
4.4.30.0070.03010.49
4.4.20.0000.03710.49
4.4.10.0000.02010.49
4.4.00.0000.05710.49
4.3.110.0070.02310.49
4.3.100.0030.03310.49
4.3.90.0030.03310.49
4.3.80.0070.04710.49
4.3.70.0000.03710.49
4.3.60.0030.02310.49
4.3.50.0030.03710.49
4.3.40.0030.04710.49
4.3.30.0000.03710.49
4.3.20.0000.03310.49
4.3.10.0030.03710.49
4.3.00.0000.03010.49

preferences:
37.53 ms | 401 KiB | 5 Q