3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('SALT', str_pad("$2015", 16)); function encrypt($text) { return trim(base64_encode(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, SALT, $text, MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND)))); } function decrypt($text) { return trim(mcrypt_decrypt(MCRYPT_RIJNDAEL_256, SALT, base64_decode($text), MCRYPT_MODE_ECB, mcrypt_create_iv(mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB), MCRYPT_RAND))); } $password = "rL+WUFdHDyNRKOtW1tl5KT/UQuxMCb4W62m9YrimTdg="; echo decrypt($password);

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.0110.00418.57
8.3.30.0080.00618.49
8.3.20.0120.00320.29
8.3.10.0030.00623.66
8.3.00.0070.00319.67
8.2.170.0110.00422.96
8.2.160.0070.00720.39
8.2.150.0000.00824.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00317.63
8.2.110.0100.00022.07
8.2.100.0120.00017.63
8.2.90.0050.00319.11
8.2.80.0040.00417.97
8.2.70.0060.00317.50
8.2.60.0050.00317.68
8.2.50.0030.00618.07
8.2.40.0000.00919.28
8.2.30.0050.00319.84
8.2.20.0030.00517.69
8.2.10.0040.00418.12
8.2.00.0060.00317.93
8.1.270.0070.01120.15
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0100.00022.56
8.1.230.0040.00817.42
8.1.220.0040.00417.78
8.1.210.0030.00518.77
8.1.200.0040.00417.36
8.1.190.0040.00717.35
8.1.180.0060.00318.10
8.1.170.0040.00418.53
8.1.160.0040.00421.95
8.1.150.0040.00418.88
8.1.140.0050.00517.36
8.1.130.0040.00417.53
8.1.120.0040.00417.41
8.1.110.0000.00717.38
8.1.100.0070.00017.42
8.1.90.0000.00817.41
8.1.80.0000.00717.30
8.1.70.0070.00017.38
8.1.60.0060.00317.53
8.1.50.0090.00017.43
8.1.40.0040.00417.53
8.1.30.0110.00017.57
8.1.20.0040.00417.66
8.1.10.0000.00817.61
8.1.00.0030.00517.51
8.0.300.0030.00718.77
8.0.290.0000.00816.75
8.0.280.0050.00218.38
8.0.270.0030.00317.20
8.0.260.0030.00317.11
8.0.250.0040.00416.91
8.0.240.0070.00016.93
8.0.230.0030.00316.89
8.0.220.0000.00716.88
8.0.210.0000.00716.88
8.0.200.0000.00716.91
8.0.190.0070.00016.85
8.0.180.0050.00216.94
8.0.170.0050.00316.88
8.0.160.0050.00316.78
8.0.150.0000.00716.93
8.0.140.0000.00816.75
8.0.130.0090.00013.30
8.0.120.0040.00416.84
8.0.110.0000.00716.92
8.0.100.0040.00416.92
8.0.90.0050.00216.80
8.0.80.0090.00616.82
8.0.70.0070.00016.70
8.0.60.0070.00016.96
8.0.50.0050.00316.81
8.0.30.0100.00917.14
8.0.20.0110.00817.40
8.0.10.0000.00717.02
8.0.00.0100.00816.94
7.4.330.0030.00315.08
7.4.320.0030.00316.50
7.4.300.0030.00316.41
7.4.290.0000.00716.54
7.4.280.0000.00816.59
7.4.270.0030.00316.46
7.4.260.0030.00316.59
7.4.250.0040.00416.52
7.4.240.0060.00116.48
7.4.230.0030.00316.51
7.4.220.0140.00716.55
7.4.210.0050.01016.59
7.4.200.0030.00516.34
7.4.160.0030.01316.45
7.4.150.0070.01017.40
7.4.140.0100.00817.86
7.4.130.0090.01216.60
7.4.120.0050.01316.60
7.4.110.0100.00716.61
7.4.100.0140.00916.41
7.4.90.0120.00916.45
7.4.80.0100.00819.39
7.4.70.0100.00716.59
7.4.60.0130.00316.53
7.4.50.0000.00516.52
7.4.40.0070.01016.47
7.4.30.0160.00716.37
7.4.00.0070.01014.88
7.3.330.0000.00513.18
7.3.320.0050.00013.15
7.3.310.0040.00416.41
7.3.300.0020.00516.31
7.3.290.0000.00816.18
7.3.280.0110.00716.29
7.3.270.0070.01117.40
7.3.260.0130.00416.55
7.3.250.0120.01116.45
7.3.240.0100.00616.36
7.3.230.0030.01316.39
7.3.210.0040.01516.36
7.3.200.0060.01016.32
7.3.190.0100.00616.39
7.3.180.0100.00716.39
7.3.170.0060.00916.47
7.3.160.0030.01416.40
7.3.120.0090.01015.00
7.3.110.0000.01914.45
7.3.100.0050.00814.70
7.3.90.0040.00714.74
7.3.80.0090.00014.62
7.3.70.0090.00314.88
7.3.60.0070.00714.85
7.3.50.0090.00614.85
7.3.40.0030.01314.88
7.3.30.0030.01014.50
7.3.20.0090.00616.74
7.3.10.0070.00716.59
7.3.00.0060.00816.67
7.2.330.0150.00616.64
7.2.320.0060.01316.38
7.2.310.0080.00816.55
7.2.300.0130.00316.52
7.2.290.0100.00716.50
7.2.250.0070.01014.57
7.2.240.0140.00714.94
7.2.230.0070.00315.05
7.2.220.0040.00815.11
7.2.210.0060.00614.73
7.2.200.0030.00715.07
7.2.190.0070.00414.93
7.2.180.0000.01814.97
7.2.170.0100.00314.53
7.2.130.0040.00916.95
7.2.120.0060.00916.78
7.2.110.0060.00716.74
7.2.100.0080.00716.67
7.2.90.0050.00816.73
7.2.80.0100.00416.78
7.2.70.0050.00716.83
7.2.60.0080.00616.85
7.2.50.0060.00616.80
7.2.40.0100.00216.82
7.2.30.0070.00716.78
7.2.20.0070.00516.76
7.2.10.0100.00816.69
7.2.00.0040.01017.45
7.1.330.0000.01315.65
7.1.320.0040.00815.92
7.1.310.0060.01015.44
7.1.300.0030.01315.80
7.1.290.0080.00815.52
7.1.280.0060.00315.76
7.1.270.0000.01015.89
7.1.260.0030.00915.79
7.1.250.0050.01315.63
7.1.200.0040.00815.63
7.1.100.0140.00718.08
7.1.70.0040.00417.03
7.1.60.0040.02119.13
7.1.50.0030.02116.94
7.1.00.0000.08022.57
7.0.200.0040.00416.81
7.0.60.0070.08019.91
7.0.50.0130.07317.96
7.0.40.0030.06720.15
7.0.30.0530.05020.13
7.0.20.0170.06320.11
7.0.10.0000.08320.29
7.0.00.0070.06720.12
5.6.280.0000.03321.03
5.6.210.0130.06020.77
5.6.200.0070.05718.21
5.6.190.0100.08720.67
5.6.180.2100.05020.50
5.6.170.0170.04720.59
5.6.160.0030.09020.50
5.6.150.0000.05018.27
5.6.140.0070.03718.29
5.6.130.0100.03718.29
5.6.120.0030.06021.06
5.6.110.0030.04321.07
5.6.100.0170.07321.18
5.6.90.0170.06720.97
5.6.80.0070.05020.57
5.6.70.4670.03720.54
5.5.350.0300.05720.41
5.5.340.0070.07018.03
5.5.330.0030.06720.46
5.5.320.0400.07020.25
5.5.310.0370.06320.39
5.5.300.0100.05017.99
5.5.290.0000.05318.00
5.5.280.0070.04320.88
5.5.270.0070.08320.87
5.5.260.0100.07720.84
5.5.250.0030.04320.68
5.5.240.0230.07020.29
5.4.450.0670.05719.53
5.4.440.0830.04719.65
5.4.430.0600.06319.23
5.4.420.0630.05719.66
5.4.410.0630.05719.38
5.4.400.0670.05018.88
5.4.390.0670.05019.27
5.4.380.0700.04719.27
5.4.370.0700.05019.35
5.4.360.0830.05719.16
5.4.350.0970.04719.16
5.4.340.0800.05719.32
5.4.320.0800.06019.43
5.4.310.0830.05019.30
5.4.300.0830.06319.29
5.4.290.0770.06019.29
5.4.280.0800.05719.32
5.4.270.0930.04319.16
5.4.260.0830.05019.33
5.4.250.0770.06019.26
5.4.240.0800.05319.29
5.4.230.0870.05019.34
5.4.220.0830.05319.41
5.4.210.0870.07019.28
5.4.200.0870.05719.14
5.4.190.0870.05719.14
5.4.180.0870.05019.31
5.4.170.0900.04719.33
5.4.160.0900.04719.30
5.4.150.0870.05019.08
5.4.140.0930.04316.61
5.4.130.0870.05016.60
5.4.120.0600.05316.43
5.4.110.1000.06316.28
5.4.100.0870.04716.68
5.4.90.1000.05316.70
5.4.80.0700.04716.66
5.4.70.0270.07316.59
5.4.60.0300.06716.61
5.4.50.0030.03716.54
5.4.40.0200.04016.26
5.4.30.0400.05316.56
5.4.20.0030.07016.60

preferences:
61.13 ms | 400 KiB | 5 Q