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 = "v4vRexqmveVUVWR+XluuqbWz7kPmY5jFyD74NTlNx1Y="; 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.60.0090.00616.75
8.3.50.0140.00716.63
8.3.40.0150.00018.68
8.3.30.0090.00918.61
8.3.20.0070.00020.34
8.3.10.0000.00823.66
8.3.00.0000.01019.56
8.2.180.0150.00018.54
8.2.170.0070.01422.96
8.2.160.0050.00820.50
8.2.150.0040.00424.18
8.2.140.0060.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00817.50
8.2.110.0060.00320.81
8.2.100.0090.00617.76
8.2.90.0000.00819.08
8.2.80.0040.00417.97
8.2.70.0060.00617.50
8.2.60.0040.00417.80
8.2.50.0030.00618.07
8.2.40.0000.01019.21
8.2.30.0040.00419.66
8.2.20.0050.00317.80
8.2.10.0000.00818.00
8.2.00.0040.00418.12
8.1.270.0180.00020.23
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.01
8.1.230.0120.00018.79
8.1.220.0030.00517.74
8.1.210.0080.00018.77
8.1.200.0100.00017.35
8.1.190.0080.00017.22
8.1.180.0080.00018.10
8.1.170.0040.00418.59
8.1.160.0080.00021.86
8.1.150.0040.00418.89
8.1.140.0040.00417.44
8.1.130.0000.00717.63
8.1.120.0050.00217.40
8.1.110.0000.00817.37
8.1.100.0050.00317.40
8.1.90.0040.00417.41
8.1.80.0040.00417.27
8.1.70.0000.00717.41
8.1.60.0080.00017.55
8.1.50.0000.00817.48
8.1.40.0000.00917.51
8.1.30.0030.00617.65
8.1.20.0090.00017.65
8.1.10.0050.00317.55
8.1.00.0040.00417.35
8.0.300.0070.00018.77
8.0.290.0080.00016.75
8.0.280.0000.00718.38
8.0.270.0050.00217.18
8.0.260.0040.00417.19
8.0.250.0000.00716.99
8.0.240.0000.00816.88
8.0.230.0000.00716.87
8.0.220.0000.00716.83
8.0.210.0000.00716.92
8.0.200.0030.00316.97
8.0.190.0040.00416.92
8.0.180.0070.00016.91
8.0.170.0000.00816.88
8.0.160.0040.00416.96
8.0.150.0080.00016.72
8.0.140.0040.00416.74
8.0.130.0000.00813.31
8.0.120.0040.00416.88
8.0.110.0070.00016.91
8.0.100.0050.00316.79
8.0.90.0000.00816.77
8.0.80.0100.01016.95
8.0.70.0000.00716.84
8.0.60.0050.00216.75
8.0.50.0000.00716.94
8.0.30.0030.01517.09
8.0.20.0070.01417.40
8.0.10.0000.00717.06
8.0.00.0090.00916.72
7.4.330.0060.00015.08
7.4.320.0030.00316.53
7.4.300.0000.00616.45
7.4.290.0000.00716.42
7.4.280.0040.00416.65
7.4.270.0030.00316.44
7.4.260.0030.00316.61
7.4.250.0000.00816.45
7.4.240.0020.00516.55
7.4.230.0000.00716.64
7.4.220.0130.00616.63
7.4.210.0030.01316.64
7.4.200.0000.00716.69
7.4.160.0120.01116.65
7.4.150.0110.00717.40
7.4.140.0090.00817.86
7.4.130.0150.00316.62
7.4.120.0130.00716.53
7.4.110.0090.00916.44
7.4.100.0140.00416.41
7.4.90.0040.01416.65
7.4.80.0090.00919.39
7.4.70.0030.01416.60
7.4.60.0070.00916.57
7.4.50.0000.00816.27
7.4.40.0030.01316.56
7.4.30.0120.00916.52
7.4.00.0080.01015.06
7.3.330.0000.00513.33
7.3.320.0000.00513.28
7.3.310.0040.00416.35
7.3.300.0070.00016.35
7.3.290.0030.00316.35
7.3.280.0040.01216.34
7.3.270.0100.00717.40
7.3.260.0070.01116.41
7.3.250.0110.01016.35
7.3.240.0070.01016.32
7.3.230.0070.01016.55
7.3.210.0100.00716.61
7.3.200.0070.01116.26
7.3.190.0110.00616.51
7.3.180.0120.00416.38
7.3.170.0090.00616.34
7.3.160.0110.01116.35
7.3.120.0070.01014.98
7.3.110.0100.00714.71
7.3.100.0040.01215.03
7.3.90.0070.00714.97
7.3.80.0080.00414.88
7.3.70.0090.00614.86
7.3.60.0030.01314.76
7.3.50.0040.01114.52
7.3.40.0000.01614.75
7.3.30.0060.00914.56
7.3.20.0060.00616.61
7.3.10.0070.00716.61
7.3.00.0060.00316.78
7.2.330.0000.01816.24
7.2.320.0100.01316.61
7.2.310.0060.01116.57
7.2.300.0060.01116.24
7.2.290.0090.01216.39
7.2.250.0040.01414.82
7.2.240.0070.01415.05
7.2.230.0060.01014.63
7.2.220.0120.00015.09
7.2.210.0110.00414.95
7.2.200.0070.01114.83
7.2.190.0030.01414.82
7.2.180.0000.01214.92
7.2.170.0040.01115.01
7.2.60.0030.01016.59
7.2.00.0100.01019.34
7.1.330.0040.00715.95
7.1.320.0040.01115.80
7.1.310.0070.00315.73
7.1.300.0100.00315.68
7.1.290.0070.00415.58
7.1.280.0000.01015.39
7.1.270.0110.00415.83
7.1.260.0080.00015.79
7.1.200.0140.00615.29
7.1.100.0030.00918.05
7.1.70.0000.01317.22
7.1.60.0130.01019.13
7.1.50.0060.01516.72
7.1.00.0000.08022.42
7.0.200.0040.00816.55
7.0.60.0130.06320.02
7.0.50.0000.04317.97
7.0.40.0000.06020.14
7.0.30.0530.07320.16
7.0.20.0230.07020.17
7.0.10.0170.08020.14
7.0.00.0070.09020.27
5.6.280.0030.03021.16
5.6.210.0030.04720.67
5.6.200.0030.07018.17
5.6.190.0100.07020.72
5.6.180.1670.05720.66
5.6.170.0200.03720.59
5.6.160.0070.07320.65
5.6.150.0070.07718.23
5.6.140.0100.04018.19
5.6.130.0070.08718.21
5.6.120.0230.07321.06
5.6.110.0070.06021.07
5.6.100.0170.07321.22
5.6.90.0100.06721.10
5.6.80.0070.08720.47
5.6.70.4330.03320.57
5.5.350.0270.06320.41
5.5.340.0030.05318.14
5.5.330.0000.08320.16
5.5.320.0400.06720.39
5.5.310.0330.08320.33
5.5.300.0070.08017.99
5.5.290.0030.04017.99
5.5.280.0070.04320.81
5.5.270.0070.05721.01
5.5.260.0070.04020.88
5.5.250.0070.08320.70
5.5.240.0200.04320.35
5.4.450.0870.05319.53
5.4.440.0830.06019.43
5.4.430.0770.06319.66
5.4.420.0930.04319.62
5.4.410.0930.04719.53
5.4.400.0900.04318.90
5.4.390.0930.06719.10
5.4.380.0800.05319.16
5.4.370.0800.06019.18
5.4.360.0630.06018.90
5.4.350.0670.05319.13
5.4.340.0730.06019.27
5.4.320.0700.06319.35
5.4.310.0670.05019.05
5.4.300.0600.05718.88
5.4.290.0700.05019.16
5.4.280.0670.05719.05
5.4.270.0770.05718.87
5.4.260.0630.05719.05
5.4.250.0700.05019.29
5.4.240.0630.05719.15
5.4.230.0700.06019.32
5.4.220.0700.05019.05
5.4.210.0700.05019.09
5.4.200.0800.04019.32
5.4.190.0670.05319.26
5.4.180.0600.06019.41
5.4.170.0600.06019.15
5.4.160.0670.05319.14
5.4.150.0700.05019.31
5.4.140.0630.05316.46
5.4.130.0670.04716.51
5.4.120.0700.04716.85
5.4.110.0670.05016.68
5.4.100.0730.04316.73
5.4.90.0670.05316.51
5.4.80.0700.04016.61
5.4.70.0200.04016.60
5.4.60.0270.07016.39
5.4.50.0030.05316.52
5.4.40.0200.03316.26
5.4.30.0330.06016.46
5.4.20.0000.05316.35

preferences:
62.99 ms | 400 KiB | 5 Q