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"); print "\n"; function encrypt($str) { $cryptedstr = ""; for ($i =0; $i < strlen($str); $i++) { $temp = ord(substr($str,$i,1)) ^ 192; while(strlen($temp)<3) { $temp = "0".$temp; } $cryptedstr .= $temp. ""; } return base64_encode($cryptedstr); } echo encrypt("Admin' order by 2 --"); print "\n"; print "\n"; ?>

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.01216.88
8.3.50.0140.00418.34
8.3.40.0040.01119.09
8.3.30.0100.00319.07
8.3.20.0030.00520.34
8.3.10.0050.00321.90
8.3.00.0080.00020.77
8.2.180.0110.01117.00
8.2.170.0110.00422.96
8.2.160.0070.01022.11
8.2.150.0040.00424.18
8.2.140.0050.00524.66
8.2.130.0050.00326.16
8.2.120.0040.00419.58
8.2.110.0000.00921.21
8.2.100.0050.00817.97
8.2.90.0030.00619.30
8.2.80.0080.00017.97
8.2.70.0030.00617.71
8.2.60.0040.00418.05
8.2.50.0040.00418.10
8.2.40.0040.00419.95
8.2.30.0040.00418.10
8.2.20.0040.00417.91
8.2.10.0060.00318.25
8.2.00.0040.00417.92
8.1.280.0060.01225.92
8.1.270.0090.00019.13
8.1.260.0060.00326.35
8.1.250.0090.00028.09
8.1.240.0050.00523.88
8.1.230.0080.00417.83
8.1.220.0000.00817.93
8.1.210.0030.00518.77
8.1.200.0000.01017.35
8.1.190.0040.00417.48
8.1.180.0060.00318.10
8.1.170.0040.00418.64
8.1.160.0040.00421.95
8.1.150.0060.00318.94
8.1.140.0040.00417.63
8.1.130.0070.00017.79
8.1.120.0050.00317.69
8.1.110.0000.00817.63
8.1.100.0030.00417.68
8.1.90.0070.00017.59
8.1.80.0000.00817.59
8.1.70.0050.00217.53
8.1.60.0040.00417.76
8.1.50.0060.00317.77
8.1.40.0070.00017.66
8.1.30.0040.00417.82
8.1.20.0060.00317.87
8.1.10.0030.00517.68
8.1.00.0040.00417.66
8.0.300.0040.00418.77
8.0.290.0090.00016.88
8.0.280.0000.00818.54
8.0.270.0000.00817.21
8.0.260.0060.00017.30
8.0.250.0040.00417.01
8.0.240.0000.00717.19
8.0.230.0080.00017.14
8.0.220.0030.00316.94
8.0.210.0070.00016.95
8.0.200.0030.00317.17
8.0.190.0040.00417.13
8.0.180.0070.00017.00
8.0.170.0080.00017.07
8.0.160.0050.00217.02
8.0.150.0000.00816.98
8.0.140.0050.00317.02
8.0.130.0000.00613.46
8.0.120.0040.00417.05
8.0.110.0050.00217.04
8.0.100.0040.00416.96
8.0.90.0000.00816.86
8.0.80.0130.00617.11
8.0.70.0080.00017.18
8.0.60.0000.00716.95
8.0.50.0040.00416.94
8.0.30.0120.00317.25
8.0.20.0210.02117.47
8.0.10.0070.00017.16
8.0.00.0070.01217.05
7.4.330.0060.00015.03
7.4.320.0000.00616.88
7.4.300.0030.00316.79
7.4.290.0070.00016.84
7.4.280.0000.00716.84
7.4.270.0040.00316.76
7.4.260.0030.00516.69
7.4.250.0000.00816.71
7.4.240.0020.00516.78
7.4.230.0070.00016.73
7.4.220.0110.00816.89
7.4.210.0040.01716.80
7.4.200.0000.00716.92
7.4.160.0090.00616.81
7.4.150.0130.00617.40
7.4.140.0060.01417.86
7.4.130.0120.00516.78
7.4.120.0050.01416.75
7.4.110.0090.01016.81
7.4.100.0070.01116.68
7.4.90.0100.01016.72
7.4.80.0060.01719.39
7.4.70.0150.00916.68
7.4.60.0130.00316.66
7.4.50.0030.00316.33
7.4.40.0070.01016.57
7.4.30.0190.00016.74
7.4.00.0030.01015.16
7.3.330.0030.00313.41
7.3.320.0130.00313.52
7.3.310.0000.00716.60
7.3.300.0040.00416.54
7.3.290.0040.00416.41
7.3.280.0150.00616.55
7.3.270.0140.00617.40
7.3.260.0120.00616.52
7.3.250.0100.00816.66
7.3.240.0070.01116.85
7.3.230.0070.01016.75
7.3.210.0130.00417.02
7.3.200.0120.00619.39
7.3.190.0090.01216.80
7.3.180.0090.00616.46
7.3.170.0120.00616.61
7.3.160.0030.01416.78
7.2.330.0030.01516.73
7.2.320.0190.00916.77
7.2.310.0100.02516.86
7.2.300.0140.00316.91
7.2.290.0150.00616.79
7.2.60.0080.00417.08
7.2.00.0030.00919.72
7.1.100.0000.01218.52
7.1.70.0060.00317.46
7.1.60.0120.01219.46
7.1.50.0120.00917.30
7.1.00.0000.07722.55
7.0.200.0430.00714.93
7.0.140.0030.06722.00
7.0.60.0100.08320.05
7.0.50.0100.03318.02
7.0.40.0100.08019.93
7.0.30.0300.06720.14
7.0.20.0300.04720.34
7.0.10.0130.04020.18
7.0.00.0130.05020.13
5.6.280.0070.07021.07
5.6.210.0030.08020.62
5.6.200.0030.04018.23
5.6.190.0100.07720.48
5.6.180.0270.04320.55
5.6.170.0270.04020.51
5.6.160.0070.07020.63
5.6.150.0100.05318.15
5.6.140.0000.04318.27
5.6.130.0130.08018.19
5.6.120.0070.04721.14
5.6.110.0170.07021.05
5.6.100.0030.08720.97
5.6.90.0200.08021.01
5.6.80.0030.06720.39
5.5.350.0300.07720.41
5.5.340.0030.08718.04
5.5.330.0030.06320.35
5.5.320.0030.04020.38
5.5.310.0330.08020.31
5.5.300.0100.08017.97
5.5.290.0030.05317.98
5.5.280.0130.05320.81
5.5.270.0070.06020.88
5.5.260.0030.06720.67
5.5.250.0100.06720.67
5.5.240.0100.07020.36
5.4.450.0670.06019.52
5.4.440.1230.06319.45
5.4.430.0130.05019.30
5.4.420.0770.05319.20
5.4.410.0770.06019.46
5.4.400.0800.05019.15
5.4.390.0130.06718.51
5.4.380.0100.06318.78
5.4.370.0170.05718.57
5.4.360.0170.07018.74
5.4.350.0130.06018.54
5.4.340.0230.05018.86
5.4.320.0200.05018.58
5.4.310.0230.04718.61
5.4.300.0230.04718.84
5.4.290.0200.04718.47
5.4.280.0170.05318.46
5.4.270.0200.05318.50
5.4.260.0200.05018.52
5.4.250.0270.05018.75
5.4.240.0170.05318.80
5.4.230.0170.05318.49
5.4.220.0170.05718.77
5.4.210.0300.04318.71
5.4.200.0070.06016.79
5.4.190.0230.04718.77
5.4.180.0170.05318.61
5.4.170.0130.06018.77
5.4.160.0230.05018.45
5.4.150.0300.04718.48
5.4.140.0270.04016.47
5.4.130.0230.04316.32
5.4.120.0270.04316.40
5.4.110.0270.04016.35
5.4.100.0170.05316.23
5.4.90.0170.06716.34
5.4.80.0230.04716.42
5.4.70.0230.04716.43
5.4.60.0200.05316.21
5.4.50.0270.04316.27
5.4.40.0230.04716.39
5.4.30.0100.05716.30
5.4.20.0230.04316.16
5.4.10.0100.06316.41
5.4.00.0230.04015.74
5.3.290.0100.06014.66
5.3.280.0200.05014.78
5.3.270.0230.05014.71
5.3.260.0070.06714.82
5.3.250.0270.04314.64
5.3.240.0100.06014.75
5.3.230.0130.06014.65
5.3.220.0300.04014.77
5.3.210.0200.05314.61
5.3.200.0200.05714.62
5.3.190.0330.03714.60
5.3.180.0230.04714.61
5.3.170.0130.05714.56
5.3.160.0230.04714.59
5.3.150.0230.07314.68
5.3.140.0130.06714.61
5.3.130.0170.05714.59
5.3.120.0200.05314.72
5.3.110.0270.04714.58
5.3.100.0070.07014.27
5.3.90.0270.04314.05
5.3.80.0170.05714.21
5.3.70.0130.05314.08
5.3.60.0170.05314.24
5.3.50.0170.05313.98
5.3.40.0170.05013.96
5.3.30.0130.05014.12
5.3.20.0100.05313.81
5.3.10.0200.04713.70
5.3.00.0130.05313.81
5.2.170.0170.04011.36
5.2.160.0100.04011.25
5.2.150.0170.04011.37
5.2.140.0100.04311.36
5.2.130.0270.03011.16
5.2.120.0170.03311.14
5.2.110.0100.04011.16
5.2.100.0130.04011.17
5.2.90.0170.03311.21
5.2.80.0070.04711.13
5.2.70.0070.04711.23
5.2.60.0100.04311.16
5.2.50.0200.03711.06
5.2.40.0130.04011.13
5.2.30.0100.04311.03
5.2.20.0100.04011.07
5.2.10.0130.03711.07
5.2.00.0030.04710.76
5.1.60.0130.03010.07
5.1.50.0000.04710.13
5.1.40.0130.03010.03
5.1.30.0100.03710.41
5.1.20.0130.03710.49
5.1.10.0100.04310.08
5.1.00.0070.03710.10
5.0.50.0030.0338.77
5.0.40.0000.0338.56
5.0.30.0100.0408.27
5.0.20.0100.0238.36
5.0.10.0070.0278.25
5.0.00.0070.0438.22
4.4.90.0070.0236.00
4.4.80.0030.0235.91
4.4.70.0100.0175.94
4.4.60.0070.0205.91
4.4.50.0030.0276.04
4.4.40.0070.0375.92
4.4.30.0000.0276.03
4.4.20.0070.0206.11
4.4.10.0030.0236.04
4.4.00.0030.0475.97
4.3.110.0070.0235.85
4.3.100.0130.0135.89
4.3.90.0070.0205.92
4.3.80.0030.0375.86
4.3.70.0070.0175.83
4.3.60.0030.0235.89
4.3.50.0100.0205.94
4.3.40.0170.0275.88
4.3.30.0030.0234.61
4.3.20.0030.0234.55
4.3.10.0030.0234.56
4.3.00.0000.04014.47

preferences:
42.26 ms | 400 KiB | 5 Q