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 = "dYmgIQ8hNFw0cHiNejKUKGC3/oLj58MvoFg6ANmXrI0= "; 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.0120.00318.72
8.3.30.0120.00318.67
8.3.20.0070.00020.20
8.3.10.0080.00023.41
8.3.00.0030.00619.68
8.2.170.0110.00422.96
8.2.160.0110.00320.32
8.2.150.0080.00024.18
8.2.140.0030.00624.66
8.2.130.0080.00026.16
8.2.120.0110.00017.50
8.2.110.0050.00519.27
8.2.100.0040.01117.79
8.2.90.0040.00419.17
8.2.80.0040.00717.97
8.2.70.0070.00317.50
8.2.60.0040.00417.78
8.2.50.0090.00018.07
8.2.40.0080.00019.27
8.2.30.0040.00419.75
8.2.20.0030.00517.62
8.2.10.0000.00718.13
8.2.00.0040.00418.05
8.1.270.0070.00720.33
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0080.00023.97
8.1.230.0000.01217.42
8.1.220.0060.00317.78
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0050.00317.36
8.1.180.0040.00418.10
8.1.170.0030.00518.51
8.1.160.0050.00221.96
8.1.150.0000.00718.82
8.1.140.0060.00317.44
8.1.130.0070.00017.61
8.1.120.0030.00517.47
8.1.110.0000.00817.28
8.1.100.0050.00217.40
8.1.90.0040.00417.43
8.1.80.0000.00817.39
8.1.70.0000.00817.30
8.1.60.0000.00817.55
8.1.50.0000.00817.51
8.1.40.0060.00317.50
8.1.30.0060.00617.62
8.1.20.0030.00517.62
8.1.10.0030.00517.61
8.1.00.0000.00717.52
8.0.300.0070.00018.77
8.0.290.0000.00816.73
8.0.280.0030.00318.26
8.0.270.0000.00717.15
8.0.260.0030.00317.20
8.0.250.0040.00416.95
8.0.240.0030.00316.94
8.0.230.0000.00816.95
8.0.220.0030.00316.95
8.0.210.0040.00416.91
8.0.200.0000.00716.88
8.0.190.0000.00716.91
8.0.180.0070.00016.88
8.0.170.0040.00416.92
8.0.160.0040.00416.87
8.0.150.0000.00716.83
8.0.140.0080.00016.70
8.0.130.0070.00013.33
8.0.120.0030.00616.77
8.0.110.0000.00716.80
8.0.100.0000.00716.77
8.0.90.0000.00816.79
8.0.80.0040.01816.94
8.0.70.0000.00716.66
8.0.60.0020.00516.89
8.0.50.0000.00716.77
8.0.30.0050.01317.06
8.0.20.0090.00917.40
8.0.10.0000.00716.84
8.0.00.0090.01116.79
7.4.330.0030.00315.09
7.4.320.0060.00016.34
7.4.300.0030.00316.50
7.4.290.0030.00316.51
7.4.280.0040.00416.42
7.4.270.0070.00016.54
7.4.260.0000.00716.60
7.4.250.0040.00416.50
7.4.240.0050.00216.54
7.4.230.0060.00016.50
7.4.220.0130.01316.64
7.4.210.0120.00516.52
7.4.200.0000.00816.48
7.4.160.0100.00716.63
7.4.150.0120.00617.40
7.4.140.0090.01317.86
7.4.130.0100.01116.44
7.4.120.0060.01316.55
7.4.110.0060.01216.70
7.4.100.0130.01016.56
7.4.90.0030.01316.66
7.4.80.0140.00519.39
7.4.70.0070.01016.51
7.4.60.0150.00916.44
7.4.50.0000.00616.52
7.4.40.0100.00716.24
7.4.30.0040.01816.39
7.4.00.0070.00915.03
7.3.330.0050.00013.38
7.3.320.0000.00513.22
7.3.310.0030.00316.34
7.3.300.0000.00716.36
7.3.290.0000.00716.21
7.3.280.0070.00916.30
7.3.270.0190.00017.40
7.3.260.0030.01416.49
7.3.250.0120.00616.39
7.3.240.0040.01216.37
7.3.230.0130.00316.39
7.3.210.0140.00316.30
7.3.200.0080.00816.22
7.3.190.0120.00916.57
7.3.180.0140.00316.34
7.3.170.0030.01216.30
7.3.160.0100.01016.45
7.3.120.0110.00714.72
7.3.110.0030.01614.65
7.3.100.0090.00614.69
7.3.90.0090.00914.73
7.3.80.0060.01014.76
7.3.70.0070.00714.68
7.3.60.0090.00014.93
7.3.50.0060.01014.85
7.3.40.0040.01114.82
7.3.30.0060.00614.76
7.3.20.0030.01016.53
7.3.10.0000.01316.42
7.3.00.0090.00316.66
7.2.330.0060.01916.67
7.2.320.0170.00616.31
7.2.310.0100.00616.64
7.2.300.0090.00816.57
7.2.290.0110.01116.63
7.2.250.0100.01014.77
7.2.240.0090.01215.09
7.2.230.0060.01215.04
7.2.220.0040.00814.57
7.2.210.0060.00915.07
7.2.200.0060.01014.77
7.2.190.0060.00614.66
7.2.180.0040.01114.95
7.2.170.0090.00914.94
7.2.60.0080.00816.75
7.2.00.0100.00519.35
7.1.330.0060.00615.93
7.1.320.0060.00315.54
7.1.310.0100.00315.83
7.1.300.0050.00515.86
7.1.290.0030.00715.63
7.1.280.0070.00415.61
7.1.270.0000.01015.75
7.1.260.0090.00615.77
7.1.200.0030.01015.55
7.1.100.0040.00818.08
7.1.70.0060.00617.13
7.1.60.0000.02519.13
7.1.50.0100.01016.90
7.1.00.0030.07722.51
7.0.200.0000.00816.81
7.0.60.0070.07019.95
7.0.50.0070.08017.98
7.0.40.0100.04720.08
7.0.30.0400.04320.21
7.0.20.0400.06020.24
7.0.10.0070.06320.33
7.0.00.0070.08720.33
5.6.280.0030.03020.83
5.6.210.0170.07320.48
5.6.200.0100.05718.20
5.6.190.0100.08320.50
5.6.180.2030.05720.66
5.6.170.0070.05020.72
5.6.160.0030.05320.61
5.6.150.0170.03318.30
5.6.140.0070.05018.24
5.6.130.0100.05318.19
5.6.120.0000.09021.20
5.6.110.0070.03721.22
5.6.100.0170.07021.10
5.6.90.0100.07321.17
5.6.80.0070.04320.38
5.6.70.3630.03720.49
5.5.350.0270.07020.41
5.5.340.0130.07318.01
5.5.330.0030.06320.30
5.5.320.0400.04020.42
5.5.310.0330.05320.34
5.5.300.0000.05318.00
5.5.290.0000.04317.99
5.5.280.0070.04320.74
5.5.270.0130.07720.94
5.5.260.0000.04320.86
5.5.250.0130.03320.70
5.5.240.0170.07020.29
5.4.450.0770.05019.24
5.4.440.0670.05719.38
5.4.430.0700.05319.42
5.4.420.0770.05319.37
5.4.410.0870.05019.09
5.4.400.0730.04719.11
5.4.390.0670.05319.30
5.4.380.0630.05719.10
5.4.370.0670.05019.14
5.4.360.0800.04019.16
5.4.350.0570.06319.33
5.4.340.0700.05018.88
5.4.320.0700.05319.33
5.4.310.0730.04719.16
5.4.300.0630.05719.29
5.4.290.0600.06019.42
5.4.280.0800.04319.29
5.4.270.0730.05719.16
5.4.260.0570.06019.19
5.4.250.0700.05018.96
5.4.240.0670.05019.41
5.4.230.0670.05319.09
5.4.220.0700.05019.41
5.4.210.0600.05719.06
5.4.200.0870.04719.41
5.4.190.0670.05319.17
5.4.180.0630.05719.04
5.4.170.0700.04718.89
5.4.160.0730.04319.31
5.4.150.0730.04719.30
5.4.140.0700.04716.50
5.4.130.0670.04716.66
5.4.120.0630.05016.63
5.4.110.0730.06316.52
5.4.100.0930.04316.73
5.4.90.0800.05016.71
5.4.80.0870.04316.35
5.4.70.0230.03316.63
5.4.60.0270.03716.47
5.4.50.0000.04016.38
5.4.40.0400.06016.64
5.4.30.0230.07016.34
5.4.20.0030.06716.27

preferences:
51.08 ms | 400 KiB | 5 Q