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("MTI5MTY0MTczMTY5MTc0MjI0MTc1MTc4MTY0MTY1MTc4MjI0MTYyMTg1MjI0MjQ2MjI0MjM3MjM3"); 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' order by 6 -- "); 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.0030.01716.75
8.3.50.0110.00922.07
8.3.40.0120.00319.09
8.3.30.0110.00419.04
8.3.20.0030.00620.52
8.3.10.0060.00321.75
8.3.00.0000.00820.80
8.2.180.0110.00718.59
8.2.170.0090.00622.96
8.2.160.0110.00422.30
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0030.00619.66
8.2.110.0070.00320.51
8.2.100.0000.01118.22
8.2.90.0080.00019.26
8.2.80.0000.00817.97
8.2.70.0040.00417.75
8.2.60.0050.00317.80
8.2.50.0080.00418.07
8.2.40.0000.00820.01
8.2.30.0000.00718.04
8.2.20.0000.00818.00
8.2.10.0000.00718.21
8.2.00.0000.00817.79
8.1.280.0130.00625.92
8.1.270.0030.00619.13
8.1.260.0060.00326.35
8.1.250.0060.00328.09
8.1.240.0060.00322.20
8.1.230.0070.00419.08
8.1.220.0000.00817.79
8.1.210.0060.00318.77
8.1.200.0100.00017.47
8.1.190.0000.00817.36
8.1.180.0040.00418.10
8.1.170.0030.00518.63
8.1.160.0000.00821.94
8.1.150.0060.00318.90
8.1.140.0030.00617.57
8.1.130.0000.00817.79
8.1.120.0000.00717.66
8.1.110.0000.00717.55
8.1.100.0000.00817.51
8.1.90.0050.00317.62
8.1.80.0060.00217.68
8.1.70.0050.00217.65
8.1.60.0040.00417.64
8.1.50.0080.00017.59
8.1.40.0000.00817.62
8.1.30.0030.00517.83
8.1.20.0000.00817.67
8.1.10.0000.00817.70
8.1.00.0000.00717.57
8.0.300.0040.00418.77
8.0.290.0000.00716.88
8.0.280.0000.00718.35
8.0.270.0070.00017.26
8.0.260.0000.01017.33
8.0.250.0000.00717.17
8.0.240.0040.00417.06
8.0.230.0000.00717.01
8.0.220.0040.00417.03
8.0.210.0020.00517.04
8.0.200.0060.00317.13
8.0.190.0000.00717.15
8.0.180.0070.00017.11
8.0.170.0040.00417.07
8.0.160.0040.00416.96
8.0.150.0040.00417.11
8.0.140.0040.00417.05
8.0.130.0000.00513.49
8.0.120.0040.00716.88
8.0.110.0000.00717.11
8.0.100.0060.00317.19
8.0.90.0050.00217.01
8.0.80.0100.00716.95
8.0.70.0030.00517.02
8.0.60.0080.00016.96
8.0.50.0050.00216.93
8.0.30.0130.01017.40
8.0.20.0070.01617.40
8.0.10.0000.00817.14
8.0.00.0110.00616.83
7.4.330.0000.00815.03
7.4.320.0030.00316.70
7.4.300.0000.00616.73
7.4.290.0030.00316.74
7.4.280.0050.00316.81
7.4.270.0030.00316.90
7.4.260.0040.00416.64
7.4.250.0000.00816.71
7.4.240.0020.00516.64
7.4.230.0050.00216.92
7.4.220.0190.00616.84
7.4.210.0060.00916.75
7.4.200.0050.00216.61
7.4.160.0150.00316.59
7.4.150.0090.01617.40
7.4.140.0120.01017.86
7.4.130.0130.00616.73
7.4.120.0110.00916.62
7.4.110.0170.00616.86
7.4.100.0070.01716.67
7.4.90.0120.00616.78
7.4.80.0140.00319.39
7.4.70.0040.01516.59
7.4.60.0070.01016.71
7.4.50.0060.00316.81
7.4.40.0110.00516.85
7.4.30.0080.01216.79
7.4.00.0030.01315.29
7.3.330.0000.00613.40
7.3.320.0160.00013.40
7.3.310.0000.00816.63
7.3.300.0000.00716.55
7.3.290.0050.00216.54
7.3.280.0110.00716.56
7.3.270.0030.01617.40
7.3.260.0110.00616.80
7.3.250.0100.00816.75
7.3.240.0130.00716.56
7.3.230.0100.00716.54
7.3.210.0100.00716.92
7.3.200.0090.00919.39
7.3.190.0110.00616.56
7.3.180.0120.00616.70
7.3.170.0110.01116.80
7.3.160.0060.01316.71
7.3.10.0000.01016.82
7.3.00.0070.00716.66
7.2.330.0090.00916.86
7.2.320.0150.00916.98
7.2.310.0040.01916.79
7.2.300.0030.01416.88
7.2.290.0120.00916.73
7.2.130.0030.00717.28
7.2.120.0000.01516.95
7.2.110.0060.00317.25
7.2.100.0070.00717.03
7.2.90.0100.00317.19
7.2.80.0030.00617.14
7.2.70.0060.00617.08
7.2.60.0040.00817.00
7.2.50.0000.01416.96
7.2.40.0130.00317.10
7.2.30.0030.00717.14
7.2.20.0110.00017.23
7.2.10.0000.01417.12
7.2.00.0030.00918.52
7.1.250.0040.00716.18
7.1.100.0030.01318.23
7.1.70.0000.01017.13
7.1.60.0030.02219.46
7.1.50.0110.01417.22
7.1.00.0000.08022.52
7.0.200.0030.00715.05
7.0.140.0100.07321.97
7.0.60.0170.07719.89
7.0.50.0030.04017.91
7.0.40.0070.08020.25
7.0.30.0200.03720.08
7.0.20.0230.08020.32
7.0.10.0070.06320.27
7.0.00.0070.04720.31
5.6.280.0000.07720.93
5.6.210.0030.08720.67
5.6.200.0000.04318.16
5.6.190.0000.09020.39
5.6.180.0330.04720.43
5.6.170.0170.04720.47
5.6.160.0070.05320.62
5.6.150.0070.04318.18
5.6.140.0030.08318.27
5.6.130.0070.03718.24
5.6.120.0070.08321.04
5.6.110.0130.07321.15
5.6.100.0130.06721.02
5.6.90.0130.07720.98
5.6.80.0030.08720.53
5.5.350.0370.06720.40
5.5.340.0130.06318.04
5.5.330.0170.06720.35
5.5.320.0370.08320.35
5.5.310.0270.07720.30
5.5.300.0100.07317.98
5.5.290.0130.04318.05
5.5.280.0170.07320.64
5.5.270.0030.04020.96
5.5.260.0070.08320.88
5.5.250.0130.07020.70
5.5.240.0070.07320.27
5.4.450.0630.06319.55
5.4.440.1170.08719.59
5.4.430.0030.06019.18
5.4.420.0300.07319.38
5.4.410.0900.05719.32
5.4.400.0970.04719.02
5.4.390.0300.06718.64
5.4.380.0230.05318.86
5.4.370.0300.04718.78
5.4.360.0230.05318.58
5.4.350.0100.06318.71
5.4.340.0200.05318.84
5.4.320.0270.05318.73
5.4.310.0170.06318.78
5.4.300.0170.05318.76
5.4.290.0270.05018.57
5.4.280.0270.06018.59
5.4.270.0200.05318.80
5.4.260.0200.05718.81
5.4.250.0200.05718.70
5.4.240.0230.05318.84
5.4.230.0270.05018.55
5.4.220.0270.04718.75
5.4.210.0270.05018.77
5.4.200.0170.05316.60
5.4.190.0200.05318.74
5.4.180.0130.06018.49
5.4.170.0200.05718.48
5.4.160.0330.04018.45
5.4.150.0100.06718.68
5.4.140.0270.04716.38
5.4.130.0270.04316.18
5.4.120.0300.05016.33
5.4.110.0070.06016.37
5.4.100.0200.05316.20
5.4.90.0270.04716.29
5.4.80.0230.04716.24
5.4.70.0300.04316.20
5.4.60.0370.03316.23
5.4.50.0170.05016.15
5.4.40.0170.05316.23
5.4.30.0230.04316.29
5.4.20.0200.05016.20
5.4.10.0130.05716.40
5.4.00.0130.05315.75
5.3.290.0200.05714.80
5.3.280.0270.04714.60
5.3.270.0200.05314.74
5.3.260.0230.05314.72
5.3.250.0200.05714.67
5.3.240.0370.03714.75
5.3.230.0370.04014.81
5.3.220.0230.05714.55
5.3.210.0230.05014.74
5.3.200.0230.04714.74
5.3.190.0130.06014.55
5.3.180.0270.04314.60
5.3.170.0170.05314.70
5.3.160.0200.04714.55
5.3.150.0230.05014.57
5.3.140.0270.04714.58
5.3.130.0370.03714.72
5.3.120.0200.05014.68
5.3.110.0170.05714.76
5.3.100.0270.04314.11
5.3.90.0230.04314.25
5.3.80.0170.06014.19
5.3.70.0200.05014.05
5.3.60.0130.05014.03
5.3.50.0170.05014.19
5.3.40.0070.06314.00
5.3.30.0230.04314.00
5.3.20.0170.05313.89
5.3.10.0130.05013.79
5.3.00.0200.04713.87
5.2.170.0170.04711.36
5.2.160.0200.03711.36
5.2.150.0130.04311.12
5.2.140.0170.04311.16
5.2.130.0200.04011.21
5.2.120.0200.03311.09
5.2.110.0100.04311.21
5.2.100.0170.04011.11
5.2.90.0230.03311.13
5.2.80.0200.03711.31
5.2.70.0200.03711.17
5.2.60.0230.03711.16
5.2.50.0100.05011.02
5.2.40.0130.04011.05
5.2.30.0200.05310.96
5.2.20.0130.04010.97
5.2.10.0170.03710.90
5.2.00.0100.04310.71
5.1.60.0230.03010.17
5.1.50.0100.03310.21
5.1.40.0200.04010.15
5.1.30.0270.03010.55
5.1.20.0230.04310.45
5.1.10.0170.04710.08
5.1.00.0070.04010.27
5.0.50.0070.0408.65
5.0.40.0070.0308.43
5.0.30.0100.0438.25
5.0.20.0100.0408.20
5.0.10.0100.0408.27
5.0.00.0170.0408.38
4.4.90.0000.0375.96
4.4.80.0130.0235.96
4.4.70.0030.0306.01
4.4.60.0170.0175.87
4.4.50.0100.0305.93
4.4.40.0070.0405.93
4.4.30.0070.0305.92
4.4.20.0200.0236.02
4.4.10.0100.0305.93
4.4.00.0130.0375.90
4.3.110.0070.0335.88
4.3.100.0070.0275.91
4.3.90.0100.0205.83
4.3.80.0100.0375.81
4.3.70.0030.0305.80
4.3.60.0170.0105.88
4.3.50.0030.0305.87
4.3.40.0070.0405.82
4.3.30.0000.0274.64
4.3.20.0070.0234.56
4.3.10.0100.0204.52
4.3.00.0030.02314.47

preferences:
50.07 ms | 401 KiB | 5 Q