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.0110.01118.56
8.3.50.0120.00922.11
8.3.40.0040.01118.79
8.3.30.0070.00719.18
8.3.20.0050.00220.33
8.3.10.0040.00422.09
8.3.00.0040.00422.46
8.2.180.0160.00616.88
8.2.170.0070.00722.96
8.2.160.0070.00720.98
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00826.16
8.2.120.0040.00419.36
8.2.110.0060.00322.08
8.2.100.0090.00317.71
8.2.90.0040.00419.17
8.2.80.0000.00817.97
8.2.70.0030.00617.50
8.2.60.0050.00317.80
8.2.50.0000.00818.07
8.2.40.0040.00418.09
8.2.30.0000.00718.00
8.2.20.0040.00417.57
8.2.10.0040.00417.64
8.2.00.0040.00417.70
8.1.280.0130.01025.92
8.1.270.0040.00422.05
8.1.260.0060.00326.35
8.1.250.0070.00028.09
8.1.240.0030.00623.91
8.1.230.0080.00418.98
8.1.220.0060.00317.76
8.1.210.0000.00818.77
8.1.200.0070.00417.35
8.1.190.0080.00017.18
8.1.180.0080.00018.71
8.1.170.0030.00518.51
8.1.160.0070.00022.05
8.1.150.0000.00718.47
8.1.140.0000.00717.37
8.1.130.0070.00317.70
8.1.120.0000.00717.40
8.1.110.0000.00717.36
8.1.100.0030.00617.40
8.1.90.0070.00017.28
8.1.80.0000.00717.42
8.1.70.0070.00017.39
8.1.60.0040.00717.39
8.1.50.0040.00417.53
8.1.40.0040.00417.47
8.1.30.0040.00417.61
8.1.20.0040.00417.61
8.1.10.0040.00417.46
8.1.00.0040.00417.34
8.0.300.0040.00418.77
8.0.290.0000.00717.05
8.0.280.0000.00718.38
8.0.270.0030.00317.17
8.0.260.0030.00316.87
8.0.250.0060.00316.98
8.0.240.0030.00616.82
8.0.230.0070.00016.81
8.0.220.0000.00716.93
8.0.210.0030.00316.83
8.0.200.0000.00617.01
8.0.190.0080.00016.98
8.0.180.0070.00316.84
8.0.170.0080.00016.92
8.0.160.0000.00716.93
8.0.150.0030.00316.84
8.0.140.0040.00416.73
8.0.130.0000.00613.35
8.0.120.0030.00616.82
8.0.110.0000.00816.87
8.0.100.0080.00016.83
8.0.90.0050.00216.85
8.0.80.0070.00716.91
8.0.70.0000.00816.95
8.0.60.0000.00816.76
8.0.50.0000.00716.77
8.0.30.0130.00717.07
8.0.20.0100.00717.40
8.0.10.0050.00216.89
8.0.00.0130.01316.70
7.4.330.0000.00515.13
7.4.320.0000.00716.48
7.4.300.0030.00316.61
7.4.290.0000.00716.58
7.4.280.0000.00716.63
7.4.270.0060.00316.60
7.4.260.0080.00016.62
7.4.250.0040.00416.46
7.4.240.0030.00416.50
7.4.230.0030.00316.69
7.4.220.0060.01016.55
7.4.210.0120.00616.62
7.4.200.0030.00616.63
7.4.190.0000.00716.72
7.4.160.0030.01216.38
7.4.150.0000.01717.40
7.4.140.0130.00617.86
7.4.130.0130.00716.50
7.4.120.0060.01216.51
7.4.110.0130.00716.63
7.4.100.0040.01616.42
7.4.90.0070.01016.38
7.4.80.0150.00619.39
7.4.70.0100.00616.57
7.4.60.0060.01016.43
7.4.50.0030.00616.54
7.4.40.0040.01122.77
7.4.30.0090.00616.50
7.4.10.0030.01614.96
7.4.00.0080.00814.91
7.3.330.0020.00313.01
7.3.320.0020.00213.13
7.3.310.0030.00316.32
7.3.300.0070.00016.30
7.3.290.0070.00716.29
7.3.280.0110.00716.30
7.3.270.0090.00917.40
7.3.260.0100.00716.50
7.3.250.0050.01116.38
7.3.240.0120.00916.53
7.3.230.0030.01516.41
7.3.210.0100.00616.30
7.3.200.0110.00819.39
7.3.190.0070.01416.54
7.3.180.0060.01016.48
7.3.170.0060.01016.35
7.3.160.0080.00916.36
7.3.130.0110.00714.67
7.3.120.0090.00814.79
7.3.110.0070.01014.79
7.3.100.0070.00614.74
7.3.90.0060.00714.72
7.3.80.0070.00514.80
7.3.70.0080.00614.67
7.3.60.0070.00714.71
7.3.50.0070.00914.71
7.3.40.0030.00714.67
7.3.30.0070.00214.72
7.3.20.0050.00916.69
7.3.10.0040.00716.47
7.3.00.0070.00616.58
7.2.330.0040.01416.73
7.2.320.0090.00916.33
7.2.310.0060.01016.61
7.2.300.0060.00916.41
7.2.290.0060.01016.42
7.2.260.0060.01314.92
7.2.250.0050.01215.08
7.2.240.0030.01315.03
7.2.230.0080.00514.95
7.2.220.0070.00914.88
7.2.210.0080.00614.75
7.2.200.0070.00714.91
7.2.190.0050.00814.86
7.2.180.0070.00914.73
7.2.170.0080.00614.99
7.2.160.0070.00414.85
7.2.150.0090.00816.77
7.2.140.0060.00916.58
7.2.130.0050.01016.65
7.2.120.0050.00916.83
7.2.110.0060.00816.71
7.2.100.0050.00916.72
7.2.90.0090.00616.85
7.2.80.0060.01016.74
7.2.70.0040.00816.67
7.2.60.0060.00716.77
7.2.50.0050.00816.72
7.2.40.0080.00716.79
7.2.30.0070.00516.80
7.2.20.0060.00716.82
7.2.10.0090.00516.79
7.2.00.0050.00917.22
7.1.330.0080.00415.53
7.1.320.0050.00915.56
7.1.310.0060.00815.58
7.1.300.0050.01015.65
7.1.290.0040.00815.61
7.1.280.0030.00815.62
7.1.270.0030.01015.65
7.1.260.0070.00815.55
7.1.250.0060.00715.56
7.1.240.0070.00615.47
7.1.230.0060.00715.68
7.1.220.0040.00715.51
7.1.210.0070.00815.62
7.1.200.0110.00315.66
7.1.190.0080.00615.72
7.1.180.0040.00615.59
7.1.170.0020.00915.57
7.1.160.0100.00515.65
7.1.150.0070.00515.60
7.1.140.0040.00915.59
7.1.130.0080.00415.58
7.1.120.0040.00615.55
7.1.110.0070.00615.72
7.1.100.0050.00516.14
7.1.90.0090.00415.60
7.1.80.0050.00915.46
7.1.70.0070.00415.94
7.1.60.0040.01216.58
7.1.50.0080.00715.89
7.1.40.0030.00815.52
7.1.30.0060.00715.65
7.1.20.0040.00715.46
7.1.10.0070.00515.59
7.1.00.0050.02517.33
7.0.330.0060.00815.18
7.0.320.0030.00915.32
7.0.310.0080.00415.28
7.0.300.0060.00415.25
7.0.290.0040.01015.17
7.0.280.0060.00615.32
7.0.270.0060.00915.30
7.0.260.0050.00715.37
7.0.250.0050.00715.22
7.0.240.0030.01015.43
7.0.230.0090.00615.17
7.0.220.0060.00515.32
7.0.210.0060.00815.20
7.0.200.0040.00915.60
7.0.190.0040.01015.37
7.0.180.0050.00715.38
7.0.170.0070.00315.43
7.0.160.0060.00515.33
7.0.150.0050.00615.38
7.0.140.0030.02417.04
7.0.130.0060.00715.34
7.0.120.0030.00615.24
7.0.110.0040.00615.30
7.0.100.0050.00815.21
7.0.90.0050.00915.26
7.0.80.0070.00615.30
7.0.70.0060.00515.34
7.0.60.0070.02216.48
7.0.50.0060.01716.07
7.0.40.0050.01715.00
7.0.30.0100.01415.03
7.0.20.0080.02615.03
7.0.10.0090.01815.03
7.0.00.0050.02915.04
5.6.400.0060.00614.23
5.6.390.0050.00814.09
5.6.380.0050.00714.19
5.6.370.0080.00614.17
5.6.360.0090.00414.22
5.6.350.0040.01013.91
5.6.340.0050.00714.19
5.6.330.0100.00413.97
5.6.320.0050.00814.19
5.6.310.0060.00714.25
5.6.300.0060.00614.10
5.6.290.0040.00814.05
5.6.280.0080.02315.82
5.6.270.0060.00514.24
5.6.260.0020.00914.32
5.6.250.0060.00514.23
5.6.240.0110.00314.31
5.6.230.0050.01014.16
5.6.220.0030.00914.01
5.6.210.0030.01915.75
5.6.200.0070.02015.19
5.6.190.0040.02015.79
5.6.180.0970.01715.74
5.6.170.0090.02115.78
5.6.160.0070.01515.74
5.6.150.0080.01715.14
5.6.140.0040.01615.13
5.6.130.0030.02015.22
5.6.120.0050.02115.88
5.6.110.0080.02715.91
5.6.100.0080.01515.83
5.6.90.0080.02615.90
5.6.80.0060.02515.61
5.6.70.1050.01415.66
5.6.60.0040.00714.11
5.6.50.0060.00713.95
5.6.40.0080.00613.99
5.6.30.0050.00613.99
5.6.20.0060.00613.90
5.6.10.0060.00713.99
5.6.00.0080.00513.94
5.5.380.0020.00913.08
5.5.370.0080.00713.06
5.5.360.0040.00813.09
5.5.350.0060.02114.88
5.5.340.0060.01714.41
5.5.330.0040.02214.80
5.5.320.0110.02414.87
5.5.310.0100.01614.88
5.5.300.0030.01914.29
5.5.290.0060.02114.32
5.5.280.0040.01615.00
5.5.270.0060.01615.02
5.5.260.0040.01715.10
5.5.250.0110.01914.89
5.5.240.0050.01514.87
5.5.230.0040.00513.02
5.5.220.0020.00813.01
5.5.210.0050.00713.02
5.5.200.0070.00412.94
5.5.190.0040.00712.91
5.5.180.0050.00712.98
5.5.170.0060.00613.03
5.5.160.0040.00712.96
5.5.150.0050.00812.91
5.5.140.0080.00413.02
5.5.130.0070.00313.03
5.5.120.0080.00412.94
5.5.110.0040.00713.02
5.5.100.0040.00712.98
5.5.90.0060.00613.02
5.5.80.0070.00512.96
5.5.70.0060.00613.06
5.5.60.0030.00712.91
5.5.50.0030.00813.00
5.5.40.0060.00512.91
5.5.30.0060.00612.94
5.5.20.0070.00712.86
5.5.10.0050.00513.05
5.5.00.0100.00213.20
5.4.450.0160.01713.13
5.4.440.0230.01713.04
5.4.430.0050.02013.09
5.4.420.0090.02113.11
5.4.410.0060.01912.95
5.4.400.0560.00412.80
5.4.390.0530.00512.84
5.4.380.0100.02012.91
5.4.370.0080.02112.74
5.4.360.0080.01812.82
5.4.350.0090.01612.83
5.4.340.0100.01812.70
5.4.330.0020.00710.91
5.4.320.0030.01411.27
5.4.310.0080.01111.28
5.4.300.0050.01211.27
5.4.290.0050.01311.22
5.4.280.0040.01511.13
5.4.270.0080.01211.21
5.4.260.0090.01312.95
5.4.250.0040.02012.71
5.4.240.0110.01812.82
5.4.230.0040.02012.74
5.4.220.0070.01612.77
5.4.210.0040.01712.80
5.4.200.0060.01612.84
5.4.190.0060.01812.79
5.4.180.0050.01912.84
5.4.170.0060.02212.87
5.4.160.0050.01812.80
5.4.150.0070.02312.81
5.4.140.0070.02212.24
5.4.130.0040.02212.17
5.4.120.0080.01512.23
5.4.110.0070.01812.26
5.4.100.0040.02112.18
5.4.90.0050.02312.11
5.4.80.0030.01912.09
5.4.70.0060.01612.16
5.4.60.0060.01812.17
5.4.50.0040.01812.26
5.4.40.0080.02412.22
5.4.30.0040.01912.28
5.4.20.0090.01312.14
5.4.10.0070.01912.32
5.4.00.0030.02112.04
5.3.290.0040.01611.13
5.3.280.0040.01711.47
5.3.270.0060.01611.57
5.3.260.0060.01611.54
5.3.250.0040.01811.53
5.3.240.0110.01711.54
5.3.230.0070.01511.53
5.3.220.0020.02211.51
5.3.210.0100.01311.51
5.3.200.0040.01511.54
5.3.190.0080.02111.48
5.3.180.0040.01811.61
5.3.170.0070.02311.54
5.3.160.0030.01711.59
5.3.150.0070.01711.59
5.3.140.0040.01811.60
5.3.130.0060.02211.55
5.3.120.0060.02311.53
5.3.110.0040.02111.52
5.3.100.0060.01811.30
5.3.90.0080.02011.52
5.3.80.0020.02411.35
5.3.70.0050.01411.40
5.3.60.0080.02011.39
5.3.50.0050.01911.36
5.3.40.0040.01911.37
5.3.30.0080.01511.34
5.3.20.0060.01511.29
5.3.10.0040.01811.29
5.3.00.0070.01711.24
5.2.170.0100.02511.02
5.2.160.0050.02511.03
5.2.150.0100.02011.13
5.2.140.0040.02311.08
5.2.130.0100.02211.02
5.2.120.0100.02411.05
5.2.110.0050.02111.10
5.2.100.0040.02311.06
5.2.90.0060.03111.05
5.2.80.0070.02511.05
5.2.70.0050.02311.01
5.2.60.0020.03311.00
5.2.50.0050.03311.01
5.2.40.0030.02311.00
5.2.30.0050.03010.94
5.2.20.0110.02211.06
5.2.10.0070.02010.90
5.2.00.0070.03710.90
5.1.60.0080.01610.47
5.1.50.0030.02010.48
5.1.40.0040.02110.51
5.1.30.0060.02010.71
5.1.20.0070.02110.63
5.1.10.0060.02410.49
5.1.00.0050.02010.48
5.0.50.0050.0169.72
5.0.40.0070.0189.66
5.0.30.0030.0349.66
5.0.20.0020.0219.61
5.0.10.0030.0179.55
5.0.00.0030.0289.67
4.4.90.0030.0139.23
4.4.80.0030.0179.23
4.4.70.0030.0179.23
4.4.60.0030.0139.23
4.4.50.0020.0139.23
4.4.40.0050.0189.23
4.4.30.0060.0139.23
4.4.20.0050.0119.23
4.4.10.0030.0189.23
4.4.00.0050.0219.23
4.3.110.0060.0139.23
4.3.100.0020.0169.23
4.3.90.0030.0109.23
4.3.80.0020.0209.23
4.3.70.0050.0139.23
4.3.60.0060.0089.23
4.3.50.0030.0169.23
4.3.40.0040.0189.23
4.3.30.0030.0129.23
4.3.20.0000.0199.23
4.3.10.0000.0179.23
4.3.00.0080.0129.15

preferences:
42.67 ms | 401 KiB | 5 Q