3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * @helghanman decryption algorithm * DECLASSIFIED///VSA///SIGINT///DECRYPT */ # Encoded message $message ='077175091 084063 056035 168021105056175084'; # do not edit below this line!! /******************************************************************/ # Cipher substitution $substitutionArray = array( 'q' => 1, 'w' => 2, 'e' => 3, 'r' => 4, 't' => 5, 'y' => 6, 'u' => 7, 'i' => 8, 'o' => 9, 'p' => 10, 'a' => 11, 's' => 12, 'd' => 13, 'f' => 14, 'g' => 15, 'h' => 16, 'j' => 17, 'k' => 18, 'l' => 19, 'z' => 20, 'x' => 21, 'c' => 22, 'v' => 23, 'b' => 24, 'n' => 25, 'm' => 26, ',' => 27, '.' => 28, '1' => 29, '2' => 30, '3' => 31, '4' => 32, '5' => 33, '6' => 34, '7' => 35, '8' => 36, '9' => 37, '#' => 38, ); # Rotation7 $r = 7; # Decoding algorithm function decode($string, $substitutionArray, $r = 1) { $result = ''; $stringArray = explode(" ", $string); $substitutionArray = array_flip($substitutionArray); foreach ($stringArray as $word) { for ($i = 0; $i <= strlen($word)-3; ) { $cipher = intval(substr($word, $i, 3))/$r; $result .= $substitutionArray[$cipher]; $i = $i+3; } $result .= ' '; } return $result; } # Print decoded message print decode($message, $substitutionArray, $r); ?>

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.0120.00918.55
8.3.50.0160.00421.02
8.3.40.0140.00418.89
8.3.30.0100.00319.12
8.3.20.0040.00420.34
8.3.10.0000.00822.05
8.3.00.0000.00822.37
8.2.180.0070.01416.75
8.2.170.0070.01522.96
8.2.160.0070.00719.33
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.01426.16
8.2.120.0050.00319.36
8.2.110.0030.00721.96
8.2.100.0150.00017.72
8.2.90.0090.00019.22
8.2.80.0050.00318.04
8.2.70.0040.00417.63
8.2.60.0050.00318.03
8.2.50.0000.00818.07
8.2.40.0040.00419.89
8.2.30.0040.00418.12
8.2.20.0020.00517.61
8.2.10.0040.00417.64
8.2.00.0040.00417.75
8.1.280.0120.00825.92
8.1.270.0040.00422.02
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0080.00023.91
8.1.230.0090.00319.07
8.1.220.0000.00817.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0030.00617.66
8.1.180.0040.00418.61
8.1.170.0040.00718.43
8.1.160.0070.00022.15
8.1.150.0040.00418.57
8.1.140.0040.00417.48
8.1.130.0000.00817.84
8.1.120.0000.00717.39
8.1.110.0080.00017.50
8.1.100.0000.00817.47
8.1.90.0050.00217.36
8.1.80.0000.00717.44
8.1.70.0000.00717.45
8.1.60.0030.00617.53
8.1.50.0040.00417.52
8.1.40.0040.00417.53
8.1.30.0040.00417.58
8.1.20.0030.00617.63
8.1.10.0050.00317.61
8.1.00.0040.00417.41
8.0.300.0000.00718.77
8.0.290.0050.00217.05
8.0.280.0040.00418.50
8.0.270.0000.00717.27
8.0.260.0060.00016.80
8.0.250.0000.00717.04
8.0.240.0070.00017.01
8.0.230.0000.00716.99
8.0.220.0050.00316.91
8.0.210.0000.00816.91
8.0.200.0040.00416.87
8.0.190.0030.00316.93
8.0.180.0000.00816.87
8.0.170.0080.00016.86
8.0.160.0070.00016.74
8.0.150.0070.00316.74
8.0.140.0030.00416.84
8.0.130.0060.00313.33
8.0.120.0090.00016.83
8.0.110.0000.00716.88
8.0.100.0040.00416.82
8.0.90.0050.00316.88
8.0.80.0060.01216.91
8.0.70.0050.00316.80
8.0.60.0040.00416.91
8.0.50.0000.00716.93
8.0.30.0160.01017.19
8.0.20.0110.01017.40
8.0.10.0070.00017.07
8.0.00.0050.01316.75
7.4.330.0050.00015.09
7.4.320.0030.00316.59
7.4.300.0000.00716.50
7.4.290.0030.00316.63
7.4.280.0040.00416.62
7.4.270.0000.00716.51
7.4.260.0030.00316.41
7.4.250.0000.00716.58
7.4.240.0040.00316.58
7.4.230.0000.00816.71
7.4.220.0070.01116.63
7.4.210.0070.00716.65
7.4.200.0000.00716.62
7.4.190.0040.00416.32
7.4.160.0180.00616.30
7.4.150.0070.01017.40
7.4.140.0120.00817.86
7.4.130.0130.00616.60
7.4.120.0130.00516.48
7.4.110.0080.01016.41
7.4.100.0060.01116.48
7.4.90.0080.01116.52
7.4.80.0060.01019.39
7.4.70.0080.00816.52
7.4.60.0170.00016.57
7.4.50.0030.00516.57
7.4.40.0070.00722.77
7.4.30.0120.00316.59
7.4.00.0130.00315.16
7.3.330.0030.00313.38
7.3.320.0000.00613.38
7.3.310.0040.00416.41
7.3.300.0070.00016.40
7.3.290.0120.00616.43
7.3.280.0060.00916.38
7.3.270.0090.00817.40
7.3.260.0120.00616.54
7.3.250.0130.00716.55
7.3.240.0070.01016.32
7.3.230.0100.01016.43
7.3.210.0030.01316.55
7.3.200.0030.01419.39
7.3.190.0060.01116.57
7.3.180.0150.00016.60
7.3.170.0090.00616.32
7.3.160.0060.00916.38
7.3.120.0060.01014.86
7.3.10.0110.00816.69
7.3.00.0070.00716.37
7.2.330.0070.01016.45
7.2.320.0060.01216.77
7.2.310.0090.00916.50
7.2.300.0110.00716.78
7.2.290.0090.00616.86
7.2.130.0060.00816.49
7.2.120.0100.00916.67
7.2.110.0100.00916.88
7.2.100.0110.00716.88
7.2.90.0110.00716.73
7.2.80.0120.00516.81
7.2.70.0090.00816.84
7.2.60.0070.01016.79
7.2.50.0080.00816.70
7.2.40.0080.00816.90
7.2.30.0110.00516.81
7.2.20.0100.00916.70
7.2.10.0050.00916.62
7.2.00.0070.00916.87
7.1.250.0060.00715.66
7.1.70.0000.00817.18
7.1.60.0130.01319.82
7.1.50.0040.01816.93
7.1.00.0070.03022.31
7.0.200.0000.00916.90
7.0.140.0030.07722.15
7.0.60.0070.08720.09
7.0.50.0100.03317.88
7.0.40.0070.08319.96
7.0.30.0300.07320.06
7.0.20.0270.07320.22
7.0.10.0300.09020.20
7.0.00.0070.05320.07
5.6.280.0100.06720.91
5.6.210.0000.04320.68
5.6.200.0130.07318.27
5.6.190.0070.08720.41
5.6.180.0300.08020.46
5.6.170.0400.08020.55
5.6.160.0130.06720.48
5.6.150.0070.03718.18
5.6.140.0170.07018.18
5.6.130.0070.05318.16
5.6.120.0030.07321.06
5.6.110.0000.07321.07
5.6.100.0070.05720.98
5.6.90.0200.07721.14
5.6.80.0070.05020.27
5.5.350.0130.07720.41
5.5.340.0100.06717.99
5.5.330.0070.07720.29
5.5.320.0000.04720.20
5.5.310.0430.07320.43
5.5.300.0030.07317.95
5.5.290.0100.07318.06
5.5.280.0030.08320.89
5.5.270.0000.04720.81
5.5.260.0130.07320.78
5.5.250.0100.08020.56
5.5.240.0270.06020.27
5.4.450.2670.04319.49
5.4.440.2800.03719.50
5.4.430.2730.03719.38
5.4.420.2770.03719.45
5.4.410.2200.04319.41
5.4.400.0000.04019.24
5.4.390.0130.04718.98
5.4.380.0100.03719.10
5.4.370.1800.04019.18
5.4.360.2670.03719.09
5.4.350.2730.03319.32
5.4.340.2730.03319.31
5.4.320.2500.03719.09
5.4.310.2730.03719.09
5.4.300.2670.04019.02
5.4.290.2770.04018.98
5.4.280.2500.04019.14
5.4.270.2770.03718.86
5.4.260.2630.04019.24
5.4.250.2570.03718.84
5.4.240.2430.05019.09
5.4.230.2800.04019.19
5.4.220.2630.03319.21
5.4.210.2670.03319.07
5.4.200.2970.04719.10
5.4.190.2570.03719.15
5.4.180.2830.03318.85
5.4.170.2570.03719.13
5.4.160.2600.03019.23
5.4.150.2570.03718.79
5.4.140.2470.03016.52
5.4.130.2570.03016.29
5.4.120.2570.03316.50
5.4.110.2570.04016.59
5.4.100.2600.03716.37
5.4.90.2870.04016.37
5.4.80.2800.03316.43
5.4.70.1630.03316.53
5.4.60.0030.04016.54
5.4.50.0030.03716.54
5.4.40.0100.03716.56
5.4.30.2430.04016.54
5.4.20.2630.04716.51
5.4.10.2630.03716.39
5.4.00.2630.03715.80
5.3.290.2570.03014.82
5.3.280.2700.03714.66
5.3.270.2470.03714.61
5.3.260.2700.04314.63
5.3.250.2630.03314.61
5.3.240.2700.04014.70
5.3.230.2930.02314.61
5.3.220.2730.04014.73
5.3.210.2500.04714.51
5.3.200.2800.03014.50
5.3.190.2430.04014.50
5.3.180.2830.04714.65
5.3.170.2770.03714.48
5.3.160.2770.03314.59
5.3.150.2430.03714.63
5.3.140.2730.03714.68
5.3.130.2530.04314.71
5.3.120.2500.03314.47
5.3.110.2470.04314.54
5.3.100.2600.04014.27
5.3.90.2670.04014.25
5.3.80.2600.03713.94
5.3.70.3030.03014.03
5.3.60.2700.04013.95
5.3.50.2800.03014.01
5.3.40.2530.03313.88
5.3.30.2900.03714.01
5.3.20.1770.04013.85
5.3.10.1570.04013.72
5.3.00.2230.04013.87
5.2.170.1970.02711.13
5.2.160.2800.02711.07
5.2.150.2170.02711.21
5.2.140.2100.02711.13
5.2.130.2070.02711.09
5.2.120.3000.02011.17
5.2.110.2030.02311.12
5.2.100.1870.02311.02
5.2.90.2130.02711.02
5.2.80.2170.02711.12
5.2.70.2000.02311.16
5.2.60.2170.02310.97
5.2.50.2130.03011.11
5.2.40.1500.02710.98
5.2.30.1670.03010.90
5.2.20.1800.02010.95
5.2.10.1830.02310.82
5.2.00.1770.02710.74
5.1.60.1830.02710.18
5.1.50.1770.02010.24
5.1.40.1700.03010.00
5.1.30.1500.02310.35
5.1.20.1670.02710.52
5.1.10.1970.03010.06
5.1.00.1770.03010.24
5.0.50.0800.0209.52
5.0.40.1070.0239.52
5.0.30.1030.0439.52
5.0.20.1100.0279.52
5.0.10.0900.0179.52
5.0.00.1030.0409.52
4.4.90.0930.0179.52
4.4.80.0800.0179.52
4.4.70.0930.0179.52
4.4.60.1000.0209.52
4.4.50.0930.0139.52
4.4.40.1030.0239.52
4.4.30.0800.0179.52
4.4.20.0870.0139.52
4.4.10.0900.0209.52
4.4.00.1100.0309.52
4.3.110.1100.0179.52
4.3.100.1030.0209.52
4.3.90.1070.0209.52
4.3.80.1030.0309.52
4.3.70.0800.0179.52
4.3.60.0830.0139.52
4.3.50.1070.0209.52
4.3.40.1100.0279.52
4.3.30.0570.0309.52
4.3.20.0430.0209.52
4.3.10.0600.0239.52
4.3.00.0600.0239.52

preferences:
35.45 ms | 401 KiB | 5 Q