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) { echo "$s: " .$s. "\r\n"; $a = $s^192; echo "$a: " .$a . "\r\n"; $decStr .= chr($a); } return $decStr; } return false; } return false; } echo decrypt("MTI5MTY0MTczMTY5MTc0"); echo decrypt("MTQ4MTY4MTY1MTMxMTc1MTgz"); ?>

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.70.0110.00716.88
8.3.60.0120.00918.45
8.3.50.0120.00522.05
8.3.40.0150.00019.16
8.3.30.0140.00319.16
8.3.20.0000.00720.38
8.3.10.0080.00022.04
8.3.00.0080.00022.46
8.2.180.0130.00918.67
8.2.170.0070.00722.96
8.2.160.0070.00720.35
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0100.00326.16
8.2.120.0040.00417.88
8.2.110.0100.00021.91
8.2.100.0040.00819.83
8.2.90.0000.00819.26
8.2.80.0040.00417.97
8.2.70.0080.00017.88
8.2.60.0030.00618.16
8.2.50.0000.00818.07
8.2.40.0030.00618.16
8.2.30.0020.00518.07
8.2.20.0000.00717.80
8.2.10.0000.00819.82
8.2.00.0040.00417.83
8.1.280.0190.00425.92
8.1.270.0050.00322.18
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0060.00323.98
8.1.230.0080.00418.96
8.1.220.0080.00017.74
8.1.210.0000.00818.77
8.1.200.0000.01017.38
8.1.190.0060.00317.63
8.1.180.0080.00018.10
8.1.170.0060.00318.73
8.1.160.0060.00322.04
8.1.150.0000.00718.71
8.1.140.0040.00417.52
8.1.130.0000.00717.74
8.1.120.0040.00417.65
8.1.110.0070.00017.62
8.1.100.0050.00217.61
8.1.90.0030.00517.57
8.1.80.0040.00417.55
8.1.70.0000.00717.51
8.1.60.0130.00017.68
8.1.50.0040.00417.68
8.1.40.0030.00517.67
8.1.30.0040.00417.83
8.1.20.0040.00417.83
8.1.10.0040.00417.75
8.1.00.0040.00417.54
8.0.300.0040.00418.77
8.0.290.0070.00017.05
8.0.280.0000.00718.48
8.0.270.0000.00717.28
8.0.260.0000.00717.02
8.0.250.0000.00817.16
8.0.240.0060.00317.09
8.0.230.0030.00317.10
8.0.220.0070.00017.06
8.0.210.0070.00017.04
8.0.200.0040.00417.02
8.0.190.0000.00716.96
8.0.180.0030.00517.03
8.0.170.0030.00517.08
8.0.160.0000.00717.16
8.0.150.0040.00416.93
8.0.140.0000.00716.89
8.0.130.0060.00013.47
8.0.120.0000.00816.96
8.0.110.0000.00716.99
8.0.100.0070.00016.92
8.0.90.0000.00816.98
8.0.80.0030.01617.10
8.0.70.0080.00017.17
8.0.60.0000.00717.07
8.0.50.0030.00516.94
8.0.30.0140.00817.24
8.0.20.0080.01317.40
8.0.10.0000.00817.04
8.0.00.0090.01216.92
7.4.330.0000.00515.11
7.4.320.0030.00316.73
7.4.300.0070.00016.74
7.4.290.0040.00416.74
7.4.280.0000.00716.67
7.4.270.0070.00016.73
7.4.260.0000.00716.77
7.4.250.0000.00716.78
7.4.240.0020.00516.68
7.4.230.0000.00716.73
7.4.220.0030.01516.86
7.4.210.0070.00816.82
7.4.200.0000.00716.78
7.4.190.0030.00516.97
7.4.160.0090.00916.71
7.4.150.0060.01217.40
7.4.140.0130.00617.86
7.4.130.0110.00816.73
7.4.120.0130.00516.70
7.4.110.0060.01516.71
7.4.100.0090.01516.84
7.4.90.0060.01316.64
7.4.80.0070.01219.39
7.4.70.0080.00816.78
7.4.60.0030.01316.84
7.4.50.0020.00216.62
7.4.40.0030.01322.77
7.4.30.0130.00416.61
7.4.00.0050.01215.05
7.3.330.0050.00313.47
7.3.320.0030.00313.57
7.3.310.0000.00716.61
7.3.300.0030.00316.46
7.3.290.0140.00016.53
7.3.280.0100.00616.51
7.3.270.0030.01417.40
7.3.260.0140.00316.80
7.3.250.0060.01116.62
7.3.240.0150.00416.43
7.3.230.0060.01116.50
7.3.210.0030.01516.87
7.3.200.0060.01019.39
7.3.190.0110.00716.39
7.3.180.0140.00316.94
7.3.170.0080.00816.57
7.3.160.0080.00816.64
7.3.120.0120.00314.72
7.3.110.0070.01114.64
7.3.100.0040.01214.71
7.3.90.0060.00614.92
7.3.80.0000.00914.95
7.3.70.0040.00914.82
7.3.60.0060.00914.56
7.3.50.0030.00915.10
7.3.40.0060.01214.97
7.3.30.0000.01414.63
7.3.20.0040.01116.66
7.3.10.0000.01116.80
7.3.00.0040.01516.63
7.2.330.0100.00716.70
7.2.320.0120.00616.79
7.2.310.0060.01116.84
7.2.300.0100.01316.71
7.2.290.0000.01716.93
7.2.250.0070.01015.25
7.2.240.0100.01014.94
7.2.230.0030.01015.13
7.2.220.0110.00315.17
7.2.210.0090.00615.16
7.2.200.0130.00314.88
7.2.190.0070.01015.12
7.2.180.0000.01714.81
7.2.170.0070.01014.94
7.2.160.0030.00715.15
7.2.150.0040.01216.88
7.2.140.0060.00616.86
7.2.130.0110.00716.80
7.2.120.0070.00716.84
7.2.110.0060.01016.87
7.2.100.0060.00917.11
7.2.90.0100.00317.23
7.2.80.0030.01016.91
7.2.70.0030.01016.85
7.2.60.0000.01416.70
7.2.50.0000.01617.14
7.2.40.0060.00616.81
7.2.30.0090.00617.10
7.2.20.0060.00617.01
7.2.10.0120.00616.92
7.2.00.0050.01018.27
7.1.330.0040.01315.91
7.1.320.0080.00416.00
7.1.310.0040.00415.89
7.1.300.0090.00615.70
7.1.290.0070.00815.91
7.1.280.0070.00715.79
7.1.270.0060.00315.87
7.1.260.0120.00016.06
7.1.250.0060.00915.93
7.1.240.0040.01015.58
7.1.230.0000.01416.09
7.1.220.0070.00715.98
7.1.210.0070.00715.93
7.1.200.0060.00615.92
7.1.190.0050.00815.80
7.1.180.0100.00616.01
7.1.170.0060.00915.67
7.1.160.0040.00816.04
7.1.150.0090.00915.89
7.1.140.0020.00715.90
7.1.130.0130.00016.09
7.1.120.0030.01016.03
7.1.110.0000.00916.19
7.1.100.0090.00617.12
7.1.90.0040.01115.89
7.1.80.0130.00316.10
7.1.70.0020.00716.63
7.1.60.0070.01417.74
7.1.50.0050.01016.43
7.1.40.0060.00815.91
7.1.30.0040.01215.78
7.1.20.0000.01315.63
7.1.10.0030.01215.93
7.1.00.0040.04219.23
7.0.330.0090.00615.63
7.0.320.0070.00715.23
7.0.310.0080.00315.39
7.0.300.0060.00615.25
7.0.290.0040.01115.59
7.0.280.0070.00315.54
7.0.270.0030.01415.42
7.0.260.0040.01215.33
7.0.250.0100.00315.52
7.0.240.0000.01415.61
7.0.230.0110.00415.48
7.0.220.0070.00715.34
7.0.210.0070.00715.29
7.0.200.0020.00916.14
7.0.190.0030.01215.30
7.0.180.0150.00015.54
7.0.170.0000.01115.32
7.0.160.0030.01015.54
7.0.150.0070.00715.70
7.0.140.0070.03518.74
7.0.130.0100.00315.66
7.0.120.0130.00015.64
7.0.110.0070.00715.49
7.0.100.0110.00415.35
7.0.90.0060.00615.43
7.0.80.0030.01215.47
7.0.70.0050.00915.46
7.0.60.0100.03617.66
7.0.50.0080.04116.66
7.0.40.0020.03017.05
7.0.30.0150.03316.71
7.0.20.0150.02816.81
7.0.10.0050.03216.81
7.0.00.0050.04816.85
5.6.400.0110.00614.68
5.6.390.0070.00714.20
5.6.380.0060.00814.70
5.6.370.0040.00814.55
5.6.360.0060.00614.30
5.6.350.0030.01214.39
5.6.340.0060.00614.64
5.6.330.0050.01014.44
5.6.320.0110.00414.20
5.6.310.0030.01014.29
5.6.300.0060.01014.49
5.6.290.0000.01214.30
5.6.280.0080.03817.83
5.6.270.0040.00714.72
5.6.260.0140.00314.20
5.6.250.0030.01014.40
5.6.240.0050.00514.61
5.6.230.0090.00314.61
5.6.220.0000.01814.58
5.6.210.0070.03917.39
5.6.200.0070.04716.35
5.6.190.0050.03317.55
5.6.180.0280.03817.47
5.6.170.0180.04817.30
5.6.160.0080.03017.43
5.6.150.0080.04316.16
5.6.140.0130.03816.24
5.6.130.0060.02916.37
5.6.120.0100.04317.74
5.6.110.0120.02917.76
5.6.100.0100.03517.57
5.6.90.0030.04217.62
5.6.80.0080.03217.40
5.6.70.0040.01013.93
5.6.60.0130.00314.26
5.6.50.0040.00814.27
5.6.40.0040.01514.34
5.6.30.0030.01414.46
5.6.20.0150.00014.41
5.6.10.0000.01214.52
5.6.00.0120.00314.11
5.5.380.0030.00914.45
5.5.370.0100.00714.51
5.5.360.0000.01214.53
5.5.350.0080.02817.43
5.5.340.0070.04316.28
5.5.330.0070.05017.54
5.5.320.0190.02017.50
5.5.310.0190.02617.36
5.5.300.0050.02216.35
5.5.290.0060.04316.12
5.5.280.0150.03917.55
5.5.270.0090.04517.39
5.5.260.0070.04517.48
5.5.250.0020.03017.47
5.5.240.0040.04317.31
5.5.230.0090.00614.20
5.5.220.0050.00514.28
5.5.210.0030.01214.46
5.5.200.0060.00314.53
5.5.190.0090.00914.56
5.5.180.0030.00914.18
5.5.170.0030.01414.29
5.5.160.0120.00614.26
5.5.150.0070.01114.52
5.5.140.0000.01414.55
5.5.130.0070.00714.04
5.5.120.0070.01114.43
5.5.110.0060.00914.42
5.5.100.0080.00514.59
5.5.90.0000.01614.33
5.5.80.0000.01214.37
5.5.70.0040.00414.46
5.5.60.0030.00614.20
5.5.50.0070.00714.48
5.5.40.0060.00914.42
5.5.30.0070.00414.15
5.5.20.0030.00914.36
5.5.10.0030.01314.16
5.5.00.0060.00914.43
5.4.450.0330.03615.26
5.4.440.0450.03115.39
5.4.430.0450.03215.35
5.4.420.0530.03415.42
5.4.410.0350.02715.35
5.4.400.0510.02715.20
5.4.390.0490.02315.01
5.4.380.0200.02514.92
5.4.370.0250.03214.76
5.4.360.0140.02915.03
5.4.350.0170.03015.06
5.4.340.0160.02814.91
5.4.330.0030.00611.38
5.4.320.0090.02311.94
5.4.310.0040.02711.96
5.4.300.0070.02312.00
5.4.290.0070.02511.90
5.4.280.0050.02411.70
5.4.270.0060.03814.86
5.4.260.0100.03015.07
5.4.250.0090.02815.16
5.4.240.0090.02514.92
5.4.230.0110.02615.01
5.4.220.0050.03214.96
5.4.210.0070.03114.92
5.4.200.0030.04315.09
5.4.190.0070.02815.08
5.4.180.0080.02915.07
5.4.170.0050.03415.16
5.4.160.0100.02815.11
5.4.150.0150.03814.93
5.4.140.0120.02613.90
5.4.130.0090.02613.66
5.4.120.0030.04113.83
5.4.110.0090.03913.99
5.4.100.0080.02413.69
5.4.90.0040.03313.75
5.4.80.0120.03513.79
5.4.70.0100.02713.68
5.4.60.0050.03113.71
5.4.50.0070.04013.78
5.4.40.0100.03613.85
5.4.30.0120.03213.82
5.4.20.0110.02813.98
5.4.10.0160.03413.84
5.4.00.0050.04313.70
5.3.290.0080.02311.70
5.3.280.0070.02912.64
5.3.270.0080.03312.73
5.3.260.0060.02812.66
5.3.250.0080.03512.73
5.3.240.0070.03512.58
5.3.230.0070.03312.51
5.3.220.0090.04112.42
5.3.210.0080.03012.60
5.3.200.0070.03412.63
5.3.190.0090.04212.56
5.3.180.0100.03312.74
5.3.170.0090.03112.58
5.3.160.0050.02812.75
5.3.150.0120.02412.74
5.3.140.0050.03512.67
5.3.130.0070.02612.70
5.3.120.0070.03312.65
5.3.110.0100.02712.71
5.3.100.0080.03012.47
5.3.90.0070.03812.29
5.3.80.0070.03612.23
5.3.70.0110.03512.34
5.3.60.0030.02812.21
5.3.50.0150.02812.29
5.3.40.0080.03512.31
5.3.30.0030.03112.19
5.3.20.0050.02712.07
5.3.10.0130.03312.05
5.3.00.0030.04112.17
5.2.170.0030.06011.11
5.2.160.0100.05311.13
5.2.150.0100.04311.10
5.2.140.0070.06311.23
5.2.130.0070.04011.32
5.2.120.0130.04311.26
5.2.110.0000.04711.12
5.2.100.0070.04011.08
5.2.90.0100.06011.00
5.2.80.0070.06011.06
5.2.70.0070.04711.17
5.2.60.0070.04011.21
5.2.50.0230.04011.01
5.2.40.0030.05311.19
5.2.30.0170.04710.95
5.2.20.0130.03310.93
5.2.10.0130.04710.92
5.2.00.0070.04010.81
5.1.60.0100.0309.91
5.1.50.0100.0339.96
5.1.40.0000.04010.06
5.1.30.0130.03310.49
5.1.20.0000.05310.31
5.1.10.0170.04010.06
5.1.00.0130.0339.91
5.0.50.0030.0338.67
5.0.40.0070.0238.26
5.0.30.0030.0478.39
5.0.20.0130.0308.17
5.0.10.0170.0308.25
5.0.00.0070.0478.27
4.4.90.0030.0306.56
4.4.80.0070.0236.56
4.4.70.0130.0176.56
4.4.60.0130.0276.56
4.4.50.0000.0236.56
4.4.40.0070.0406.56
4.4.30.0070.0376.56
4.4.20.0070.0206.56
4.4.10.0100.0236.56
4.4.00.0100.0406.56
4.3.110.0100.0236.56
4.3.100.0030.0206.56
4.3.90.0030.0276.56
4.3.80.0000.0436.56
4.3.70.0030.0306.55
4.3.60.0030.0206.55
4.3.50.0030.0206.55
4.3.40.0070.0436.55
4.3.30.0100.0276.55
4.3.20.0000.0276.55
4.3.10.0030.0306.55
4.3.00.0100.0208.53

preferences:
50.75 ms | 401 KiB | 5 Q