3v4l.org

run code in 300+ PHP versions simultaneously
<?php $_url_safe_characters = array ( '-', '_', '', ); $_not_url_safe_characters = array ( '+', '/', '=', ); /* Data */ $key = 'this is a very long key, even too long for the cipher'; $encrypted_price = '-cMgOXQk'; $key = '123456789012345678901234'; $str_iv = 'genieeee'; $encrypted_price = str_replace ( $_url_safe_characters, $_not_url_safe_characters, $encrypted_price ); echo 'encrypted_price = '. $encrypted_price, ','; $encrypted_price = base64_decode ( $encrypted_price ); echo 'decodebase64 = '. $encrypted_price, ','; /* Open module, and create IV */ $td = mcrypt_module_open('des', '', 'cfb', ''); /* Initialize encryption handle */ if (mcrypt_generic_init($td, $key, $str_iv) != -1) { /* Encrypt data */ $decrypted_price = mdecrypt_generic($td, $encrypted_price); /* Clean up */ mcrypt_generic_deinit($td); mcrypt_module_close($td); } echo 'decrypted_price = '. floatval($decrypted_price); ?>

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.70.0070.01418.18
8.3.60.0110.00316.63
8.3.50.0100.01021.00
8.3.40.0090.00618.84
8.3.30.0100.00319.18
8.3.20.0000.00720.29
8.3.10.0080.00021.77
8.3.00.0000.00719.20
8.2.180.0040.01216.88
8.2.170.0170.00022.96
8.2.160.0130.00320.45
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0040.00421.00
8.2.110.0000.00921.13
8.2.100.0060.00617.63
8.2.90.0030.00619.11
8.2.80.0000.00817.97
8.2.70.0030.00617.38
8.2.60.0040.00417.80
8.2.50.0120.00018.07
8.2.40.0060.00319.88
8.2.30.0040.00418.06
8.2.20.0000.00717.62
8.2.10.0080.00018.11
8.2.00.0000.00718.08
8.1.280.0070.01425.92
8.1.270.0000.00724.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00620.70
8.1.230.0040.00817.42
8.1.220.0060.00317.74
8.1.210.0030.00618.77
8.1.200.0090.00017.35
8.1.190.0060.00317.23
8.1.180.0030.00518.10
8.1.170.0050.00318.50
8.1.160.0000.00721.85
8.1.150.0050.00318.78
8.1.140.0000.00817.43
8.1.130.0000.00717.73
8.1.120.0030.00317.39
8.1.110.0050.00217.41
8.1.100.0050.00317.36
8.1.90.0040.00417.32
8.1.80.0000.00717.40
8.1.70.0000.00717.28
8.1.60.0040.00417.52
8.1.50.0040.00417.40
8.1.40.0000.00817.47
8.1.30.0000.00817.66
8.1.20.0020.00517.58
8.1.10.0060.00317.53
8.1.00.0040.00417.55
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.38
8.0.270.0070.00017.30
8.0.260.0040.00417.11
8.0.250.0070.00016.91
8.0.240.0030.00317.02
8.0.230.0000.00716.95
8.0.220.0050.00316.95
8.0.210.0100.00016.98
8.0.200.0000.00617.02
8.0.190.0040.00416.85
8.0.180.0040.00416.86
8.0.170.0000.00716.88
8.0.160.0000.00816.88
8.0.150.0000.00816.88
8.0.140.0030.00316.80
8.0.130.0060.00013.43
8.0.120.0040.00416.79
8.0.110.0070.00016.99
8.0.100.0000.00716.88
8.0.90.0000.00716.89
8.0.80.0150.00416.86
8.0.70.0040.00416.71
8.0.60.0040.00416.76
8.0.50.0040.00416.95
8.0.30.0070.01217.14
8.0.20.0090.00917.40
8.0.10.0040.00417.05
8.0.00.0090.01216.90
7.4.330.0050.00015.03
7.4.320.0000.00716.46
7.4.300.0060.00016.55
7.4.290.0030.00316.49
7.4.280.0000.00716.38
7.4.270.0030.00316.61
7.4.260.0040.00416.49
7.4.250.0030.00516.46
7.4.240.0020.00516.57
7.4.230.0000.00716.60
7.4.220.0200.00616.45
7.4.210.0040.01116.68
7.4.200.0040.00416.60
7.4.160.0080.00816.68
7.4.150.0110.00717.40
7.4.140.0140.00917.86
7.4.130.0160.00716.46
7.4.120.0090.00816.58
7.4.110.0080.01216.64
7.4.100.0060.01316.50
7.4.90.0040.01316.51
7.4.80.0100.00619.39
7.4.70.0030.01416.67
7.4.60.0060.01016.59
7.4.50.0060.00316.58
7.4.40.0080.00816.62
7.4.30.0130.00316.64
7.4.00.0070.01114.92
7.3.330.0040.00413.20
7.3.320.0030.00313.07
7.3.310.0030.00316.39
7.3.300.0030.00316.32
7.3.290.0070.00816.33
7.3.280.0100.00616.27
7.3.270.0110.00617.40
7.3.260.0030.01416.41
7.3.250.0090.01016.35
7.3.240.0110.00616.45
7.3.230.0060.01216.44
7.3.210.0120.00416.46
7.3.200.0080.01219.39
7.3.190.0150.00616.54
7.3.180.0060.00916.53
7.3.170.0120.00916.50
7.3.160.0120.00416.34
7.2.330.0090.00916.73
7.2.320.0090.01216.63
7.2.310.0100.00716.52
7.2.300.0130.00816.66
7.2.290.0100.01316.67
7.2.60.0100.00317.07
7.2.00.0030.01319.69
7.1.200.0040.00415.76
7.1.100.0100.00717.74
7.1.70.0030.00916.87
7.1.60.0180.00719.59
7.1.50.0110.01417.04
7.1.00.0000.08022.50
7.0.200.0030.00916.93
7.0.110.0030.06319.96
7.0.100.0030.06720.05
7.0.90.0070.04019.88
7.0.80.0030.05319.93
7.0.70.0070.04019.91
7.0.60.0000.04320.06
7.0.50.0030.04020.40
7.0.40.0000.04320.24
7.0.30.0100.03720.16
7.0.20.0070.04020.09
7.0.10.0030.04020.15
7.0.00.0030.06020.22
5.6.280.0030.07021.11
5.6.250.0030.04020.69
5.6.240.0030.04020.57
5.6.230.0030.05020.66
5.6.220.0070.03720.54
5.6.210.0130.03020.62
5.6.200.0030.04321.03
5.6.190.0130.03721.02
5.6.180.0100.06721.10
5.6.170.0030.04021.18
5.6.160.0000.04321.13
5.6.150.0030.04321.29
5.6.140.0030.04021.34
5.6.130.0100.05321.02
5.6.120.0070.08021.15
5.6.110.0030.06021.32
5.6.100.0170.07021.24
5.6.90.0100.08321.27
5.6.80.0030.08320.61
5.6.70.0130.07320.50
5.6.60.0100.07320.65
5.6.50.0130.07020.42
5.6.40.0100.07320.75
5.6.30.0200.04720.58
5.6.20.0100.08320.41
5.6.10.0000.08720.48
5.6.00.0100.08020.45
5.5.380.0100.03320.41
5.5.370.0000.05020.57
5.5.360.0030.07320.46
5.5.350.0030.04720.47
5.5.340.0030.04020.89
5.5.330.0070.07320.89
5.5.320.0000.04321.18
5.5.310.0100.03720.93
5.5.300.0000.05320.85
5.5.290.0070.07720.92
5.5.280.0100.08321.09
5.5.270.0070.05720.97
5.5.260.0070.07320.91
5.5.250.0100.08020.86
5.5.240.0100.06020.28
5.5.230.0200.06320.22
5.5.220.0100.04320.41
5.5.210.0170.06020.55
5.5.200.0100.04020.27
5.5.190.0070.07020.33
5.5.180.0070.06320.33
5.5.160.0000.09020.39
5.5.150.0100.06020.32
5.5.140.0000.08020.36
5.5.130.0130.06720.26
5.5.120.0030.04320.23
5.5.110.0130.07020.28
5.5.100.0070.05320.17
5.5.90.0130.07020.16
5.5.80.0070.07020.27
5.5.70.0070.08020.40
5.5.60.0070.07320.07
5.5.50.0030.07720.05
5.5.40.0070.07720.05
5.5.30.0070.06320.11
5.5.20.0070.07020.06
5.5.10.0030.06320.29
5.5.00.0100.07720.13
5.4.450.0030.04019.48
5.4.440.0030.08019.51
5.4.430.0230.06319.32
5.4.420.0070.07719.49
5.4.410.0200.06019.17
5.4.400.0030.08019.17
5.4.390.0100.07018.98
5.4.380.0100.07319.05
5.4.370.0030.04719.11
5.4.360.0130.06019.08
5.4.350.0000.05319.05
5.4.340.0030.07719.22
5.4.320.0030.08019.07
5.4.310.0130.06719.11
5.4.300.0030.08019.14
5.4.290.0170.06319.24
5.4.280.0070.07319.18
5.4.270.0070.07319.11
5.4.260.0070.07318.99
5.4.250.0100.04019.24
5.4.240.0130.06719.14
5.4.230.0130.06319.29
5.4.220.0070.07719.11
5.4.210.0070.07319.21
5.4.200.0070.05318.97
5.4.190.0070.07019.21
5.4.180.0130.05718.96
5.4.170.0100.07319.29
5.4.160.0070.06019.03
5.4.150.0200.05319.04
5.4.140.0070.04316.25
5.4.130.0130.06316.55
5.4.120.0070.04316.33
5.4.110.0100.07016.33
5.4.100.0100.07016.53
5.4.90.0070.07016.59
5.4.80.0030.04716.53
5.4.70.0030.07716.43
5.4.60.0070.07016.42
5.4.50.0100.07016.40
5.4.40.0100.04016.35
5.4.30.0030.08016.45
5.4.20.0100.04016.54
5.4.10.0100.07016.20
5.4.00.0130.06015.73
5.3.290.0030.05314.73
5.3.280.0070.07714.53
5.3.270.0030.06314.71
5.3.260.0070.08014.50
5.3.250.0100.06714.39
5.3.240.0100.07014.55
5.3.230.0100.07014.62
5.3.220.0130.06714.45
5.3.210.0030.07314.45
5.3.200.0030.07714.58
5.3.190.0100.07314.50
5.3.180.0070.07014.39
5.3.170.0070.07714.58
5.3.160.0070.06714.45
5.3.150.0000.08314.56
5.3.140.0100.07014.42
5.3.130.0030.08314.63
5.3.120.0170.06014.56
5.3.110.0070.07014.45
5.3.100.0070.08013.97
5.3.90.0130.07014.03
5.3.80.0070.07314.02
5.3.70.0170.04313.90
5.3.60.0130.06313.93
5.3.50.0100.07013.81
5.3.40.0070.07013.82
5.3.30.0130.06713.81
5.3.20.0030.07713.59
5.3.10.0030.07313.48
5.3.00.0070.07013.50
5.2.170.0100.05311.05
5.2.160.0170.05011.16
5.2.150.0100.05711.20
5.2.140.0030.06311.08
5.2.130.0030.06311.04
5.2.120.0030.05711.11
5.2.110.0070.05311.05
5.2.100.0100.05711.03
5.2.90.0070.06311.13
5.2.80.0100.05311.25
5.2.70.0070.03310.99
5.2.60.0030.06011.00
5.2.50.0070.06311.09
5.2.40.0070.05710.93
5.2.30.0070.06010.93
5.2.20.0070.05710.86
5.2.10.0070.05010.85
5.2.00.0030.05710.77
5.1.60.0030.0539.82
5.1.50.0070.03710.07
5.1.40.0030.0479.86
5.1.30.0070.05710.23
5.1.20.0170.04310.48
5.1.10.0000.0509.97
5.1.00.0030.06010.00
5.0.50.0030.0478.81
5.0.40.0030.0478.36
5.0.30.0070.0638.21
5.0.20.0070.0408.21
5.0.10.0000.0478.16
5.0.00.0000.0578.00
4.4.90.0100.0277.93
4.4.80.0000.0307.93
4.4.70.0070.0307.93
4.4.60.0070.0337.93
4.4.50.0000.0377.93
4.4.40.0030.0307.93
4.4.30.0070.0337.93
4.4.20.0000.0337.93
4.4.10.0000.0377.93
4.4.00.0070.0507.93
4.3.110.0030.0337.93
4.3.100.0030.0337.93
4.3.90.0000.0377.93
4.3.80.0100.0437.93
4.3.70.0000.0377.93
4.3.60.0000.0377.93
4.3.50.0030.0337.93
4.3.40.0030.0537.93
4.3.30.0000.0377.93
4.3.20.0000.0377.93
4.3.10.0000.0407.93
4.3.00.0000.0377.93

preferences:
57.99 ms | 401 KiB | 5 Q