3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cc = 'my secret text'; $key = 'my secret key'; $iv = '12345678'; $cipher = mcrypt_module_open(MCRYPT_BLOWFISH,'','cbc',''); mcrypt_generic_init($cipher, $key, $iv); $encrypted = mcrypt_generic($cipher,$cc); mcrypt_generic_deinit($cipher); mcrypt_generic_init($cipher, $key, $iv); $decrypted = mdecrypt_generic($cipher,$encrypted); mcrypt_generic_deinit($cipher); echo "encrypted : ".$encrypted; echo "<br>"; echo "decrypted : ".$decrypted;

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.00616.63
8.3.50.0110.00821.19
8.3.40.0100.01318.88
8.3.30.0070.00718.56
8.3.20.0040.00420.30
8.3.10.0060.00323.48
8.3.00.0040.00419.56
8.2.180.0140.00418.26
8.2.170.0180.00422.96
8.2.160.0080.00620.29
8.2.150.0040.00424.18
8.2.140.0070.00724.66
8.2.130.0000.00726.16
8.2.120.0000.00917.25
8.2.110.0000.01020.17
8.2.100.0090.00317.48
8.2.90.0040.00419.05
8.2.80.0030.00517.97
8.2.70.0060.00317.63
8.2.60.0080.00017.93
8.2.50.0040.00418.07
8.2.40.0080.00021.11
8.2.30.0030.00619.69
8.2.20.0000.00817.66
8.2.10.0050.00318.18
8.2.00.0030.00618.10
8.1.280.0110.00725.92
8.1.270.0060.00320.38
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0040.00422.14
8.1.230.0060.00617.42
8.1.220.0000.00817.74
8.1.210.0090.00018.77
8.1.200.0040.00417.35
8.1.190.0030.00517.23
8.1.180.0040.00418.10
8.1.170.0000.00818.51
8.1.160.0040.00421.90
8.1.150.0000.00718.81
8.1.140.0050.00317.43
8.1.130.0030.00317.63
8.1.120.0030.00517.38
8.1.110.0040.00417.44
8.1.100.0000.00817.34
8.1.90.0000.00717.34
8.1.80.0000.00717.34
8.1.70.0040.00417.47
8.1.60.0030.00517.56
8.1.50.0000.00817.54
8.1.40.0040.00417.39
8.1.30.0000.00817.54
8.1.20.0050.00217.65
8.1.10.0040.00417.64
8.1.00.0040.00417.47
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0000.00718.39
8.0.270.0070.00017.05
8.0.260.0030.00317.17
8.0.250.0040.00416.96
8.0.240.0040.00416.85
8.0.230.0070.00016.97
8.0.220.0040.00416.76
8.0.210.0040.00416.87
8.0.200.0030.00316.90
8.0.190.0040.00416.84
8.0.180.0030.00516.96
8.0.170.0020.00516.88
8.0.160.0040.00416.73
8.0.150.0070.00016.86
8.0.140.0050.00216.87
8.0.130.0000.00513.27
8.0.120.0040.00416.83
8.0.110.0090.00016.80
8.0.100.0040.00416.82
8.0.90.0050.00216.83
8.0.80.0070.00716.81
8.0.70.0040.00416.66
8.0.60.0000.00816.75
8.0.50.0070.00016.70
8.0.30.0090.00716.89
8.0.20.0110.00817.40
8.0.10.0000.00816.99
8.0.00.0070.01016.99
7.4.330.0050.00015.08
7.4.320.0000.00616.45
7.4.300.0040.00416.59
7.4.290.0030.00616.47
7.4.280.0040.00416.57
7.4.270.0000.00816.52
7.4.260.0070.00016.50
7.4.250.0070.00016.36
7.4.240.0020.00516.46
7.4.230.0040.00416.41
7.4.220.0130.00616.51
7.4.210.0040.01116.66
7.4.200.0000.00716.33
7.4.160.0170.00016.30
7.4.150.0110.00717.40
7.4.140.0110.00917.86
7.4.130.0110.00616.58
7.4.120.0060.01316.56
7.4.110.0060.01316.36
7.4.100.0110.01316.40
7.4.90.0070.01016.43
7.4.80.0000.01619.39
7.4.70.0140.00716.40
7.4.60.0070.01016.66
7.4.50.0030.00516.41
7.4.40.0040.01216.55
7.4.30.0030.01416.75
7.4.00.0080.00914.81
7.3.330.0050.00013.10
7.3.320.0030.00313.01
7.3.310.0040.00416.32
7.3.300.0030.00316.09
7.3.290.0100.00716.26
7.3.280.0100.00716.26
7.3.270.0100.00717.40
7.3.260.0070.01316.36
7.3.250.0100.00716.38
7.3.240.0100.01016.42
7.3.230.0030.01316.39
7.3.210.0060.01216.37
7.3.200.0100.00616.53
7.3.190.0110.00516.34
7.3.180.0060.01016.38
7.3.170.0210.00016.40
7.3.160.0090.00616.36
7.3.120.0100.00714.93
7.3.110.0070.00614.73
7.3.100.0030.00914.67
7.3.90.0110.00414.73
7.3.80.0100.00614.92
7.3.70.0060.00914.84
7.3.60.0100.00714.70
7.3.50.0030.00914.76
7.3.40.0030.00614.80
7.3.30.0070.00714.80
7.3.20.0080.00816.66
7.3.10.0030.01116.47
7.3.00.0030.01316.54
7.2.330.0180.00316.42
7.2.320.0150.00916.71
7.2.310.0100.00616.30
7.2.300.0130.00316.51
7.2.290.0090.00816.50
7.2.250.0060.01314.86
7.2.240.0100.01014.89
7.2.230.0090.01214.63
7.2.220.0130.00014.83
7.2.210.0000.01014.45
7.2.200.0000.01214.77
7.2.190.0060.00614.89
7.2.180.0060.00914.85
7.2.170.0060.00914.80
7.2.60.0080.00416.59
7.1.330.0070.00715.55
7.1.320.0000.00915.70
7.1.310.0030.01215.73
7.1.300.0000.01115.66
7.1.290.0120.00015.56
7.1.280.0000.00815.59
7.1.270.0120.00315.63
7.1.260.0030.01015.37
7.1.200.0070.00715.48
7.1.100.0060.00617.76
7.1.70.0050.00216.98
7.1.60.0030.02020.03
7.1.50.0000.01916.88
7.1.00.0070.07322.27
7.0.200.0040.00416.49
7.0.60.0170.06020.03
7.0.50.0130.03317.86
7.0.40.0100.04020.32
7.0.30.0300.07020.19
7.0.20.0200.06320.20
7.0.10.0070.07020.13
7.0.00.0030.05020.00
5.6.280.0030.03020.90
5.6.210.0070.08320.47
5.6.200.0100.08318.22
5.6.190.0000.09320.41
5.6.180.0430.04320.42
5.6.170.0230.09020.53
5.6.160.0000.07320.52
5.6.150.0100.07718.20
5.6.140.0070.07718.16
5.6.130.0000.04318.21
5.6.120.0130.08021.03
5.6.110.0170.03721.04
5.6.100.0100.07721.05
5.6.90.0000.04321.09
5.6.80.0030.05320.36
5.5.350.3200.03720.44
5.5.340.0130.05318.11
5.5.330.0130.05720.22
5.5.320.0200.04720.18
5.5.310.0300.07020.53
5.5.300.0000.05717.96
5.5.290.0100.08017.92
5.5.280.0070.08320.83
5.5.270.0130.07320.79
5.5.260.0000.04320.71
5.5.250.0070.03720.69
5.5.240.0130.06320.30
5.4.450.0130.06019.30
5.4.440.0170.05719.30
5.4.430.0200.05019.32
5.4.420.0130.05319.12
5.4.410.0130.05319.50
5.4.400.0100.06019.24
5.4.390.0170.05319.16
5.4.380.0170.05318.77
5.4.370.0230.04319.33
5.4.360.0200.05018.80
5.4.350.0130.05318.97
5.4.340.0130.05319.10
5.4.320.0070.06018.97
5.4.310.0130.05319.34
5.4.300.0170.05719.19
5.4.290.0170.05018.80
5.4.280.0100.06019.18
5.4.270.0130.05319.15
5.4.260.0100.05719.30
5.4.250.0200.04319.25
5.4.240.0130.05319.01
5.4.230.0130.05319.23
5.4.220.0230.04718.76
5.4.210.0170.05318.94
5.4.200.0100.05719.33
5.4.190.0200.04719.29
5.4.180.0100.05718.79
5.4.170.0200.05018.98
5.4.160.0130.06719.21
5.4.150.0270.04319.08
5.4.140.0170.05316.44
5.4.130.0130.05016.20
5.4.120.0200.04716.49
5.4.110.0130.05316.54
5.4.100.0200.05716.44
5.4.90.0200.04316.53
5.4.80.0170.04316.26
5.4.70.0300.06316.53
5.4.60.0100.04016.44
5.4.50.0200.04316.43
5.4.40.0200.04316.24
5.4.30.0030.03316.52
5.4.20.0300.03316.43
5.4.10.0300.04316.21

preferences:
53.12 ms | 401 KiB | 5 Q