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 .='1'; $encStr .=chr($a); } echo $encStr; $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.60.0110.00716.88
8.3.50.0130.00322.13
8.3.40.0130.00919.09
8.3.30.0100.00319.21
8.3.20.0040.00420.33
8.3.10.0000.00823.71
8.3.00.0060.00319.75
8.2.180.0100.00618.66
8.2.170.0110.00722.96
8.2.160.0040.01120.47
8.2.150.0080.00024.18
8.2.140.0080.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00422.21
8.2.110.0060.00322.28
8.2.100.0000.01218.16
8.2.90.0040.00419.22
8.2.80.0080.00017.97
8.2.70.0060.00317.88
8.2.60.0090.00018.04
8.2.50.0080.00018.07
8.2.40.0060.00319.88
8.2.30.0000.00718.25
8.2.20.0040.00417.98
8.2.10.0040.00418.24
8.2.00.0110.00018.00
8.1.280.0140.00725.92
8.1.270.0080.00022.31
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.68
8.1.230.0040.00819.29
8.1.220.0000.00817.91
8.1.210.0100.00018.77
8.1.200.0030.00617.73
8.1.190.0060.00617.50
8.1.180.0080.00019.26
8.1.170.0080.00018.82
8.1.160.0040.00422.14
8.1.150.0040.00418.88
8.1.140.0080.00017.63
8.1.130.0000.00717.80
8.1.120.0000.00717.63
8.1.110.0040.00417.64
8.1.100.0000.00917.65
8.1.90.0070.00017.64
8.1.80.0070.00017.61
8.1.70.0030.00517.62
8.1.60.0060.00317.82
8.1.50.0040.00417.70
8.1.40.0040.00417.62
8.1.30.0030.00517.77
8.1.20.0000.00817.89
8.1.10.0040.00417.77
8.1.00.0000.00917.59
8.0.300.0000.00718.77
8.0.290.0000.00717.04
8.0.280.0000.00718.51
8.0.270.0000.00817.22
8.0.260.0000.00717.31
8.0.250.0050.00217.17
8.0.240.0000.00717.26
8.0.230.0040.00417.23
8.0.220.0050.00317.02
8.0.210.0040.00417.00
8.0.200.0000.00717.20
8.0.190.0040.00417.07
8.0.180.0040.00417.11
8.0.170.0050.00317.13
8.0.160.0000.00717.18
8.0.150.0000.00717.03
8.0.140.0030.00616.99
8.0.130.0030.00313.57
8.0.120.0040.00417.06
8.0.110.0000.00817.12
8.0.100.0000.00817.02
8.0.90.0040.00417.18
8.0.80.0070.01717.16
8.0.70.0000.00817.13
8.0.60.0070.00017.20
8.0.50.0000.00717.14
8.0.30.0130.01017.52
8.0.20.0110.00817.52
8.0.10.0000.00717.22
8.0.00.0210.00317.21
7.4.330.0030.00315.00
7.4.320.0030.00316.74
7.4.300.0060.00016.71
7.4.290.0080.00016.76
7.4.280.0050.00316.82
7.4.270.0000.00716.74
7.4.260.0030.00316.84
7.4.250.0050.00216.82
7.4.240.0030.00416.81
7.4.230.0030.00316.66
7.4.220.0070.01116.93
7.4.210.0100.00816.84
7.4.200.0070.00016.85
7.4.190.0030.00316.72
7.4.160.0090.00916.84
7.4.150.0150.00417.40
7.4.140.0130.00517.86
7.4.130.0050.01616.70
7.4.120.0090.01216.89
7.4.110.0000.01716.90
7.4.100.0030.01516.91
7.4.90.0080.00816.61
7.4.80.0090.01219.39
7.4.70.0130.00716.66
7.4.60.0060.01216.60
7.4.50.0090.00016.85
7.4.40.0060.01216.80
7.4.30.0070.01016.82
7.4.10.0110.00316.82
7.4.00.0080.00815.67
7.3.330.0050.00013.55
7.3.320.0000.00613.61
7.3.310.0000.00716.65
7.3.300.0020.00516.56
7.3.290.0030.01016.61
7.3.280.0080.01316.60
7.3.270.0100.00717.40
7.3.260.0150.00416.57
7.3.250.0100.00816.70
7.3.240.0040.01316.67
7.3.230.0110.01116.78
7.3.210.0110.00516.62
7.3.200.0130.01219.39
7.3.190.0130.01016.61
7.3.180.0110.00516.70
7.3.170.0060.01016.79
7.3.160.0100.01016.64
7.3.130.0140.00716.74
7.3.120.0090.00815.45
7.3.110.0110.00815.54
7.3.100.0070.00815.58
7.3.90.0050.00815.62
7.3.80.0050.00915.56
7.3.70.0040.01215.65
7.3.60.0040.01115.55
7.3.50.0020.01315.61
7.3.40.0040.01115.64
7.3.30.0070.00615.64
7.3.20.0070.00917.27
7.3.10.0020.01117.39
7.3.00.0070.00817.42
7.2.330.0140.00417.01
7.2.320.0140.00516.94
7.2.310.0150.00416.96
7.2.300.0090.01216.73
7.2.290.0060.01216.93
7.2.260.0040.01816.82
7.2.250.0040.01615.72
7.2.240.0090.01115.66
7.2.230.0090.00715.79
7.2.220.0070.00815.94
7.2.210.0050.01015.81
7.2.200.0040.00915.80
7.2.190.0080.00815.83
7.2.180.0060.00815.70
7.2.170.0070.00715.82
7.2.160.0040.01516.89
7.2.150.0030.01218.69
7.2.140.0110.00418.57
7.2.130.0110.00418.63
7.2.120.0070.00718.68
7.2.110.0030.01018.50
7.2.100.0000.01418.57
7.2.90.0070.00318.75
7.2.80.0070.00718.38
7.2.70.0100.00618.57
7.2.60.0250.00317.75
7.2.50.0110.00318.70
7.2.40.0140.00318.72
7.2.30.0100.01018.68
7.2.20.0100.00318.63
7.2.10.0000.01118.75
7.2.00.0130.00618.49
7.1.330.0080.00816.63
7.1.320.0060.00716.50
7.1.310.0030.01116.68
7.1.300.0060.00516.46
7.1.290.0090.00716.65
7.1.280.0070.00716.52
7.1.270.0060.00916.48
7.1.260.0020.01216.48
7.1.250.0030.01017.65
7.1.240.0030.00917.55
7.1.230.0000.01117.46
7.1.220.0060.00317.45
7.1.210.0030.00617.61
7.1.200.0070.00716.77
7.1.190.0030.00617.48
7.1.180.0120.00017.47
7.1.170.0060.00617.44
7.1.160.0040.01417.73
7.1.150.0040.01117.53
7.1.140.0040.01117.59
7.1.130.0090.00617.44
7.1.120.0040.01417.43
7.1.110.0030.00617.58
7.1.100.0040.01117.84
7.1.90.0000.00917.62
7.1.80.0060.00317.61
7.1.70.0060.00517.52
7.1.60.0100.01018.51
7.1.50.0060.01317.41
7.1.40.0090.00917.62
7.1.30.0000.01417.38
7.1.20.0030.01217.43
7.1.10.0070.01017.67
7.1.00.0050.04119.99
7.0.330.0000.01217.32
7.0.320.0060.00617.29
7.0.310.0040.01117.22
7.0.300.0100.00317.13
7.0.290.0100.01017.23
7.0.280.0090.00017.29
7.0.270.0060.00917.35
7.0.260.0060.00317.18
7.0.250.0040.00717.23
7.0.240.0000.01117.27
7.0.230.0080.00417.27
7.0.220.0000.01217.49
7.0.210.0030.01017.36
7.0.200.0040.00817.12
7.0.190.0060.00917.15
7.0.180.0040.00716.97
7.0.170.0060.00617.27
7.0.160.0110.00617.26
7.0.150.0080.00817.11
7.0.140.0030.04119.65
7.0.130.0050.00517.04
7.0.120.0040.01117.27
7.0.110.0030.01317.22
7.0.100.0070.00717.18
7.0.90.0060.00317.13
7.0.80.0030.00717.09
7.0.70.0030.05019.38
7.0.60.0080.04619.48
7.0.50.0070.04419.58
7.0.40.0040.03917.70
7.0.30.0050.04717.66
7.0.20.0050.02517.67
7.0.10.0000.02917.61
7.0.00.0030.04917.68
5.6.400.0160.00016.25
5.6.390.0040.00816.30
5.6.380.0060.01016.15
5.6.370.0060.00916.09
5.6.360.0110.00716.19
5.6.350.0100.01016.11
5.6.340.0090.00616.16
5.6.330.0110.00316.13
5.6.320.0100.00615.93
5.6.310.0090.00615.86
5.6.300.0000.01415.99
5.6.290.0030.00915.98
5.6.280.0020.04218.37
5.6.270.0030.01016.13
5.6.260.0100.00715.85
5.6.250.0040.00715.90
5.6.240.0080.00416.29
5.6.230.0090.00616.06
5.6.220.0060.04918.34
5.6.210.0080.04518.43
5.6.200.0070.03018.53
5.6.190.0120.03718.53
5.6.180.0030.03218.50
5.6.170.0070.02118.56
5.6.160.0040.02918.73
5.6.150.0050.04918.54
5.6.140.0110.04218.65
5.6.130.0030.04018.53
5.6.120.0080.03718.50
5.6.110.0080.04518.51
5.6.100.0080.04518.57
5.6.90.0090.04218.55
5.6.80.0100.04418.33
5.6.70.0080.04618.15
5.6.60.0030.03318.23
5.6.50.0050.04618.09
5.6.40.0050.03818.31
5.6.30.0030.02718.12
5.6.20.0040.02718.21
5.6.10.0030.02518.22
5.6.00.0060.02318.18
5.5.380.0070.00716.15
5.5.370.0030.00616.13
5.5.360.0100.04518.13
5.5.350.0030.04618.23
5.5.340.0070.04718.34
5.5.330.0070.04418.39
5.5.320.0060.04418.35
5.5.310.0060.02318.43
5.5.300.0100.04318.44
5.5.290.0030.03518.45
5.5.280.0100.04518.42
5.5.270.0060.04418.41
5.5.260.0080.04618.29
5.5.250.0090.04318.31
5.5.240.0050.04217.99
5.5.230.0090.02617.94
5.5.220.0110.03618.09
5.5.210.0050.04518.02
5.5.200.0120.04017.99
5.5.190.0050.03718.14
5.5.180.0070.02318.08
5.5.170.0070.00416.02
5.5.160.0060.02318.13
5.5.150.0030.02418.06
5.5.140.0050.02418.10
5.5.130.0030.02717.92
5.5.120.0080.02218.02
5.5.110.0020.02618.07
5.5.100.0070.02217.98
5.5.90.0020.02518.02
5.5.80.0130.01717.87
5.5.70.0000.03518.03
5.5.60.0070.04218.03
5.5.50.0040.02417.97
5.5.40.0100.01817.98
5.5.30.0050.02518.07
5.5.20.0050.03018.11
5.5.10.0080.02117.92
5.5.00.0050.02718.00
5.4.450.0030.03316.25
5.4.440.0050.03316.16
5.4.430.0070.04316.16
5.4.420.0020.04416.33
5.4.410.0030.04416.16
5.4.400.0050.03715.99
5.4.390.0020.04216.16
5.4.380.0050.04216.13
5.4.370.0030.04416.07
5.4.360.0080.04216.14
5.4.350.0090.02816.06
5.4.340.0130.02016.09
5.4.330.0110.00013.09
5.4.320.0080.02015.97
5.4.310.0030.04316.13
5.4.300.0040.03416.06
5.4.290.0020.02316.14
5.4.280.0110.03016.16
5.4.270.0040.02116.06
5.4.260.0000.02716.11
5.4.250.0050.02015.98
5.4.240.0030.02316.00
5.4.230.0080.02016.06
5.4.220.0070.02516.09
5.4.210.0040.02016.05
5.4.200.0060.02016.11
5.4.190.0030.02016.14
5.4.180.0030.02115.96
5.4.170.0040.02216.13
5.4.160.0060.02316.08
5.4.150.0070.03516.08
5.4.140.0010.02914.77
5.4.130.0030.02314.67
5.4.120.0030.02114.76
5.4.110.0030.02114.75
5.4.100.0020.02014.79
5.4.90.0020.02114.83
5.4.80.0000.02614.74
5.4.70.0030.01814.80
5.4.60.0050.03014.75
5.4.50.0050.02314.70
5.4.40.0000.02614.75
5.4.30.0020.02214.76
5.4.20.0020.02014.73
5.4.10.0020.02314.75
5.4.00.0050.01814.47
5.3.290.0040.02514.05
5.3.280.0050.03414.00
5.3.270.0020.03213.96
5.3.260.0030.02314.09
5.3.250.0000.02613.95
5.3.240.0040.02313.88
5.3.230.0000.02013.98
5.3.220.0050.02013.85
5.3.210.0030.02313.83
5.3.200.0000.02213.91
5.3.190.0070.01913.91
5.3.180.0000.02713.96
5.3.170.0040.02013.87
5.3.160.0000.02713.95
5.3.150.0090.02813.96
5.3.140.0030.02413.93
5.3.130.0050.02013.86
5.3.120.0060.03013.91
5.3.110.0020.02313.86
5.3.100.0100.02713.81
5.3.90.0040.02013.62
5.3.80.0000.02313.52
5.3.70.0020.02413.63
5.3.60.0060.01813.62
5.3.50.0020.02213.51
5.3.40.0050.01713.53
5.3.30.0050.03613.55
5.3.20.0040.03313.40
5.3.10.0030.04013.37
5.3.00.0030.03013.44
5.2.170.0000.03011.06
5.2.160.0000.03011.08
5.2.150.0000.03011.26
5.2.140.0070.03011.01
5.2.130.0030.06311.02
5.2.120.0070.05711.22
5.2.110.0030.04311.24
5.2.100.0000.03711.12
5.2.90.0000.03711.10
5.2.80.0100.02711.16
5.2.70.0070.03011.21
5.2.60.0000.06310.94
5.2.50.0030.05310.95
5.2.40.0030.03711.01
5.2.30.0000.06711.07
5.2.20.0030.04010.98
5.2.10.0070.05310.93
5.2.00.0000.06710.78
5.1.60.0030.04010.43
5.1.50.0000.03710.43
5.1.40.0000.05010.43
5.1.30.0030.03310.43
5.1.20.0000.05310.43
5.1.10.0000.05710.43
5.1.00.0030.04710.43
5.0.50.0000.04010.43
5.0.40.0070.03710.43
5.0.30.0000.07010.43
5.0.20.0030.04310.43
5.0.10.0030.04710.43
5.0.00.0000.05710.43
4.4.90.0030.03310.43
4.4.80.0070.03310.43
4.4.70.0100.03010.43
4.4.60.0000.03710.43
4.4.50.0030.03310.43
4.4.40.0000.04310.43
4.4.30.0070.03010.43
4.4.20.0000.04010.43
4.4.10.0000.03710.43
4.4.00.0000.05710.43
4.3.110.0030.02710.43
4.3.100.0030.03010.43
4.3.90.0000.03010.43
4.3.80.0000.04310.43
4.3.70.0000.02710.43
4.3.60.0030.03310.43
4.3.50.0130.02310.43
4.3.40.0030.04010.43
4.3.30.0000.03310.43
4.3.20.0030.02710.43
4.3.10.0000.02710.43
4.3.00.0030.03310.43

preferences:
41.43 ms | 400 KiB | 5 Q