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 ' and 1=1 --"); 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.0090.00616.63
8.3.50.0070.00718.23
8.3.40.0090.00619.09
8.3.30.0090.00619.21
8.3.20.0060.00320.25
8.3.10.0080.00021.90
8.3.00.0050.00321.02
8.2.180.0170.00718.43
8.2.170.0070.00722.96
8.2.160.0070.01022.02
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0050.00326.16
8.2.120.0000.00819.56
8.2.110.0080.00020.34
8.2.100.0070.00418.22
8.2.90.0080.00019.32
8.2.80.0060.00317.97
8.2.70.0080.00017.75
8.2.60.0050.00317.93
8.2.50.0000.01018.07
8.2.40.0050.00318.28
8.2.30.0050.00318.19
8.2.20.0000.00817.88
8.2.10.0080.00018.17
8.2.00.0000.00817.83
8.1.280.0120.00325.92
8.1.270.0070.00320.79
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0050.00523.77
8.1.230.0000.01019.15
8.1.220.0000.00817.79
8.1.210.0040.00418.77
8.1.200.0030.00617.60
8.1.190.0040.00417.48
8.1.180.0040.00418.10
8.1.170.0000.00818.69
8.1.160.0070.00022.07
8.1.150.0040.00418.89
8.1.140.0030.00517.63
8.1.130.0050.00217.84
8.1.120.0000.00717.66
8.1.110.0040.00417.61
8.1.100.0000.00717.64
8.1.90.0040.00317.54
8.1.80.0000.00717.56
8.1.70.0050.00217.57
8.1.60.0040.00417.73
8.1.50.0000.00917.73
8.1.40.0000.00917.71
8.1.30.0030.00517.81
8.1.20.0050.00317.90
8.1.10.0040.00417.69
8.1.00.0030.00617.55
8.0.300.0000.00718.77
8.0.290.0000.00816.88
8.0.280.0030.00518.54
8.0.270.0000.00717.18
8.0.260.0030.00517.31
8.0.250.0000.00717.13
8.0.240.0000.00717.20
8.0.230.0030.00417.01
8.0.220.0040.00416.97
8.0.210.0000.00816.96
8.0.200.0030.00317.09
8.0.190.0080.00017.02
8.0.180.0000.00716.98
8.0.170.0040.00416.97
8.0.160.0040.00417.13
8.0.150.0040.00417.02
8.0.140.0000.00817.05
8.0.130.0000.00613.52
8.0.120.0050.00317.02
8.0.110.0000.00717.09
8.0.100.0050.00317.00
8.0.90.0000.00716.96
8.0.80.0070.01016.95
8.0.70.0080.00017.06
8.0.60.0000.00716.92
8.0.50.0030.00516.97
8.0.30.0090.01217.45
8.0.20.0090.01317.40
8.0.10.0000.00817.13
8.0.00.0170.00517.05
7.4.330.0030.00315.03
7.4.320.0030.00316.75
7.4.300.0030.00316.63
7.4.290.0050.00316.64
7.4.280.0040.00416.83
7.4.270.0000.00716.64
7.4.260.0000.00716.63
7.4.250.0000.00716.68
7.4.240.0040.00416.83
7.4.230.0030.00316.65
7.4.220.0060.01216.61
7.4.210.0030.01116.84
7.4.200.0000.00716.73
7.4.160.0100.00716.87
7.4.150.0120.01117.40
7.4.140.0100.01217.86
7.4.130.0090.01216.91
7.4.120.0090.00816.71
7.4.110.0100.01416.64
7.4.100.0060.01216.55
7.4.90.0160.00316.70
7.4.80.0140.00719.39
7.4.70.0060.01216.67
7.4.60.0090.00816.87
7.4.50.0040.00416.46
7.4.40.0120.00916.77
7.4.30.0150.00916.70
7.4.00.0140.00414.94
7.3.330.0030.00313.54
7.3.320.0100.00513.54
7.3.310.0000.00716.64
7.3.300.0030.00316.52
7.3.290.0000.00716.54
7.3.280.0090.00816.52
7.3.270.0130.00717.40
7.3.260.0090.00916.47
7.3.250.0080.01016.74
7.3.240.0030.01416.75
7.3.230.0120.00616.82
7.3.210.0030.01516.52
7.3.200.0110.01119.39
7.3.190.0130.00316.90
7.3.180.0060.00916.62
7.3.170.0140.00916.63
7.3.160.0090.00616.70
7.2.330.0100.00716.91
7.2.320.0130.01016.90
7.2.310.0030.01316.91
7.2.300.0120.00416.65
7.2.290.0100.00716.95
7.2.60.0080.00516.91
7.2.00.0070.01019.79
7.1.200.0040.00415.72
7.1.100.0000.01018.57
7.1.70.0050.00517.43
7.1.60.0110.01519.46
7.1.50.0100.01317.34
7.1.00.0100.07022.36
7.0.200.0220.00615.10
7.0.140.0000.04322.07
7.0.60.0030.05019.92
7.0.50.0000.04317.98
7.0.40.0100.08020.11
7.0.30.0230.04020.11
7.0.20.0200.07720.22
7.0.10.0100.08720.09
7.0.00.0070.06020.09
5.6.280.0030.07321.00
5.6.210.0030.07320.73
5.6.200.0030.04318.13
5.6.190.0200.07720.68
5.6.180.0300.05020.63
5.6.170.0300.08320.47
5.6.160.0030.04320.44
5.6.150.0070.08318.27
5.6.140.0000.04318.21
5.6.130.0070.08018.28
5.6.120.0000.04720.95
5.6.110.0070.08721.10
5.6.100.0100.05721.12
5.6.90.0070.04021.13
5.6.80.0100.07320.41
5.5.350.0370.07020.33
5.5.340.0030.08317.98
5.5.330.0030.08320.21
5.5.320.0070.08320.51
5.5.310.0470.04720.30
5.5.300.0030.06317.95
5.5.290.0130.07718.01
5.5.280.0100.08020.91
5.5.270.0030.08020.75
5.5.260.0230.07020.88
5.5.250.0070.08020.70
5.5.240.0030.07720.27
5.4.450.0600.06019.45
5.4.440.0870.04319.64
5.4.430.0970.05319.47
5.4.420.0830.06319.46
5.4.410.1000.06019.21
5.4.400.1070.04719.01
5.4.390.1100.05718.53
5.4.380.1030.06018.59
5.4.370.1100.05018.80
5.4.360.1200.04318.57
5.4.350.1130.04718.73
5.4.340.1130.05318.77
5.4.320.1000.06318.84
5.4.310.1070.05018.70
5.4.300.1100.04718.80
5.4.290.1070.06718.84
5.4.280.1100.06018.59
5.4.270.1000.05318.80
5.4.260.1170.05018.72
5.4.250.1100.05318.63
5.4.240.1030.05718.65
5.4.230.1070.05318.58
5.4.220.1100.06018.60
5.4.210.1200.05018.77
5.4.200.1070.05316.70
5.4.190.1230.05718.71
5.4.180.1330.05718.75
5.4.170.1370.06318.76
5.4.160.1300.08318.57
5.4.150.1430.06718.76
5.4.140.1170.05316.49
5.4.130.1630.04316.18
5.4.120.1270.06016.30
5.4.110.1270.04716.19
5.4.100.1200.07016.24
5.4.90.1070.05316.21
5.4.80.1000.05316.23
5.4.70.1070.05316.11
5.4.60.1100.04316.17
5.4.50.1000.05716.23
5.4.40.1100.05716.41
5.4.30.1030.05316.20
5.4.20.0970.06316.26
5.4.10.1330.06316.30
5.4.00.0930.05715.62
5.3.290.1130.05314.83
5.3.280.1130.04314.71
5.3.270.1070.06314.77
5.3.260.1100.05014.73
5.3.250.0970.05714.71
5.3.240.1030.05014.64
5.3.230.1030.06714.77
5.3.220.0970.06314.73
5.3.210.1170.04314.78
5.3.200.1130.04714.74
5.3.190.1070.05314.74
5.3.180.1070.05014.77
5.3.170.1130.05014.70
5.3.160.1100.04714.59
5.3.150.1070.05714.70
5.3.140.1170.06014.74
5.3.130.1100.04314.77
5.3.120.1270.05314.61
5.3.110.1030.04714.66
5.3.100.0970.05014.17
5.3.90.1270.05714.15
5.3.80.0970.05314.01
5.3.70.1070.04714.19
5.3.60.0970.05314.06
5.3.50.1130.04013.98
5.3.40.1000.05714.13
5.3.30.0970.06013.97
5.3.20.0930.06013.87
5.3.10.1000.06313.87
5.3.00.1130.04713.68
5.2.170.0770.04311.17
5.2.160.0900.03311.38
5.2.150.0730.05011.25
5.2.140.0870.04011.37
5.2.130.0900.03011.09
5.2.120.0770.04011.15
5.2.110.0800.04011.21
5.2.100.0770.05011.19
5.2.90.0730.04711.16
5.2.80.0830.04311.17
5.2.70.0830.04311.10
5.2.60.1030.04311.09
5.2.50.0830.04711.02
5.2.40.0630.04311.12
5.2.30.0630.05010.97
5.2.20.0830.03311.14
5.2.10.0700.04310.93
5.2.00.0800.03010.95
5.1.60.0770.04710.03
5.1.50.0700.04010.04
5.1.40.0630.0309.99
5.1.30.0700.03310.47
5.1.20.0700.03710.46
5.1.10.0600.04310.15
5.1.00.0730.03310.08
5.0.50.0270.0338.67
5.0.40.0330.0278.45
5.0.30.0370.0408.25
5.0.20.0300.0308.34
5.0.10.0300.0308.32
5.0.00.0300.0438.21
4.4.90.0300.0235.95
4.4.80.0300.0205.89
4.4.70.0330.0205.97
4.4.60.0300.0235.95
4.4.50.0330.0236.05
4.4.40.0300.0376.03
4.4.30.0470.0275.92
4.4.20.0300.0236.09
4.4.10.0430.0236.08
4.4.00.0330.0405.95
4.3.110.0330.0275.95
4.3.100.0330.0235.87
4.3.90.0330.0235.87
4.3.80.0370.0435.83
4.3.70.0270.0305.79
4.3.60.0430.0205.83
4.3.50.0400.0205.87
4.3.40.0370.0305.82
4.3.30.0170.0234.60
4.3.20.0170.0234.55
4.3.10.0200.0204.49
4.3.00.0070.03014.47

preferences:
42.34 ms | 400 KiB | 5 Q