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(1); $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.0090.00618.81
8.3.60.0040.01118.68
8.3.50.0140.00422.01
8.3.40.0120.00319.05
8.3.30.0110.00419.09
8.3.20.0050.00320.38
8.3.10.0080.00022.05
8.3.00.0030.00522.32
8.2.190.0120.00316.88
8.2.180.0150.00016.61
8.2.170.0040.01122.96
8.2.160.0140.00020.90
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0050.00319.61
8.2.110.0000.01022.29
8.2.100.0040.00818.16
8.2.90.0050.00319.20
8.2.80.0030.00619.78
8.2.70.0050.00318.00
8.2.60.0040.00417.93
8.2.50.0030.00618.07
8.2.40.0060.00318.34
8.2.30.0040.00418.18
8.2.20.0060.00317.85
8.2.10.0040.00417.94
8.2.00.0040.00418.10
8.1.280.0120.00325.92
8.1.270.0050.00322.27
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0000.01023.88
8.1.230.0060.00618.93
8.1.220.0080.00017.78
8.1.210.0080.00018.77
8.1.200.0030.00617.59
8.1.190.0050.00317.68
8.1.180.0040.00418.10
8.1.170.0060.00318.90
8.1.160.0040.00422.08
8.1.150.0040.00418.83
8.1.140.0000.00817.65
8.1.130.0040.00417.85
8.1.120.0040.00417.63
8.1.110.0040.00417.68
8.1.100.0040.00417.55
8.1.90.0040.00417.65
8.1.80.0000.00717.63
8.1.70.0040.00417.66
8.1.60.0050.00217.74
8.1.50.0050.00217.61
8.1.40.0000.00917.63
8.1.30.0040.00417.69
8.1.20.0060.00317.83
8.1.10.0040.00417.69
8.1.00.0040.00417.67
8.0.300.0040.00418.77
8.0.290.0030.00617.18
8.0.280.0040.00418.43
8.0.270.0030.00317.37
8.0.260.0000.00616.99
8.0.250.0000.00717.21
8.0.240.0030.00317.08
8.0.230.0000.00717.15
8.0.220.0070.00017.17
8.0.210.0030.00617.18
8.0.200.0000.00617.17
8.0.190.0030.00517.03
8.0.180.0050.00217.15
8.0.170.0030.00517.20
8.0.160.0000.00817.06
8.0.150.0040.00417.15
8.0.140.0040.00416.99
8.0.130.0060.00013.66
8.0.120.0000.00917.13
8.0.110.0040.00417.17
8.0.100.0040.00417.03
8.0.90.0050.00216.98
8.0.80.0070.01017.10
8.0.70.0050.00317.17
8.0.60.0040.00417.16
8.0.50.0000.00717.08
8.0.30.0130.00817.36
8.0.20.0090.01017.48
8.0.10.0040.00417.36
8.0.00.0150.00517.06
7.4.330.0060.00015.00
7.4.320.0060.00316.79
7.4.300.0000.00716.77
7.4.290.0030.00316.72
7.4.280.0090.00016.75
7.4.270.0030.00316.82
7.4.260.0040.00416.64
7.4.250.0070.00016.77
7.4.240.0020.00616.70
7.4.230.0030.00316.80
7.4.220.0030.01316.87
7.4.210.0120.00716.86
7.4.200.0000.00716.68
7.4.190.0040.00416.85
7.4.160.0090.01216.84
7.4.150.0190.00017.40
7.4.140.0120.00717.86
7.4.130.0110.00916.79
7.4.120.0090.00816.75
7.4.110.0060.01116.73
7.4.100.0130.01316.88
7.4.90.0110.00716.90
7.4.80.0030.01419.39
7.4.70.0120.00616.76
7.4.60.0080.01116.85
7.4.50.0060.00316.59
7.4.40.0030.00922.77
7.4.30.0000.01616.57
7.4.00.0100.00715.45
7.3.330.0000.00513.47
7.3.320.0050.00013.65
7.3.310.0070.00016.64
7.3.300.0030.00316.48
7.3.290.0070.00716.59
7.3.280.0090.00616.62
7.3.270.0120.01217.40
7.3.260.0030.01416.87
7.3.250.0090.00916.58
7.3.240.0100.00716.68
7.3.230.0120.00416.75
7.3.210.0070.01016.59
7.3.200.0000.02219.39
7.3.190.0070.01016.67
7.3.180.0160.00016.60
7.3.170.0120.00416.59
7.3.160.0080.00816.59
7.3.120.0030.01414.91
7.2.330.0120.00616.87
7.2.320.0100.01016.94
7.2.310.0060.01016.95
7.2.300.0080.00817.01
7.2.290.0110.00716.85
7.2.60.0160.00617.14
7.2.50.0030.00716.93
7.2.00.0060.00619.56
7.1.200.0130.00016.17
7.1.70.0000.00817.27
7.1.60.0000.02419.82
7.1.50.0090.00916.84
7.1.00.0130.06722.49
7.0.200.0060.00616.75
7.0.140.0000.07722.15
7.0.100.0030.05720.00
7.0.90.0030.04719.91
7.0.80.0130.07019.95
7.0.70.0000.08319.92
7.0.60.0170.03720.09
7.0.50.0100.03720.41
7.0.40.0170.03720.14
7.0.30.0000.05020.10
7.0.20.0000.04720.08
7.0.10.0070.03320.14
7.0.00.0030.04719.92
5.6.280.0100.06321.14
5.6.250.0130.07320.61
5.6.240.0070.06720.74
5.6.230.0030.04320.61
5.6.220.0000.08720.71
5.6.210.0170.06320.59
5.6.200.0070.04021.05
5.6.190.0030.04320.95
5.6.180.0030.04321.09
5.6.170.0070.04021.15
5.6.160.0130.03021.14
5.6.150.0030.04021.09
5.6.140.0100.08321.05
5.6.130.0030.04021.09
5.6.120.0030.04320.96
5.6.110.0130.08320.96
5.6.100.0070.04321.04
5.6.90.0030.04021.04
5.6.80.0030.04020.43
5.6.70.0030.04020.48
5.6.60.0030.04020.39
5.6.50.0030.04320.42
5.6.40.0130.02720.39
5.6.30.0070.03320.39
5.6.20.0000.03720.41
5.6.10.0000.03720.27
5.6.00.0000.04720.43
5.5.380.0100.04020.38
5.5.370.0000.08320.36
5.5.360.0000.07320.45
5.5.350.0000.04320.41
5.5.340.0070.04020.94
5.5.330.0100.03720.93
5.5.320.0100.03320.79
5.5.310.0100.03320.84
5.5.300.0030.05020.77
5.5.290.0000.04020.84
5.5.280.0030.06020.84
5.5.270.0000.04320.91
5.5.260.0100.04320.77
5.5.250.0100.03320.73
5.5.240.0000.04320.32
5.5.230.0030.04020.30
5.5.220.0000.04320.22
5.5.210.0100.03320.25
5.5.200.0100.02720.20
5.5.190.0030.03720.27
5.5.180.0070.03020.16
5.5.160.0030.03720.22
5.5.150.0030.03320.16
5.5.140.0030.03320.22
5.5.130.0030.05320.28
5.5.120.0000.03720.24
5.5.110.0070.03320.21
5.5.100.0000.04720.17
5.5.90.0070.03720.14
5.5.80.0000.04320.16
5.5.70.0070.08020.10
5.5.60.0000.04320.07
5.5.50.0070.03720.06
5.5.40.0100.03720.04
5.5.30.0100.07020.13
5.5.20.0070.03720.14
5.5.10.0130.07020.12
5.5.00.0070.06720.11
5.4.450.0000.04019.18
5.4.440.0130.04319.47
5.4.430.0100.03019.38
5.4.420.0000.08019.36
5.4.410.0030.03719.32
5.4.400.0000.04018.90
5.4.390.0030.03719.25
5.4.380.0030.03719.05
5.4.370.0070.02719.05
5.4.360.0070.03019.16
5.4.350.0030.04019.04
5.4.340.0000.04319.05
5.4.320.0030.03319.17
5.4.310.0100.03319.24
5.4.300.0070.02719.09
5.4.290.0100.02719.13
5.4.280.0030.03319.21
5.4.270.0030.03019.09
5.4.260.0070.03319.14
5.4.250.0070.04719.04
5.4.240.0000.04019.23
5.4.230.0030.06019.12
5.4.220.0000.05719.12
5.4.210.0030.04019.12
5.4.200.0030.05719.09
5.4.190.0170.06019.12
5.4.180.0070.07319.13
5.4.170.0100.07319.20
5.4.160.0070.06318.93
5.4.150.0070.06319.03
5.4.140.0000.05316.52
5.4.130.0070.06716.50
5.4.120.0200.03316.48
5.4.110.0100.07316.45
5.4.100.0030.05016.49
5.4.90.0030.03716.45
5.4.80.0070.03316.51
5.4.70.0000.04016.43
5.4.60.0070.07316.40
5.4.50.0030.04016.41
5.4.40.0070.03016.46
5.4.30.0170.06316.44
5.4.20.0100.06316.24
5.4.10.0130.05316.24
5.4.00.0030.03315.86
5.3.290.0070.02714.70
5.3.280.0070.03714.55
5.3.270.0070.04314.54
5.3.260.0070.07014.73
5.3.250.0170.06014.72
5.3.240.0030.04314.54
5.3.230.0130.06014.54
5.3.220.0070.07314.67
5.3.210.0030.07014.63
5.3.200.0030.07014.54
5.3.190.0070.04014.67
5.3.180.0030.04714.73
5.3.170.0030.03714.56
5.3.160.0070.03014.54
5.3.150.0030.06314.52
5.3.140.0070.07314.62
5.3.130.0030.07714.65
5.3.120.0000.03714.55
5.3.110.0030.08014.54
5.3.100.0000.05714.14
5.3.90.0000.03314.01
5.3.80.0000.04314.08
5.3.70.0070.07714.08
5.3.60.0000.06013.93
5.3.50.0070.07713.94
5.3.40.0000.04713.89
5.3.30.0070.04013.95
5.3.20.0130.06313.79
5.3.10.0100.06713.73
5.3.00.0070.03313.71
5.2.170.0130.04711.08
5.2.160.0030.05711.21
5.2.150.0170.05311.03
5.2.140.0070.06311.10
5.2.130.0000.03711.20
5.2.120.0030.06711.20
5.2.110.0000.06011.14
5.2.100.0100.04711.22
5.2.90.0070.05311.09
5.2.80.0030.05311.16
5.2.70.0100.05311.23
5.2.60.0070.02711.07
5.2.50.0030.05711.06
5.2.40.0070.05010.94
5.2.30.0070.03711.07
5.2.20.0070.05011.03
5.2.10.0070.05711.01
5.2.00.0030.03310.77
5.1.60.0030.04310.09
5.1.50.0100.0439.99
5.1.40.0030.05010.07
5.1.30.0030.05710.41
5.1.20.0030.06010.29
5.1.10.0030.05010.19
5.1.00.0030.0309.91
5.0.50.0070.0438.81
5.0.40.0000.0438.81
5.0.30.0000.0608.81
5.0.20.0100.0178.81
5.0.10.0000.0408.81
5.0.00.0030.0608.81
4.4.90.0030.0278.81
4.4.80.0070.0138.81
4.4.70.0030.0378.81
4.4.60.0000.0338.81
4.4.50.0030.0278.81
4.4.40.0070.0508.81
4.4.30.0030.0278.81
4.4.20.0000.0378.81
4.4.10.0000.0378.81
4.4.00.0000.0538.81
4.3.110.0070.0178.81
4.3.100.0030.0178.81
4.3.90.0030.0338.81
4.3.80.0000.0338.81
4.3.70.0070.0278.81
4.3.60.0030.0338.81
4.3.50.0070.0238.81
4.3.40.0070.0478.81
4.3.30.0000.0278.81
4.3.20.0000.0378.81
4.3.10.0000.0338.81
4.3.00.0030.0208.81

preferences:
66.74 ms | 401 KiB | 5 Q