3v4l.org

run code in 300+ PHP versions simultaneously
<?php function wh_en($str, $pass) { $out = ''; $i = 0; while($i < strlen($str)) { $symb = base64_encode($str{$i}); $out .= $symb.$pass; $i += 1; } $out1 = base64_encode($out); $out = base64_encode($out1); return $out; } function wh_de($str, $pass) { $sf = base64_decode($str); $first = base64_decode($sf); if(strrpos($pass, $first) === $first) { return null; } else { str_replace($pass, '', $first); $second = explode('==', $first); $out = ''; $i = 0; while($i < count($second)) { $out .= base64_decode($second[$i].'=='); } return $out; } } $str = 'super89'; $pass = 'etpa'; $en = wh_en($str, $pass); $de = wh_de($en, $pass); echo $en.'<br><br>'.$de; ?>

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.40.0120.00618.68
8.3.30.0120.00318.62
8.3.20.0040.00420.33
8.3.10.0050.00223.66
8.3.00.0040.00419.56
8.2.170.0040.01122.96
8.2.160.0100.00320.35
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0070.00026.16
8.2.120.0040.00419.23
8.2.110.0060.00322.08
8.2.100.0080.00417.65
8.2.90.0050.00319.09
8.2.80.0000.00917.97
8.2.70.0040.00417.50
8.2.60.0100.00017.80
8.2.50.0030.00718.07
8.2.40.0080.00018.03
8.2.30.0070.00018.06
8.2.20.0040.00417.54
8.2.10.0050.00317.84
8.2.00.0040.00417.69
8.1.270.0050.00322.02
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0060.00323.96
8.1.230.0090.00319.09
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0050.00517.00
8.1.190.0050.00317.10
8.1.180.0000.00918.10
8.1.170.0000.00818.38
8.1.160.0030.00321.95
8.1.150.0040.00418.50
8.1.140.0040.00417.20
8.1.130.0000.00717.83
8.1.120.0000.00717.40
8.1.110.0000.00817.23
8.1.100.0080.00017.25
8.1.90.0030.00317.33
8.1.80.0000.00817.29
8.1.70.0000.00717.27
8.1.60.0050.00217.46
8.1.50.0030.00617.38
8.1.40.0000.00717.38
8.1.30.0030.00617.50
8.1.20.0040.00417.50
8.1.10.0000.00717.32
8.1.00.0070.00017.41
8.0.300.0070.00018.77
8.0.290.0070.00016.58
8.0.280.0070.00018.32
8.0.270.0080.00017.04
8.0.260.0060.00017.05
8.0.250.0030.00316.79
8.0.240.0070.00316.96
8.0.230.0100.00016.86
8.0.220.0030.00316.83
8.0.210.0030.00316.71
8.0.200.0070.00016.94
8.0.190.0000.00716.89
8.0.180.0070.00016.89
8.0.170.0000.00816.87
8.0.160.0040.00416.78
8.0.150.0070.00016.74
8.0.140.0040.00416.81
8.0.130.0050.00013.35
8.0.120.0050.00316.78
8.0.110.0040.00416.86
8.0.100.0040.00416.82
8.0.90.0000.00716.86
8.0.80.0060.01016.78
8.0.70.0040.00416.94
8.0.60.0040.00416.73
8.0.50.0040.00416.71
8.0.30.0120.00917.09
8.0.20.0140.01117.40
8.0.10.0000.00716.83
8.0.00.0090.01116.70
7.4.330.0231.97845.11
7.4.320.0471.95847.91
7.4.300.0201.98547.87
7.4.290.0331.97047.75
7.4.280.0271.97947.77
7.4.270.0271.97847.75
7.4.260.0201.98347.77
7.4.250.0131.99247.78
7.4.240.0171.98747.75
7.4.230.0231.98047.71
7.4.220.0501.95233.57
7.4.210.0491.92632.46
7.4.200.0201.98547.86
7.4.160.0831.91247.72
7.4.150.0991.90547.81
7.4.140.0741.92339.83
7.4.130.0621.93240.21
7.4.120.0701.92047.85
7.4.110.0622.38547.66
7.4.100.0822.37547.91
7.4.90.0882.34347.91
7.4.80.0592.35547.74
7.4.70.0922.36547.80
7.4.60.0662.41647.76
7.4.50.0302.08249.66
7.4.40.0692.38931.75
7.4.30.0592.38747.75
7.4.00.0332.46546.16
7.3.330.0131.99044.54
7.3.320.0101.99444.52
7.3.310.0201.98647.55
7.3.300.0171.98647.61
7.3.290.1151.74132.37
7.3.280.0461.95831.80
7.3.270.0761.92147.76
7.3.260.0561.94133.60
7.3.250.0711.93740.09
7.3.240.0531.94633.10
7.3.230.0632.41147.69
7.3.210.0802.34947.84
7.3.200.0732.38247.71
7.3.190.0932.38147.77
7.3.180.0971.99647.73
7.3.170.0732.39647.71
7.3.160.0662.37547.66
7.3.120.0402.45746.27
7.2.330.0362.42233.05
7.2.320.0692.40247.97
7.2.310.0662.39848.07
7.2.300.1022.35548.01
7.2.290.0562.42848.09
7.2.60.0702.42248.22
7.2.50.0672.43248.49
7.1.200.0632.43145.89
7.1.100.0732.42747.98
7.1.70.0072.49547.18
7.1.60.0232.47847.27
7.1.50.0632.43846.79
7.1.00.0132.48752.39
7.0.200.0702.43046.68
7.0.140.0102.49052.15
7.0.100.0972.40351.41
7.0.90.0832.41751.30
7.0.80.0272.47351.35
7.0.70.0572.44351.41
7.0.60.1032.39751.39
7.0.50.0402.46051.77
7.0.40.0332.46747.99
7.0.30.1032.39748.00
7.0.20.0732.40348.02
7.0.10.0402.44747.91
7.0.00.0372.46347.95
5.6.280.0032.49730.80
5.6.250.0032.49731.51
5.6.240.0102.49032.74
5.6.230.0102.49032.13
5.6.220.0032.49732.35
5.6.210.0202.48032.32
5.6.200.0102.49033.40
5.6.190.0102.49033.00
5.6.180.0102.49032.51
5.6.170.0202.48032.18
5.6.160.0172.48332.43
5.6.150.0102.47033.61
5.6.140.0132.48733.25
5.6.130.0132.48732.98
5.6.120.0202.46733.14
5.6.110.0202.48034.14
5.6.100.0372.35030.72
5.6.90.0072.47732.30
5.6.80.0072.45330.19
5.6.70.0132.48732.26
5.6.60.0102.47732.33
5.6.50.0032.47032.32
5.6.40.0102.49031.68
5.6.30.0172.47032.18
5.6.20.0102.46032.20
5.6.10.0132.46732.34
5.6.00.0072.47330.48
5.5.380.0232.47731.36
5.5.370.0272.47331.46
5.5.360.0132.48732.15
5.5.350.2302.27030.88
5.5.340.0072.49332.66
5.5.330.0132.48731.89
5.5.320.0032.48031.08
5.5.310.0132.48730.73
5.5.300.0102.49030.35
5.5.290.0172.48330.82
5.5.280.0232.47732.19
5.5.270.0172.48332.70
5.5.260.0172.48331.86
5.5.250.0202.48029.72
5.5.240.0272.47331.54
5.5.230.0102.47031.48
5.5.220.0132.48730.95
5.5.210.0072.48331.24
5.5.200.0132.48732.68
5.5.190.0102.49031.37
5.5.180.1132.38731.03
5.5.160.0172.47331.22
5.5.150.0072.47330.09
5.5.140.0102.49031.54
5.5.130.0102.47331.04
5.5.120.0032.47032.41
5.5.110.0032.49731.65
5.5.100.0132.48732.23
5.5.90.0202.46331.62
5.5.80.0102.45030.46
5.5.70.0072.49330.27
5.5.60.0002.50031.50
5.5.50.0202.48031.32
5.5.40.0172.46331.12
5.5.30.0102.49031.51
5.5.20.0072.46331.18
5.5.10.0032.49731.18
5.5.00.0102.45731.86
5.4.450.0132.48730.51
5.4.440.0132.48730.50
5.4.430.0072.49331.84
5.4.420.0172.48331.46
5.4.410.0132.48731.49
5.4.400.0172.48330.59
5.4.390.0002.50030.39
5.4.380.0132.48730.69
5.4.370.0102.49031.06
5.4.360.0032.49730.54
5.4.350.0132.48731.01
5.4.340.0132.48730.64
5.4.320.0102.49029.70
5.4.310.0072.49330.63
5.4.300.0102.49030.27
5.4.290.0172.48331.36
5.4.280.0172.48330.30
5.4.270.0172.48329.95
5.4.260.0102.49031.60
5.4.250.0102.49031.13
5.4.240.0172.48330.09
5.4.230.0102.49030.55
5.4.220.0102.49029.77
5.4.210.0072.49329.22
5.4.200.0072.49330.95
5.4.190.0102.49030.39
5.4.180.0132.48730.20
5.4.170.0132.48730.17
5.4.160.0032.49731.22
5.4.150.0072.49331.41
5.4.140.0032.46026.81
5.4.130.0102.49027.27
5.4.120.0072.49326.34
5.4.110.0032.49727.07
5.4.100.0132.48728.64
5.4.90.0072.49327.51
5.4.80.0132.48727.88
5.4.70.0102.49028.18
5.4.60.0132.48728.22
5.4.50.0202.48027.05
5.4.40.0072.49329.01
5.4.30.0132.48728.97
5.4.20.0072.49327.75
5.4.10.0072.49328.90
5.4.00.0132.48726.86
5.3.290.0102.49024.85
5.3.280.0202.48025.03
5.3.270.0102.49024.77
5.3.260.0272.47324.72
5.3.250.0102.49025.71
5.3.240.0172.48325.13
5.3.230.0172.48324.78
5.3.220.0132.48724.13
5.3.210.0132.48724.52
5.3.200.0072.49325.13
5.3.190.0102.49023.93
5.3.180.0032.49724.36
5.3.170.0072.49324.21
5.3.160.0902.41024.63
5.3.150.0072.49324.24
5.3.140.0072.49325.55
5.3.130.0132.48725.00
5.3.120.0072.49323.83
5.3.110.0172.48325.09
5.3.100.0032.49724.45
5.3.90.0072.49324.35
5.3.80.0032.49724.05
5.3.70.0072.49324.84
5.3.60.0102.49024.48
5.3.50.0102.49024.15
5.3.40.0102.49023.88
5.3.30.0032.49725.50
5.3.20.0102.49024.31
5.3.10.0072.49324.83
5.3.00.0172.48324.35
5.2.170.0102.49019.84
5.2.160.0102.49019.40
5.2.150.0032.49720.67
5.2.140.0002.50020.41
5.2.130.0102.49020.58
5.2.120.0072.49320.32
5.2.110.0102.49021.17
5.2.100.0132.48720.81
5.2.90.0072.49321.19
5.2.80.0172.48320.00
5.2.70.0032.49720.75
5.2.60.0072.49319.23
5.2.50.0102.49020.46
5.2.40.0032.49720.29
5.2.30.0032.49721.17
5.2.20.0102.49020.29
5.2.10.0072.49320.38
5.2.00.0102.49019.64
5.1.60.0102.49018.41
5.1.50.0132.48719.50
5.1.40.0102.49019.29
5.1.30.2802.22019.45
5.1.20.0102.49020.53
5.1.10.0002.50019.59
5.1.00.0002.50020.43
5.0.50.0072.49313.93
5.0.40.0102.49013.88
5.0.30.0032.49713.84
5.0.20.0002.50013.89
5.0.10.0072.49312.94
5.0.00.0002.50014.36
4.4.90.0102.49011.67
4.4.80.0032.49711.83
4.4.70.0032.49711.59
4.4.60.0032.49711.53
4.4.50.0002.50011.93
4.4.40.0002.50011.38
4.4.30.3202.17711.04
4.4.20.0002.50013.23
4.4.10.0102.49011.30
4.4.00.0072.49311.65
4.3.110.0132.48711.60
4.3.100.0032.49712.12
4.3.90.0132.48711.54
4.3.80.0002.50011.59
4.3.70.0032.49711.38
4.3.60.0032.49711.11
4.3.50.0132.48711.45
4.3.40.0072.49311.52
4.3.30.0072.4939.82
4.3.20.0102.49010.54
4.3.10.0072.49310.73
4.3.00.0072.49310.70

preferences:
33.4 ms | 400 KiB | 5 Q