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 all select 1,2,3,4,password,6,7 from level3_users--"); print "\n"; print "\n"; ?>

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.0060.01216.50
8.3.50.0110.00722.20
8.3.40.0000.01519.10
8.3.30.0040.01119.04
8.3.20.0080.00020.20
8.3.10.0090.00023.58
8.3.00.0040.00719.50
8.2.180.0120.00316.88
8.2.170.0110.00722.96
8.2.160.0100.00720.35
8.2.150.0040.00424.18
8.2.140.0050.00324.66
8.2.130.0020.00526.16
8.2.120.0080.00022.09
8.2.110.0030.00622.12
8.2.100.0040.00817.91
8.2.90.0000.00919.20
8.2.80.0040.00418.04
8.2.70.0030.00617.88
8.2.60.0060.00317.93
8.2.50.0030.00618.07
8.2.40.0080.00018.34
8.2.30.0030.00618.17
8.2.20.0000.00917.98
8.2.10.0030.00519.93
8.2.00.0040.00717.91
8.1.280.0110.00425.92
8.1.270.0060.01022.11
8.1.260.0080.00026.35
8.1.250.0050.00228.09
8.1.240.0040.00423.68
8.1.230.0040.00719.13
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0030.00717.50
8.1.190.0040.00417.54
8.1.180.0000.00818.10
8.1.170.0040.00418.77
8.1.160.0040.00422.18
8.1.150.0000.00818.75
8.1.140.0000.00817.58
8.1.130.0000.00717.80
8.1.120.0000.00717.64
8.1.110.0060.00317.64
8.1.100.0020.00517.54
8.1.90.0080.00017.54
8.1.80.0040.00417.62
8.1.70.0080.00017.47
8.1.60.0050.00317.66
8.1.50.0070.00317.72
8.1.40.0080.00017.73
8.1.30.0060.00317.78
8.1.20.0060.00317.73
8.1.10.0030.00517.79
8.1.00.0040.00417.73
8.0.300.0000.00718.77
8.0.290.0020.00517.30
8.0.280.0050.00518.38
8.0.270.0040.00317.38
8.0.260.0070.00017.33
8.0.250.0040.00417.18
8.0.240.0070.00017.19
8.0.230.0000.00717.08
8.0.220.0040.00417.10
8.0.210.0000.00716.94
8.0.200.0000.00617.05
8.0.190.0050.00217.15
8.0.180.0070.00017.14
8.0.170.0000.00817.13
8.0.160.0000.00817.09
8.0.150.0000.00717.03
8.0.140.0000.00716.98
8.0.130.0030.00313.46
8.0.120.0080.00017.05
8.0.110.0040.00417.11
8.0.100.0080.00017.19
8.0.90.0070.00017.02
8.0.80.0150.00017.11
8.0.70.0040.00416.88
8.0.60.0040.00417.09
8.0.50.0000.00717.05
8.0.30.0120.01117.18
8.0.20.0100.01217.65
8.0.10.0040.00417.15
8.0.00.0090.00816.99
7.4.330.0050.00015.10
7.4.320.0000.00616.74
7.4.300.0030.00316.81
7.4.290.0050.00216.60
7.4.280.0070.00016.75
7.4.270.0000.00716.64
7.4.260.0000.00816.72
7.4.250.0040.00416.75
7.4.240.0050.00316.82
7.4.230.0000.00716.67
7.4.220.0110.00716.87
7.4.210.0080.00816.84
7.4.200.0070.00016.87
7.4.190.0030.00516.91
7.4.160.0100.01316.95
7.4.150.0170.00417.40
7.4.140.0050.01317.86
7.4.130.0100.00916.75
7.4.120.0040.01416.64
7.4.110.0140.00316.71
7.4.100.0120.00816.55
7.4.90.0120.00916.80
7.4.80.0060.01119.39
7.4.70.0060.01016.76
7.4.60.0090.00616.72
7.4.50.0000.00816.73
7.4.40.0090.00422.77
7.4.30.0060.01016.70
7.4.10.0090.00915.23
7.4.00.0070.01114.97
7.3.330.0060.00013.32
7.3.320.0030.00313.48
7.3.310.0050.00316.43
7.3.300.0000.00716.42
7.3.290.0120.00616.55
7.3.280.0070.00916.50
7.3.270.0130.00617.40
7.3.260.0160.00516.56
7.3.250.0080.01116.74
7.3.240.0130.00316.63
7.3.230.0160.00716.88
7.3.210.0090.00916.82
7.3.200.0100.00919.39
7.3.190.0090.01416.66
7.3.180.0160.00016.64
7.3.170.0070.01016.46
7.3.160.0100.00716.67
7.3.130.0060.01315.15
7.3.120.0070.01214.95
7.3.110.0070.01014.96
7.3.100.0030.01015.23
7.3.90.0090.00614.99
7.3.80.0050.00515.18
7.3.70.0030.01215.16
7.3.60.0060.00915.10
7.3.50.0040.01215.03
7.3.40.0050.00515.00
7.3.30.0130.00315.22
7.3.20.0000.01016.68
7.3.10.0000.01317.01
7.3.00.0080.00416.94
7.2.330.0060.01216.76
7.2.320.0150.00316.73
7.2.310.0090.00916.81
7.2.300.0040.01316.84
7.2.290.0160.00617.04
7.2.260.0070.01415.37
7.2.250.0070.01115.13
7.2.240.0000.01515.40
7.2.230.0030.01315.13
7.2.220.0120.00315.38
7.2.210.0040.00715.39
7.2.200.0030.01415.47
7.2.190.0000.01615.30
7.2.180.0090.00315.35
7.2.170.0070.00714.97
7.2.160.0060.00915.14
7.2.150.0000.01516.93
7.2.140.0030.01016.98
7.2.130.0000.01517.23
7.2.120.0100.00317.16
7.2.110.0030.00817.21
7.2.100.0090.00017.27
7.2.90.0000.01117.31
7.2.80.0060.00617.07
7.2.70.0070.01017.30
7.2.60.0070.01017.27
7.2.50.0070.00317.21
7.2.40.0070.00717.13
7.2.30.0060.00917.27
7.2.20.0050.00517.20
7.2.10.0100.00717.20
7.2.00.0050.01018.28
7.1.330.0000.01416.11
7.1.320.0070.01016.06
7.1.310.0050.00515.88
7.1.300.0070.01016.21
7.1.290.0040.01116.04
7.1.280.0040.00815.84
7.1.270.0050.00515.94
7.1.260.0000.01516.13
7.1.250.0030.00916.05
7.1.240.0030.00715.72
7.1.230.0030.01015.98
7.1.220.0140.00315.93
7.1.210.0070.00715.96
7.1.200.0070.00315.91
7.1.190.0090.00716.14
7.1.180.0070.00315.91
7.1.170.0030.00615.98
7.1.160.0070.01016.05
7.1.150.0110.00415.74
7.1.140.0060.00916.07
7.1.130.0090.00616.07
7.1.120.0070.00716.07
7.1.110.0030.00916.07
7.1.100.0050.00617.25
7.1.90.0060.00916.08
7.1.80.0000.01416.07
7.1.70.0050.00516.66
7.1.60.0080.01217.74
7.1.50.0050.01116.45
7.1.40.0030.01016.03
7.1.30.0080.00615.96
7.1.20.0050.00515.98
7.1.10.0040.00715.90
7.1.00.0050.04219.22
7.0.330.0040.00715.56
7.0.320.0040.00715.71
7.0.310.0070.00715.72
7.0.300.0050.00915.26
7.0.290.0030.00915.62
7.0.280.0030.01015.60
7.0.270.0100.00615.72
7.0.260.0040.01115.51
7.0.250.0030.00915.76
7.0.240.0090.00315.40
7.0.230.0030.01215.58
7.0.220.0000.00815.34
7.0.210.0070.00415.58
7.0.200.0020.00816.42
7.0.190.0110.00315.51
7.0.180.0040.00715.39
7.0.170.0060.00915.76
7.0.160.0070.01015.49
7.0.150.0090.00315.82
7.0.140.0070.03818.71
7.0.130.0090.00615.75
7.0.120.0150.00015.74
7.0.110.0040.01115.71
7.0.100.0070.01015.34
7.0.90.0090.00615.57
7.0.80.0060.00715.44
7.0.70.0060.00915.39
7.0.60.0050.02317.56
7.0.50.0090.03816.75
7.0.40.0050.04517.04
7.0.30.0160.02516.89
7.0.20.0200.03716.85
7.0.10.0080.04716.93
7.0.00.0050.04816.78
5.6.400.0040.00714.70
5.6.390.0070.00414.41
5.6.380.0040.00914.44
5.6.370.0100.01014.69
5.6.360.0000.00914.77
5.6.350.0100.00714.76
5.6.340.0060.00714.62
5.6.330.0130.00014.69
5.6.320.0030.00914.71
5.6.310.0040.01114.60
5.6.300.0110.00414.91
5.6.290.0070.00714.52
5.6.280.0080.03517.73
5.6.270.0000.01414.88
5.6.260.0000.01114.50
5.6.250.0060.01214.57
5.6.240.0070.01114.55
5.6.230.0040.01214.18
5.6.220.0030.01014.53
5.6.210.0050.03917.53
5.6.200.0090.02716.41
5.6.190.0100.02017.54
5.6.180.0100.02517.55
5.6.170.0170.04017.48
5.6.160.0070.02217.47
5.6.150.0070.02516.25
5.6.140.0030.03016.30
5.6.130.0030.02816.39
5.6.120.0030.02917.72
5.6.110.0150.03717.67
5.6.100.0070.02417.86
5.6.90.0050.03117.65
5.6.80.0040.04417.45
5.6.70.0130.00014.40
5.6.60.0040.01114.68
5.6.50.0000.01614.40
5.6.40.0000.01314.72
5.6.30.0050.00314.27
5.6.20.0030.00714.55
5.6.10.0110.00414.26
5.6.00.0040.00714.50
5.5.380.0090.00614.21
5.5.370.0120.00314.32
5.5.360.0020.00714.29
5.5.350.0050.03817.47
5.5.340.0020.02516.32
5.5.330.0000.02717.30
5.5.320.0070.03217.41
5.5.310.0130.02017.19
5.5.300.0110.04016.25
5.5.290.0020.04516.24
5.5.280.0080.04217.64
5.5.270.0080.03917.55
5.5.260.0020.02517.67
5.5.250.0070.02117.47
5.5.240.2050.02417.30
5.5.230.0030.01314.51
5.5.220.0050.00514.53
5.5.210.0000.01014.40
5.5.200.0000.00814.13
5.5.190.0060.00914.36
5.5.180.0040.01114.61
5.5.170.0090.00614.38
5.5.160.0070.00414.20
5.5.150.0110.00714.28
5.5.140.0090.00614.06
5.5.130.0070.00714.63
5.5.120.0080.00314.57
5.5.110.0090.00614.59
5.5.100.0150.00014.36
5.5.90.0080.00814.41
5.5.80.0090.00014.61
5.5.70.0000.01314.43
5.5.60.0060.00914.44
5.5.50.0070.00714.31
5.5.40.0100.00614.38
5.5.30.0090.00914.51
5.5.20.0060.00614.50
5.5.10.0030.00614.32
5.5.00.0070.01014.35
5.4.450.0270.03415.88
5.4.440.0490.02815.81
5.4.430.0490.02615.86
5.4.420.0290.03215.80
5.4.410.0510.02715.88
5.4.400.0520.03015.58
5.4.390.0490.03315.74
5.4.380.0100.03215.45
5.4.370.0020.03615.50
5.4.360.0110.04015.44
5.4.350.0150.03515.55
5.4.340.0100.02915.49
5.4.330.0030.00312.26
5.4.320.0060.02012.38
5.4.310.0040.02312.38
5.4.300.0050.02212.38
5.4.290.0040.02912.38
5.4.280.0040.02312.33
5.4.270.0050.02112.33
5.4.260.0040.02512.33
5.4.250.0080.02212.33
5.4.240.0010.02612.33
5.4.230.0050.02012.33
5.4.220.0050.02012.33
5.4.210.0030.02512.33
5.4.200.0060.02812.33
5.4.190.0090.01812.32
5.4.180.0040.02012.33
5.4.170.0120.02612.32
5.4.160.0160.05012.32
5.4.150.0120.02512.32
5.4.140.0110.02412.16
5.4.130.0080.02712.15
5.4.120.0100.02612.13
5.4.110.0080.02812.13
5.4.100.0090.02412.13
5.4.90.0100.02512.13
5.4.80.0090.02512.13
5.4.70.0090.02312.13
5.4.60.0140.03612.12
5.4.50.0110.02312.13
5.4.40.0100.02612.12
5.4.30.0100.02412.12
5.4.20.0090.02412.12
5.4.10.0130.03612.12
5.4.00.0090.02411.86
5.3.290.0040.02512.53
5.3.280.0070.02012.48
5.3.270.0100.02612.49
5.3.260.0120.02612.49
5.3.250.0120.02412.49
5.3.240.0110.02412.49
5.3.230.0090.03012.49
5.3.220.0130.03612.47
5.3.210.0100.02612.47
5.3.200.0120.02312.47
5.3.190.0100.02712.47
5.3.180.0070.02912.47
5.3.170.0210.04512.46
5.3.160.0110.02512.47
5.3.150.0090.02512.47
5.3.140.0090.02812.46
5.3.130.0110.02412.46
5.3.120.0090.02712.46
5.3.110.0120.02312.46
5.3.100.0140.02212.19
5.3.90.0090.02512.18
5.3.80.0120.02412.18
5.3.70.0140.03612.18
5.3.60.0130.02312.17
5.3.50.0120.02312.14
5.3.40.0120.02112.14
5.3.30.0100.02212.13
5.3.20.0110.02512.02
5.3.10.0120.04012.00
5.3.00.0110.02311.99
5.2.170.0140.0379.23
5.2.160.0140.0349.22
5.2.150.0110.0369.23
5.2.140.0110.0369.22
5.2.130.0160.0369.18
5.2.120.0100.0369.18
5.2.110.0140.0339.18
5.2.100.0130.0339.20
5.2.90.0080.0389.19
5.2.80.0100.0399.18
5.2.70.0230.0859.18
5.2.60.0140.0339.13
5.2.50.0110.0369.10
5.2.40.0160.0319.08
5.2.30.0240.0529.05
5.2.20.0140.0339.05
5.2.10.0100.0358.95
5.2.00.0100.0358.80
5.1.60.0090.0318.09
5.1.50.0090.0328.08
5.1.40.0110.0298.07
5.1.30.0110.0318.41
5.1.20.0130.0298.45
5.1.10.0120.0308.16
5.1.00.0080.0338.16
5.0.50.0120.0226.66
5.0.40.0280.0646.51
5.0.30.0110.0366.32
5.0.20.0110.0226.29
5.0.10.0070.0246.28
5.0.00.0080.0386.26
4.4.90.0070.0184.77
4.4.80.0110.0154.75
4.4.70.0080.0194.75
4.4.60.0110.0154.75
4.4.50.0120.0154.77
4.4.40.0060.0334.71
4.4.30.0070.0204.76
4.4.20.0100.0154.84
4.4.10.0050.0204.85
4.4.00.0070.0304.76
4.3.110.0040.0214.67
4.3.100.0050.0194.66
4.3.90.0080.0164.63
4.3.80.0070.0274.58
4.3.70.0060.0184.63
4.3.60.0040.0204.63
4.3.50.0060.0184.63
4.3.40.0100.0244.54
4.3.30.0070.0163.33
4.3.20.0070.0163.32
4.3.10.0050.0183.28
4.3.00.0130.0178.77

preferences:
43.48 ms | 401 KiB | 5 Q