3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo("<h3> Symmetric Encryption </h3>"); $key_value = "KEYVALUE"; $plain_text = "PLAINTEXT"; $encrypted_text = mcrypt_ecb(MCRYPT_DES, $key_value, $plain_text, MCRYPT_ENCRYPT); echo ("<p><b> Text after encryption : </b>"); echo ( $encrypted_text ); $decrypted_text = mcrypt_ecb(MCRYPT_DES, $key_value, $encrypted_text, MCRYPT_DECRYPT); echo ("<p><b> Text after decryption : </b>"); echo ( $decrypted_text );

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.0110.00718.56
8.3.50.0090.01216.02
8.3.40.0040.01118.83
8.3.30.0140.00018.69
8.3.20.0040.00420.04
8.3.10.0080.00023.64
8.3.00.0040.00419.68
8.2.180.0150.00716.75
8.2.170.0110.00322.96
8.2.160.0070.00720.52
8.2.150.0040.00424.18
8.2.140.0000.01424.66
8.2.130.0040.00426.16
8.2.120.0030.00617.63
8.2.110.0030.00620.38
8.2.100.0070.00417.84
8.2.90.0040.00419.08
8.2.80.0030.00517.97
8.2.70.0030.00717.63
8.2.60.0000.00817.93
8.2.50.0040.00418.07
8.2.40.0060.00321.06
8.2.30.0040.00419.84
8.2.20.0040.00417.74
8.2.10.0040.00418.07
8.2.00.0080.00018.14
8.1.280.0000.01425.92
8.1.270.0030.00620.39
8.1.260.0070.00026.35
8.1.250.0080.00028.09
8.1.240.0000.01022.07
8.1.230.0080.00423.98
8.1.220.0040.00417.74
8.1.210.0000.00918.77
8.1.200.0040.00417.25
8.1.190.0040.00417.23
8.1.180.0090.00018.10
8.1.170.0030.00618.51
8.1.160.0050.00321.82
8.1.150.0050.00318.82
8.1.140.0000.00817.31
8.1.130.0000.00717.63
8.1.120.0030.00317.41
8.1.110.0040.00417.39
8.1.100.0070.00017.40
8.1.90.0040.00417.45
8.1.80.0040.00417.38
8.1.70.0000.00817.35
8.1.60.0000.00917.50
8.1.50.0080.00017.45
8.1.40.0040.00417.51
8.1.30.0030.00517.67
8.1.20.0000.00717.54
8.1.10.0060.00317.58
8.1.00.0030.00517.54
8.0.300.0040.00418.77
8.0.290.0000.00716.88
8.0.280.0040.00418.43
8.0.270.0000.00717.21
8.0.260.0000.00617.15
8.0.250.0020.00516.88
8.0.240.0040.00417.01
8.0.230.0070.00016.84
8.0.220.0030.00316.75
8.0.210.0050.00316.74
8.0.200.0030.00316.97
8.0.190.0000.00816.96
8.0.180.0030.00316.91
8.0.170.0040.00416.87
8.0.160.0040.00416.77
8.0.150.0000.00716.80
8.0.140.0070.00016.89
8.0.130.0030.00313.31
8.0.120.0050.00316.88
8.0.110.0100.00016.82
8.0.100.0040.00416.77
8.0.90.0040.00416.85
8.0.80.0110.00416.92
8.0.70.0040.00416.80
8.0.60.0000.00816.77
8.0.50.0040.00416.75
8.0.30.0120.00917.06
8.0.20.0080.01017.40
8.0.10.0090.00016.93
8.0.00.0120.00716.79
7.4.330.0030.00215.08
7.4.320.0030.00316.55
7.4.300.0030.00316.48
7.4.290.0060.00316.45
7.4.280.0000.00716.39
7.4.270.0040.00416.51
7.4.260.0080.00016.57
7.4.250.0040.00316.47
7.4.240.0040.00316.54
7.4.230.0030.00316.69
7.4.220.0150.01216.42
7.4.210.0090.00916.44
7.4.200.0040.00416.66
7.4.160.0000.01516.49
7.4.150.0090.00917.40
7.4.140.0070.01217.86
7.4.130.0110.00616.56
7.4.120.0140.00716.43
7.4.110.0090.01116.42
7.4.100.0160.00616.54
7.4.90.0090.00916.48
7.4.80.0110.00619.39
7.4.70.0120.00616.49
7.4.60.0040.01216.46
7.4.50.0000.00816.45
7.4.40.0060.00916.56
7.4.30.0030.01516.56
7.4.00.0070.00715.18
7.3.330.0020.00213.17
7.3.320.0030.00313.20
7.3.310.0070.00016.39
7.3.300.0000.00716.23
7.3.290.0050.01516.25
7.3.280.0100.01016.23
7.3.270.0100.00717.40
7.3.260.0130.01016.49
7.3.250.0130.00716.31
7.3.240.0060.01016.50
7.3.230.0130.00316.44
7.3.210.0160.00016.16
7.3.200.0090.00616.32
7.3.190.0110.01116.32
7.3.180.0030.02016.10
7.3.170.0060.01316.30
7.3.160.0080.01016.37
7.2.330.0140.00316.36
7.2.320.0120.01216.61
7.2.310.0140.00316.48
7.2.300.0060.01216.41
7.2.290.0110.00816.41
7.2.60.0110.01816.85
7.2.00.0070.00719.32
7.1.200.0090.00415.59
7.1.100.0150.00918.15
7.1.70.0040.00417.07
7.1.60.0130.01320.03
7.1.50.0040.00716.59
7.1.00.0070.07022.48
7.0.200.0000.01116.56
7.0.60.0070.08319.88
7.0.50.0230.07317.83
7.0.40.0100.05720.02
7.0.30.0270.07720.30
7.0.20.0270.08720.03
7.0.10.0030.09320.18
7.0.00.0000.05020.32
5.6.280.0070.03021.12
5.6.210.0130.07320.61
5.6.200.0130.08018.25
5.6.190.0100.07720.53
5.6.180.0300.04020.66
5.6.170.0100.04720.52
5.6.160.0070.08020.46
5.6.150.0100.08018.12
5.6.140.0070.06718.11
5.6.130.0100.08018.29
5.6.120.0100.07021.18
5.6.110.0170.06021.04
5.6.100.0170.08021.02
5.6.90.0070.06321.14
5.6.80.0030.06720.46
5.5.350.3970.04320.28
5.5.340.0070.06017.97
5.5.330.0070.05320.45
5.5.320.0270.08320.27
5.5.310.0230.07320.51
5.5.300.0030.05318.02
5.5.290.0000.04718.00
5.5.280.0130.06320.92
5.5.270.0100.05020.86
5.5.260.0000.06320.86
5.5.250.0030.08720.85
5.5.240.0330.07320.15
5.4.450.0070.06719.49
5.4.440.0070.06719.36
5.4.430.0170.05719.59
5.4.420.0300.06019.41
5.4.410.0300.05019.50
5.4.400.0170.05019.34
5.4.390.0400.04719.10
5.4.380.0170.05319.20
5.4.370.0230.05719.00
5.4.360.0200.05319.37
5.4.350.0270.04318.80
5.4.340.0230.04718.80
5.4.320.0300.06019.27
5.4.310.0300.05718.98
5.4.300.0300.04319.38
5.4.290.0170.05319.23
5.4.280.0200.05319.19
5.4.270.0130.06018.98
5.4.260.0100.06719.30
5.4.250.0270.04719.23
5.4.240.0170.05318.84
5.4.230.0200.05019.17
5.4.220.0170.05019.23
5.4.210.0130.06018.80
5.4.200.0170.05019.17
5.4.190.0130.05019.29
5.4.180.0130.05319.17
5.4.170.0200.05319.23
5.4.160.0230.04719.07
5.4.150.0370.04019.17
5.4.140.0170.05716.69
5.4.130.0230.04716.33
5.4.120.0100.05316.36
5.4.110.0130.05316.49
5.4.100.0130.05016.49
5.4.90.0200.05016.60
5.4.80.0100.05016.55
5.4.70.0100.05016.14
5.4.60.0100.03716.54
5.4.50.0200.03716.40
5.4.40.0270.07016.35
5.4.30.0000.05016.49
5.4.20.0170.07016.51
5.4.10.0270.05316.13

preferences:
61.3 ms | 400 KiB | 5 Q