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 = "5vHSulePXiz+YIAj68M+30bHvY5Bcqc3PKesRNhxfds= "; 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.0040.01116.75
8.3.50.0150.00721.94
8.3.40.0070.00718.61
8.3.30.0080.00618.66
8.3.20.0050.00320.19
8.3.10.0000.00823.56
8.3.00.0070.00319.54
8.2.180.0070.00716.50
8.2.170.0110.00322.96
8.2.160.0140.00320.38
8.2.150.0070.00024.18
8.2.140.0030.00724.66
8.2.130.0040.00426.16
8.2.120.0060.00317.60
8.2.110.0060.00319.39
8.2.100.0120.00017.72
8.2.90.0030.00519.04
8.2.80.0000.00817.97
8.2.70.0060.00617.62
8.2.60.0050.00517.80
8.2.50.0030.00718.07
8.2.40.0000.00819.41
8.2.30.0040.00419.77
8.2.20.0000.00817.71
8.2.10.0040.00418.08
8.2.00.0000.00818.12
8.1.280.0070.01425.92
8.1.270.0090.00920.25
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0030.00623.88
8.1.230.0040.00717.42
8.1.220.0040.00417.74
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0080.00017.35
8.1.180.0060.00318.10
8.1.170.0030.00518.46
8.1.160.0050.00221.89
8.1.150.0040.00418.75
8.1.140.0080.00317.31
8.1.130.0000.00717.61
8.1.120.0000.00717.42
8.1.110.0070.00017.39
8.1.100.0080.00017.44
8.1.90.0030.00617.47
8.1.80.0040.00417.34
8.1.70.0000.00817.41
8.1.60.0030.00517.58
8.1.50.0040.00417.54
8.1.40.0040.00417.47
8.1.30.0100.00017.63
8.1.20.0040.00417.67
8.1.10.0050.00317.59
8.1.00.0060.00317.48
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0030.00318.38
8.0.270.0000.00717.21
8.0.260.0070.00017.18
8.0.250.0070.00016.86
8.0.240.0040.00416.88
8.0.230.0000.00716.94
8.0.220.0030.00316.82
8.0.210.0030.00316.86
8.0.200.0070.00016.87
8.0.190.0000.00816.86
8.0.180.0040.00416.82
8.0.170.0080.00016.82
8.0.160.0000.00916.83
8.0.150.0080.00016.95
8.0.140.0040.00416.86
8.0.130.0000.00713.28
8.0.120.0000.00916.89
8.0.110.0040.00416.89
8.0.100.0060.00316.91
8.0.90.0000.00716.86
8.0.80.0130.00316.84
8.0.70.0000.00816.84
8.0.60.0000.00716.70
8.0.50.0080.00016.89
8.0.30.0120.00717.00
8.0.20.0140.00617.40
8.0.10.0070.00016.89
8.0.00.0160.00316.73
7.4.330.0070.00015.08
7.4.320.0000.00716.54
7.4.300.0000.00616.52
7.4.290.0070.00016.47
7.4.280.0080.00016.60
7.4.270.0070.00016.63
7.4.260.0030.00316.62
7.4.250.0080.00016.56
7.4.240.0040.00416.50
7.4.230.0000.00716.40
7.4.220.0070.01316.54
7.4.210.0020.01416.64
7.4.200.0030.00316.68
7.4.160.0040.01316.55
7.4.150.0090.00917.40
7.4.140.0120.00617.86
7.4.130.0080.01016.50
7.4.120.0100.00716.49
7.4.110.0110.01116.53
7.4.100.0120.00616.46
7.4.90.0070.01016.27
7.4.80.0120.00619.39
7.4.70.0110.00516.46
7.4.60.0100.00716.49
7.4.50.0060.00316.38
7.4.40.0030.01516.50
7.4.30.0110.00816.60
7.4.00.0080.00814.88
7.3.330.0000.00513.33
7.3.320.0030.00313.09
7.3.310.0070.00016.27
7.3.300.0070.00016.35
7.3.290.0000.00716.32
7.3.280.0090.00716.36
7.3.270.0070.01017.40
7.3.260.0110.00716.32
7.3.250.0110.00816.40
7.3.240.0140.00316.29
7.3.230.0110.00716.58
7.3.210.0060.01216.47
7.3.200.0030.01316.52
7.3.190.0170.00616.41
7.3.180.0030.01316.47
7.3.170.0090.00916.33
7.3.160.0060.01416.21
7.3.120.0110.00714.80
7.3.110.0070.01014.69
7.3.100.0120.00614.71
7.3.90.0100.00715.00
7.3.80.0100.00314.49
7.3.70.0060.00314.66
7.3.60.0040.01214.81
7.3.50.0090.00614.92
7.3.40.0030.00714.76
7.3.30.0090.00614.49
7.3.20.0060.00616.73
7.3.10.0060.00916.58
7.3.00.0070.00716.56
7.2.330.0130.00516.37
7.2.320.0150.00916.49
7.2.310.0040.01216.40
7.2.300.0090.01316.49
7.2.290.0090.00916.65
7.2.250.0150.00315.14
7.2.240.0040.01514.85
7.2.230.0070.01014.88
7.2.220.0100.00014.89
7.2.210.0120.00314.96
7.2.200.0070.00714.66
7.2.190.0070.01014.71
7.2.180.0120.00314.55
7.2.170.0000.01314.70
7.2.130.0100.00816.55
7.2.120.0130.00716.53
7.2.110.0120.00416.14
7.2.100.0090.01216.55
7.2.90.0130.00316.55
7.2.80.0120.00716.47
7.2.70.0030.01016.55
7.2.60.0100.00716.30
7.2.50.0000.01816.63
7.2.40.0000.01416.45
7.2.30.0110.00716.81
7.2.20.0060.00616.46
7.2.10.0040.01116.45
7.2.00.0120.00717.98
7.1.330.0090.00315.91
7.1.320.0030.00715.68
7.1.310.0080.00815.66
7.1.300.0140.00015.70
7.1.290.0060.00615.75
7.1.280.0040.00715.46
7.1.270.0080.00315.70
7.1.260.0040.00715.74
7.1.250.0040.01215.23
7.1.200.0060.00315.75
7.1.100.0030.00917.93
7.1.70.0050.00317.23
7.1.60.0180.00719.13
7.1.50.0040.01116.96
7.1.00.0000.08022.54
7.0.200.0000.00716.61
7.0.60.0030.08019.79
7.0.50.0070.08718.00
7.0.40.0070.08320.13
7.0.30.0500.07720.13
7.0.20.0230.05320.28
7.0.10.0100.06020.15
7.0.00.0070.09020.27
5.6.280.0030.03021.00
5.6.210.0100.05720.70
5.6.200.0000.04318.21
5.6.190.0070.05020.69
5.6.180.2230.04020.49
5.6.170.0300.07320.53
5.6.160.0070.08720.53
5.6.150.0170.06718.29
5.6.140.0030.04018.18
5.6.130.0000.09318.18
5.6.120.0030.04720.95
5.6.110.0030.04321.10
5.6.100.0030.07021.15
5.6.90.0300.06321.06
5.6.80.0030.07720.52
5.6.70.3700.03720.50
5.5.350.0200.08020.45
5.5.340.0100.08018.09
5.5.330.0070.05320.40
5.5.320.0330.05020.34
5.5.310.0300.05020.39
5.5.300.0030.08018.02
5.5.290.0130.07318.02
5.5.280.0100.07720.90
5.5.270.0030.07020.88
5.5.260.0100.08320.89
5.5.250.0030.07320.56
5.5.240.0300.06720.44
5.4.450.0770.06319.21
5.4.440.0770.06719.68
5.4.430.0700.05019.46
5.4.420.0700.05019.51
5.4.410.0770.04719.33
5.4.400.0670.05018.88
5.4.390.0630.05719.10
5.4.380.0700.05319.27
5.4.370.0800.04718.90
5.4.360.0730.06319.32
5.4.350.0870.05319.29
5.4.340.0600.06018.88
5.4.320.0700.05319.16
5.4.310.0700.04319.43
5.4.300.0800.06019.10
5.4.290.0600.06019.05
5.4.280.0630.06019.28
5.4.270.0700.05719.34
5.4.260.0700.05018.88
5.4.250.0730.05719.27
5.4.240.0700.05318.87
5.4.230.0830.04719.29
5.4.220.0670.05718.89
5.4.210.0630.05319.32
5.4.200.0800.05719.18
5.4.190.1070.05719.12
5.4.180.0930.04319.04
5.4.170.0630.05319.04
5.4.160.0930.04719.31
5.4.150.0830.05719.14
5.4.140.0830.05716.43
5.4.130.0870.05016.63
5.4.120.0670.05316.51
5.4.110.0630.06316.29
5.4.100.0670.05316.62
5.4.90.0700.04716.60
5.4.80.0600.05316.36
5.4.70.0170.03716.37
5.4.60.0300.07016.52
5.4.50.0030.03716.52
5.4.40.0200.04316.62
5.4.30.0430.06316.39
5.4.20.0070.04316.63

preferences:
38.95 ms | 401 KiB | 5 Q