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 = '-cMgOXQks'; $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.60.0090.00616.63
8.3.50.0150.00521.10
8.3.40.0110.00418.84
8.3.30.0140.00019.08
8.3.20.0040.00420.19
8.3.10.0040.00421.85
8.3.00.0070.00019.02
8.2.180.0090.00616.57
8.2.170.0070.01022.96
8.2.160.0090.00620.39
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00420.94
8.2.110.0100.00019.24
8.2.100.0030.00720.52
8.2.90.0040.00419.57
8.2.80.0040.00419.24
8.2.70.0050.00317.79
8.2.60.0040.00418.22
8.2.50.0080.00018.10
8.2.40.0000.00818.06
8.2.30.0040.00417.98
8.2.20.0020.00517.62
8.2.10.0080.00018.16
8.2.00.0000.00718.16
8.1.280.0120.00625.92
8.1.270.0090.00018.45
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0080.00317.66
8.1.230.0070.00419.00
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00617.22
8.1.190.0040.00417.35
8.1.180.0000.00818.10
8.1.170.0050.00318.47
8.1.160.0040.00421.95
8.1.150.0000.00918.82
8.1.140.0040.00417.39
8.1.130.0030.00317.69
8.1.120.0000.00717.38
8.1.110.0000.00717.28
8.1.100.0040.00417.41
8.1.90.0000.00717.44
8.1.80.0050.00217.41
8.1.70.0000.00717.42
8.1.60.0040.00417.44
8.1.50.0030.00617.54
8.1.40.0080.00017.46
8.1.30.0040.00417.67
8.1.20.0040.00417.64
8.1.10.0050.00317.55
8.1.00.0020.00517.53
8.0.300.0000.00719.77
8.0.290.0070.00316.88
8.0.280.0030.00318.36
8.0.270.0070.00017.17
8.0.260.0030.00317.19
8.0.250.0030.00317.00
8.0.240.0030.00316.90
8.0.230.0040.00316.98
8.0.220.0000.00716.98
8.0.210.0000.01016.94
8.0.200.0030.00317.03
8.0.190.0000.00717.00
8.0.180.0030.00516.88
8.0.170.0040.00416.99
8.0.160.0040.00416.86
8.0.150.0000.00716.79
8.0.140.0050.00316.97
8.0.130.0050.00313.37
8.0.120.0040.00416.88
8.0.110.0060.00316.93
8.0.100.0000.00716.97
8.0.90.0040.00416.79
8.0.80.0150.00616.88
8.0.70.0000.00716.98
8.0.60.0040.00416.84
8.0.50.0040.00416.86
8.0.30.0040.01316.92
8.0.20.0140.00517.40
8.0.10.0040.00416.86
8.0.00.0080.01216.77
7.4.330.0000.00515.03
7.4.320.0000.00616.34
7.4.300.0060.00016.49
7.4.290.0030.00316.60
7.4.280.0070.00016.49
7.4.270.0030.00316.48
7.4.260.0110.00016.57
7.4.250.0040.00416.54
7.4.240.0020.00516.53
7.4.230.0030.00316.39
7.4.220.0070.01116.66
7.4.210.0090.00616.44
7.4.200.0040.00416.71
7.4.160.0000.01716.41
7.4.150.0120.00817.40
7.4.140.0130.00817.86
7.4.130.0090.00916.57
7.4.120.0070.01416.53
7.4.110.0180.00616.64
7.4.100.0130.01016.61
7.4.90.0080.00816.48
7.4.80.0120.00619.39
7.4.70.0060.01216.27
7.4.60.0070.01016.36
7.4.50.0040.00416.68
7.4.40.0100.01016.54
7.4.30.0040.01216.62
7.4.00.0030.01015.26
7.3.330.0060.00013.18
7.3.320.0050.00013.23
7.3.310.0050.00216.46
7.3.300.0000.00716.32
7.3.290.0100.00716.35
7.3.280.0080.00816.35
7.3.270.0120.00617.40
7.3.260.0200.00316.39
7.3.250.0100.00716.49
7.3.240.0080.00816.23
7.3.230.0090.00916.57
7.3.210.0090.00916.40
7.3.200.0160.00319.39
7.3.190.0100.00716.54
7.3.180.0060.01116.37
7.3.170.0140.00916.35
7.3.160.0160.00316.32
7.3.10.0000.01416.53
7.3.00.0030.01016.80
7.2.330.0130.00416.70
7.2.320.0030.01816.68
7.2.310.0130.00916.73
7.2.300.0090.00916.77
7.2.290.0090.01216.73
7.2.130.0100.00316.86
7.2.120.0100.00317.11
7.2.110.0050.00516.96
7.2.100.0030.00716.76
7.2.90.0130.00016.84
7.2.80.0080.00816.95
7.2.70.0040.01117.07
7.2.60.0020.01316.99
7.2.50.0100.00517.09
7.2.40.0000.01216.70
7.2.30.0110.00716.98
7.2.20.0130.00616.79
7.2.10.0090.00516.86
7.2.00.0040.01016.95
7.1.250.0160.00015.98
7.1.200.0060.00915.81
7.1.70.0000.00717.20
7.1.60.0070.01719.59
7.1.50.0060.01616.86
7.1.00.0030.07722.44
7.0.200.0040.00716.49
7.0.60.0030.08019.95
7.0.50.0030.04317.93
7.0.40.0130.03320.06
7.0.30.0230.05720.16
7.0.20.0270.08020.23
7.0.10.0070.08720.18
7.0.00.0100.04020.09
5.6.280.0070.07021.12
5.6.210.0200.06720.46
5.6.200.0030.05018.16
5.6.190.0100.08720.44
5.6.180.0400.07720.65
5.6.170.0500.06720.55
5.6.160.0070.08720.55
5.6.150.0100.07718.22
5.6.140.0000.04718.19
5.6.130.0100.06018.12
5.6.120.0100.08321.04
5.6.110.0070.07021.18
5.6.100.0000.09021.15
5.6.90.0070.09021.02
5.6.80.0030.07020.52
5.5.350.4330.03720.44
5.5.340.0000.04318.09
5.5.330.0030.06020.22
5.5.320.0400.05720.26
5.5.310.0470.06320.25
5.5.300.0030.08717.93
5.5.290.0130.03318.01
5.5.280.0100.08020.92
5.5.270.0000.04720.82
5.5.260.0030.04720.91
5.5.250.0130.06020.66
5.5.240.0200.05320.18
5.4.450.0530.04319.43
5.4.440.0270.06019.19
5.4.430.0100.05319.72
5.4.420.0100.05319.52
5.4.410.0200.04319.24
5.4.400.0230.03719.07
5.4.390.0130.04719.06
5.4.380.0170.05019.20
5.4.370.0070.05719.05
5.4.360.0070.05319.00
5.4.350.0000.06319.05
5.4.340.0200.04319.14
5.4.320.0070.06019.29
5.4.310.0100.05319.00
5.4.300.0070.06019.00
5.4.290.0200.06719.29
5.4.280.0130.05019.05
5.4.270.0130.04719.01
5.4.260.0100.05018.99
5.4.250.0070.05719.16
5.4.240.0170.05019.09
5.4.230.0070.05719.18
5.4.220.0070.05719.16
5.4.210.0200.04319.09
5.4.200.0130.04716.81
5.4.190.0070.06019.12
5.4.180.0100.05319.02
5.4.170.0070.05719.20
5.4.160.0100.05719.03
5.4.150.0170.05318.94
5.4.140.0200.04016.27
5.4.130.0130.05016.51
5.4.120.0130.04316.24
5.4.110.0130.04316.65
5.4.100.0170.04316.56
5.4.90.0000.06016.30
5.4.80.0130.04716.63
5.4.70.0100.05016.39
5.4.60.0100.05016.47
5.4.50.0070.05716.53
5.4.40.0100.05016.15
5.4.30.0100.05016.37
5.4.20.0130.05016.17
5.4.10.0070.05316.53
5.4.00.0130.06015.84
5.3.290.0170.04714.54
5.3.280.0200.04014.52
5.3.270.0070.06314.61
5.3.260.0100.05314.61
5.3.250.0200.04314.62
5.3.240.0170.04314.52
5.3.230.0100.05014.63
5.3.220.0130.04714.46
5.3.210.0200.06314.43
5.3.200.0230.04714.46
5.3.190.0070.05314.50
5.3.180.0030.05714.44
5.3.170.0170.04314.47
5.3.160.0130.04714.44
5.3.150.0100.05014.43
5.3.140.0030.05714.54
5.3.130.0070.06314.34
5.3.120.0070.05714.46
5.3.110.0070.05714.47
5.3.100.0170.04313.97
5.3.90.0130.04713.86
5.3.80.0100.06713.95
5.3.70.0130.04714.02
5.3.60.0100.05013.85
5.3.50.0000.05713.80
5.3.40.0200.05713.80
5.3.30.0000.05713.92
5.3.20.0200.03713.64
5.3.10.0070.04713.64
5.3.00.0070.05013.43
5.2.170.0200.03311.07
5.2.160.0100.03711.23
5.2.150.0100.04011.25
5.2.140.0070.04311.04
5.2.130.0100.03710.95
5.2.120.0000.04711.19
5.2.110.0000.04710.96
5.2.100.0130.03310.89
5.2.90.0100.03710.89
5.2.80.0070.04010.93
5.2.70.0130.03711.10
5.2.60.0030.04310.96
5.2.50.0070.04010.91
5.2.40.0100.03710.94
5.2.30.0070.04311.05
5.2.20.0100.03710.80
5.2.10.0030.04010.84
5.2.00.0100.03710.70
5.1.60.0100.03310.06
5.1.50.0070.0339.88
5.1.40.0070.0339.84
5.1.30.0030.04010.42
5.1.20.0070.03710.29
5.1.10.0070.0379.95
5.1.00.0070.0379.91
5.0.50.0100.0238.64
5.0.40.0000.0308.35
5.0.30.0070.0408.17
5.0.20.0100.0238.10
5.0.10.0030.0278.11
5.0.00.0070.0438.16
4.4.90.0030.0235.79
4.4.80.0000.0235.91
4.4.70.0030.0205.78
4.4.60.0030.0205.78
4.4.50.0070.0205.81
4.4.40.0030.0335.75
4.4.30.0100.0135.79
4.4.20.0030.0205.94
4.4.10.0030.0205.91
4.4.00.0030.0335.80
4.3.110.0030.0235.84
4.3.100.0000.0275.78
4.3.90.0070.0205.66
4.3.80.0000.0375.77
4.3.70.0030.0205.77
4.3.60.0000.0235.68
4.3.50.0000.0235.77
4.3.40.0000.0375.73
4.3.30.0030.0204.51
4.3.20.0100.0134.43
4.3.10.0000.0234.47
4.3.00.0070.0236.71

preferences:
74.07 ms | 401 KiB | 5 Q