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 = "4omMelHh+lpMcd0EB9yk/I22JAw5ibDV7FNFR+EaDiM= "; 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.70.0100.00618.28
8.3.60.0030.01216.75
8.3.50.0090.01221.21
8.3.40.0140.00018.88
8.3.30.0040.01118.66
8.3.20.0000.00820.16
8.3.10.0000.00823.65
8.3.00.0060.00319.68
8.2.180.0060.00916.50
8.2.170.0110.00422.96
8.2.160.0100.00720.57
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0080.00017.50
8.2.110.0060.00322.20
8.2.100.0000.01117.75
8.2.90.0030.00519.22
8.2.80.0040.00417.97
8.2.70.0030.00517.63
8.2.60.0030.00617.91
8.2.50.0050.00318.07
8.2.40.0000.00719.38
8.2.30.0000.00719.70
8.2.20.0000.00817.69
8.2.10.0060.00318.07
8.2.00.0040.00418.06
8.1.280.0040.01525.92
8.1.270.0130.00720.13
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0060.00322.57
8.1.230.0060.00617.42
8.1.220.0040.00417.74
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0040.00417.13
8.1.180.0050.00318.10
8.1.170.0040.00418.51
8.1.160.0040.00421.91
8.1.150.0000.00718.71
8.1.140.0000.00917.39
8.1.130.0000.00817.57
8.1.120.0080.00017.42
8.1.110.0040.00417.35
8.1.100.0040.00417.32
8.1.90.0030.00417.27
8.1.80.0040.00417.28
8.1.70.0040.00417.37
8.1.60.0040.00417.61
8.1.50.0040.00417.42
8.1.40.0040.00417.41
8.1.30.0030.00517.69
8.1.20.0040.00417.52
8.1.10.0000.00717.57
8.1.00.0000.00917.51
8.0.300.0000.00718.77
8.0.290.0050.00316.75
8.0.280.0040.00418.39
8.0.270.0070.00017.25
8.0.260.0000.00617.11
8.0.250.0080.00316.99
8.0.240.0070.00316.98
8.0.230.0040.00416.94
8.0.220.0000.00816.89
8.0.210.0000.00716.89
8.0.200.0090.00016.94
8.0.190.0030.00516.98
8.0.180.0050.00216.93
8.0.170.0040.00416.98
8.0.160.0050.00316.88
8.0.150.0030.00516.79
8.0.140.0030.00516.88
8.0.130.0000.00813.35
8.0.120.0080.00016.82
8.0.110.0040.00416.79
8.0.100.0040.00416.95
8.0.90.0040.00417.01
8.0.80.0100.01016.84
8.0.70.0050.00216.88
8.0.60.0040.00416.94
8.0.50.0040.00416.78
8.0.30.0100.00617.01
8.0.20.0090.01017.40
8.0.10.0030.00316.91
8.0.00.0080.01016.82
7.4.330.0050.00015.08
7.4.320.0040.00416.41
7.4.300.0030.00316.65
7.4.290.0030.00316.59
7.4.280.0000.00716.64
7.4.270.0040.00316.46
7.4.260.0000.00716.50
7.4.250.0000.00816.44
7.4.240.0010.00716.59
7.4.230.0000.00816.44
7.4.220.0120.01216.54
7.4.210.0110.00316.46
7.4.200.0070.00016.40
7.4.160.0060.01016.45
7.4.150.0090.00917.40
7.4.140.0090.01217.86
7.4.130.0110.00916.48
7.4.120.0100.00816.53
7.4.110.0070.01016.59
7.4.100.0140.00316.57
7.4.90.0120.00416.50
7.4.80.0040.01519.39
7.4.70.0090.00916.46
7.4.60.0060.00916.37
7.4.50.0000.00416.36
7.4.40.0070.01016.74
7.4.30.0100.00716.52
7.4.00.0090.00614.77
7.3.330.0050.00013.31
7.3.320.0000.00513.33
7.3.310.0040.00416.30
7.3.300.0060.00016.18
7.3.290.0100.00416.32
7.3.280.0080.01016.29
7.3.270.0120.00817.40
7.3.260.0180.00016.30
7.3.250.0110.00716.38
7.3.240.0100.00616.23
7.3.230.0090.00916.39
7.3.210.0090.01216.46
7.3.200.0000.01716.46
7.3.190.0100.01016.63
7.3.180.0070.01016.32
7.3.170.0090.00616.27
7.3.160.0090.00916.36
7.2.330.0000.01816.44
7.2.320.0130.00616.33
7.2.310.0090.00816.62
7.2.300.0130.00316.30
7.2.290.0100.00716.54
7.2.60.0030.00916.84
7.2.00.0140.00319.22
7.1.200.0030.00815.87
7.1.100.0100.00317.79
7.1.70.0000.01517.19
7.1.60.0170.00719.13
7.1.50.0130.00916.86
7.1.00.0100.07022.30
7.0.200.0000.00716.46
7.0.60.0070.08719.96
7.0.50.0130.07317.98
7.0.40.0100.07320.00
7.0.30.0200.04020.13
7.0.20.0270.08020.38
7.0.10.0000.05320.28
7.0.00.0070.08320.27
5.6.280.0030.05320.87
5.6.210.0270.06320.61
5.6.200.0100.06318.21
5.6.190.0030.07020.58
5.6.180.3030.04720.45
5.6.170.0400.07020.50
5.6.160.0130.07720.55
5.6.150.0070.05018.20
5.6.140.0030.08018.33
5.6.130.0000.08718.25
5.6.120.0070.08321.17
5.6.110.0130.07720.98
5.6.100.0130.08721.13
5.6.90.0100.08321.16
5.6.80.0070.06020.45
5.6.70.3670.03720.41
5.5.350.0100.08720.29
5.5.340.0170.06018.16
5.5.330.0030.04320.31
5.5.320.2930.04320.36
5.5.310.0330.07320.39
5.5.300.0070.08317.96
5.5.290.0030.08317.99
5.5.280.0000.09320.92
5.5.270.0200.07020.85
5.5.260.0170.07720.85
5.5.250.0130.04020.71
5.5.240.0230.07020.34
5.4.450.0600.05719.43
5.4.440.0630.05719.61
5.4.430.0600.05719.50
5.4.420.1000.05319.59
5.4.410.0830.05019.38
5.4.400.0970.05319.34
5.4.390.0600.06019.18
5.4.380.0630.06019.31
5.4.370.0830.04718.86
5.4.360.0600.06018.86
5.4.350.0770.05719.11
5.4.340.0770.07319.00
5.4.320.0870.07019.40
5.4.310.0730.04319.05
5.4.300.0800.05719.34
5.4.290.0630.05319.17
5.4.280.0770.05319.40
5.4.270.0770.06319.17
5.4.260.0770.05319.26
5.4.250.0830.04719.08
5.4.240.0730.05719.31
5.4.230.0870.04319.13
5.4.220.0770.05319.39
5.4.210.0600.05719.17
5.4.200.0930.03719.27
5.4.190.0770.05718.85
5.4.180.0830.04718.98
5.4.170.0770.05318.84
5.4.160.0800.05319.27
5.4.150.0800.05319.24
5.4.140.0830.04716.59
5.4.130.0800.04716.50
5.4.120.0930.03316.39
5.4.110.0770.05316.71
5.4.100.0870.04316.37
5.4.90.0800.04716.52
5.4.80.1000.06716.68
5.4.70.0000.04316.35
5.4.60.0330.05716.61
5.4.50.0000.03316.62
5.4.40.0200.03716.39
5.4.30.0330.07016.36
5.4.20.0200.03316.27

preferences:
49.03 ms | 401 KiB | 5 Q