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); $encrypted = base64_encode($encrypted); mcrypt_generic_deinit($cipher); mcrypt_generic_init($cipher, $key, $iv); $decrypted = mdecrypt_generic($cipher,$encrypted); $decrypted = base64_decode($decrypted); mcrypt_generic_deinit($cipher); echo "encrypted : ".$encrypted; echo "\n"; 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.40.0070.01419.02
8.3.30.0110.00418.54
8.3.20.0050.00220.13
8.3.10.0080.00023.56
8.3.00.0040.00419.79
8.2.170.0070.00722.96
8.2.160.0070.00720.22
8.2.150.0030.00524.18
8.2.140.0070.00724.66
8.2.130.0070.00026.16
8.2.120.0070.00319.15
8.2.110.0100.00721.12
8.2.100.0090.00317.91
8.2.90.0000.00817.91
8.2.80.0040.00418.04
8.2.70.0000.00917.63
8.2.60.0040.00417.90
8.2.50.0000.01018.07
8.2.40.0000.00821.11
8.2.30.0000.00719.72
8.2.20.0050.00217.55
8.2.10.0040.00418.04
8.2.00.0040.00418.03
8.1.270.0060.00320.27
8.1.260.0070.00026.35
8.1.250.0030.00528.09
8.1.240.0160.00622.52
8.1.230.0110.00021.03
8.1.220.0030.00617.74
8.1.210.0050.00318.91
8.1.200.0000.01017.25
8.1.190.0040.00417.10
8.1.180.0050.00318.10
8.1.170.0050.00318.52
8.1.160.0000.00721.95
8.1.150.0070.00018.74
8.1.140.0040.00417.32
8.1.130.0040.00417.62
8.1.120.0000.00717.29
8.1.110.0040.00417.28
8.1.100.0070.00017.35
8.1.90.0030.00317.42
8.1.80.0000.00817.28
8.1.70.0000.00717.35
8.1.60.0070.00017.41
8.1.50.0040.00417.54
8.1.40.0000.00817.40
8.1.30.0040.00417.55
8.1.20.0030.00617.55
8.1.10.0000.00717.45
8.1.00.0030.00617.48
8.0.300.0040.00419.80
8.0.290.0040.00416.75
8.0.280.0000.00718.36
8.0.270.0050.00317.18
8.0.260.0000.00617.09
8.0.250.0000.00716.91
8.0.240.0090.00016.91
8.0.230.0080.00016.93
8.0.220.0000.00716.79
8.0.210.0000.00716.88
8.0.200.0030.00316.94
8.0.190.0040.00416.91
8.0.180.0040.00416.91
8.0.170.0040.00416.80
8.0.160.0000.00716.93
8.0.150.0000.00716.80
8.0.140.0040.00416.83
8.0.130.0000.00613.27
8.0.120.0050.00216.92
8.0.110.0040.00416.89
8.0.100.0040.00416.88
8.0.90.0030.00516.80
8.0.80.0040.01116.86
8.0.70.0030.00516.80
8.0.60.0070.00016.77
8.0.50.0080.00016.77
8.0.30.0100.01017.27
8.0.20.0130.00617.40
8.0.10.0000.00716.82
8.0.00.0120.00516.63
7.4.330.0020.00215.09
7.4.320.0000.00616.51
7.4.300.0040.00416.53
7.4.290.0030.00616.57
7.4.280.0000.00816.54
7.4.270.0040.00416.52
7.4.260.0040.00416.38
7.4.250.0040.00416.40
7.4.240.0020.00516.60
7.4.230.0030.00316.63
7.4.220.0090.00916.54
7.4.210.0030.01016.54
7.4.200.0050.00316.34
7.4.160.0040.01216.57
7.4.150.0080.00817.40
7.4.140.0160.00417.86
7.4.130.0090.00916.40
7.4.120.0110.00616.43
7.4.110.0130.00616.36
7.4.100.0130.01016.59
7.4.90.0090.00916.64
7.4.80.0120.00619.39
7.4.70.0070.01016.53
7.4.60.0130.00316.45
7.4.50.0050.00316.30
7.4.40.0100.00616.57
7.4.30.0150.00316.21
7.4.00.0080.00714.86
7.3.330.0030.00313.23
7.3.320.0060.00013.24
7.3.310.0000.00716.32
7.3.300.0070.00016.16
7.3.290.0100.00816.20
7.3.280.0060.01116.29
7.3.270.0140.00317.40
7.3.260.0170.00716.14
7.3.250.0100.00716.37
7.3.240.0200.00016.26
7.3.230.0120.00616.49
7.3.210.0120.00416.43
7.3.200.0060.01016.33
7.3.190.0060.01216.32
7.3.180.0060.01516.58
7.3.170.0170.00416.57
7.3.160.0110.00516.21
7.3.120.0000.01915.00
7.3.110.0170.00014.96
7.3.100.0100.00014.57
7.3.90.0070.01014.68
7.3.80.0070.00715.11
7.3.70.0040.00814.58
7.3.60.0000.01114.65
7.3.50.0030.01014.75
7.3.40.0060.00914.83
7.3.30.0030.00614.82
7.3.20.0090.00616.58
7.3.10.0040.01116.61
7.3.00.0030.00616.34
7.2.330.0140.00316.39
7.2.320.0120.00816.24
7.2.310.0080.00816.59
7.2.300.0060.00916.63
7.2.290.0060.01016.29
7.2.250.0080.00414.93
7.2.240.0100.01014.87
7.2.230.0000.01814.85
7.2.220.0040.01115.02
7.2.210.0040.01415.13
7.2.200.0090.00314.94
7.2.190.0030.00714.96
7.2.180.0060.00914.87
7.2.170.0120.00315.02
7.2.60.0150.00016.80
7.2.00.0070.00719.18
7.1.330.0070.00715.67
7.1.320.0030.00915.70
7.1.310.0030.01015.82
7.1.300.0040.01115.66
7.1.290.0090.00315.62
7.1.280.0000.01015.69
7.1.270.0030.01215.47
7.1.260.0040.01215.72
7.1.200.0070.00715.35
7.1.100.0040.01218.10
7.1.70.0000.00816.79
7.1.60.0070.01720.03
7.1.50.0030.01616.86
7.1.00.0100.07022.42
7.0.200.0040.00416.38
7.0.60.0130.08319.97
7.0.50.0070.07318.01
7.0.40.0030.05720.36
7.0.30.0270.07720.11
7.0.20.0330.04720.04
7.0.10.0130.08020.12
7.0.00.0130.07720.32
5.6.280.0000.03321.07
5.6.210.0100.06320.64
5.6.200.0070.05318.25
5.6.190.0070.07720.43
5.6.180.0100.04720.38
5.6.170.0230.08320.37
5.6.160.0100.06020.57
5.6.150.0030.08718.22
5.6.140.0030.04018.25
5.6.130.0030.07718.12
5.6.120.0070.08321.20
5.6.110.0030.09321.05
5.6.100.0270.05321.03
5.6.90.0070.05021.04
5.6.80.0170.08020.35
5.5.350.4030.03720.42
5.5.340.0000.06317.99
5.5.330.0200.06720.42
5.5.320.0300.08320.34
5.5.310.0270.04020.53
5.5.300.0070.03718.08
5.5.290.0100.07717.92
5.5.280.0100.07021.04
5.5.270.0000.06720.71
5.5.260.0100.07021.00
5.5.250.0000.04720.71
5.5.240.0030.06720.11
5.4.450.0100.06319.45
5.4.440.0130.06719.48
5.4.430.0100.06019.29
5.4.420.0170.05719.31
5.4.410.0330.05319.16
5.4.400.0000.06719.37
5.4.390.0130.06019.36
5.4.380.0130.06018.78
5.4.370.0130.06019.20
5.4.360.0170.05319.33
5.4.350.0270.04019.33
5.4.340.0100.06018.77
5.4.320.0170.05318.80
5.4.310.0100.05719.34
5.4.300.0170.05019.16
5.4.290.0170.05018.80
5.4.280.0030.06319.16
5.4.270.0100.05718.77
5.4.260.0170.05018.77
5.4.250.0170.05019.13
5.4.240.0170.05719.33
5.4.230.0170.04718.96
5.4.220.0230.06718.94
5.4.210.0170.05318.79
5.4.200.0230.04719.09
5.4.190.0200.04318.94
5.4.180.0100.05319.35
5.4.170.0230.04319.35
5.4.160.0170.04719.28
5.4.150.0170.05018.94
5.4.140.0130.05016.20
5.4.130.0200.04316.49
5.4.120.0200.04716.63
5.4.110.0170.05016.48
5.4.100.0230.04016.53
5.4.90.0170.04716.48
5.4.80.0170.04716.55
5.4.70.0300.04716.54
5.4.60.0200.03316.48
5.4.50.0230.06716.43
5.4.40.0200.03716.43
5.4.30.0030.04016.09
5.4.20.0130.04016.38
5.4.10.0200.04016.50

preferences:
74.64 ms | 400 KiB | 5 Q