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))); } $encryptedmessage = "DhKg8ORbWDuuso2DnpsoE1pLjpqgkeJ7xRgODWOIjk4="; echo decrypt($encryptedmessage);

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.0070.01416.50
8.3.50.0070.01116.29
8.3.40.0120.00618.82
8.3.30.0080.00818.70
8.3.20.0040.01420.34
8.3.10.0000.00823.48
8.3.00.0040.00422.32
8.2.180.0080.00816.88
8.2.170.0110.00422.96
8.2.160.0030.01022.08
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0050.00326.16
8.2.120.0000.00917.75
8.2.110.0070.00321.12
8.2.100.0040.00717.63
8.2.90.0000.00818.98
8.2.80.0040.00417.97
8.2.70.0000.00817.50
8.2.60.0000.00817.90
8.2.50.0000.01118.07
8.2.40.0040.00420.97
8.2.30.0050.00219.79
8.2.20.0000.00917.75
8.2.10.0040.00418.12
8.2.00.0040.00418.06
8.1.280.0140.00325.92
8.1.270.0030.00620.42
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0040.00422.63
8.1.230.0090.00317.42
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0060.00317.36
8.1.190.0080.00017.23
8.1.180.0050.00318.10
8.1.170.0080.00018.48
8.1.160.0040.00421.83
8.1.150.0080.00018.90
8.1.140.0000.00817.39
8.1.130.0000.00817.72
8.1.120.0040.00417.32
8.1.110.0000.00717.34
8.1.100.0050.00317.45
8.1.90.0000.00717.41
8.1.80.0060.00317.40
8.1.70.0030.00617.46
8.1.60.0070.00417.56
8.1.50.0000.00817.48
8.1.40.0040.00417.42
8.1.30.0030.00617.64
8.1.20.0040.00417.54
8.1.10.0020.00517.59
8.1.00.0040.00417.49
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0050.00218.39
8.0.270.0040.00417.26
8.0.260.0030.00317.15
8.0.250.0070.00016.98
8.0.240.0030.00516.95
8.0.230.0060.00316.91
8.0.220.0040.00416.81
8.0.210.0040.00416.82
8.0.200.0000.00716.98
8.0.190.0060.00316.95
8.0.180.0060.00316.88
8.0.170.0080.00016.91
8.0.160.0030.00316.88
8.0.150.0000.00716.96
8.0.140.0070.00016.73
8.0.130.0020.00513.39
8.0.120.0020.00516.89
8.0.110.0090.00016.84
8.0.100.0000.00716.77
8.0.90.0000.00816.73
8.0.80.0110.00616.92
8.0.70.0040.00416.90
8.0.60.0040.00417.01
8.0.50.0040.00416.94
8.0.30.0100.00817.02
8.0.20.0100.01217.40
8.0.10.0050.00317.07
8.0.00.0070.01316.79
7.4.330.0020.00215.16
7.4.320.0000.00716.55
7.4.300.0000.00616.61
7.4.290.0070.00016.40
7.4.280.0040.00416.59
7.4.270.0000.00616.37
7.4.260.0040.00416.49
7.4.250.0040.00416.45
7.4.240.0010.00616.55
7.4.230.0070.00016.61
7.4.220.0160.00616.62
7.4.210.0100.00716.45
7.4.200.0000.00816.49
7.4.160.0040.01216.52
7.4.150.0090.00917.40
7.4.140.0130.01117.86
7.4.130.0120.01316.55
7.4.120.0120.00816.48
7.4.110.0140.00316.64
7.4.100.0070.01216.55
7.4.90.0070.01016.48
7.4.80.0060.01519.39
7.4.70.0030.01316.49
7.4.60.0080.00916.57
7.4.50.0000.00516.26
7.4.40.0070.01016.50
7.4.30.0090.00916.45
7.4.00.0090.00615.25
7.3.330.0000.00713.18
7.3.320.0060.00013.32
7.3.310.0040.00416.37
7.3.300.0030.00316.25
7.3.290.0060.01016.28
7.3.280.0120.00316.31
7.3.270.0140.00417.40
7.3.260.0140.00316.30
7.3.250.0100.00916.35
7.3.240.0120.00916.54
7.3.230.0110.01216.40
7.3.210.0070.01016.29
7.3.200.0090.00919.39
7.3.190.0080.00916.45
7.3.180.0130.00316.29
7.3.170.0140.00716.52
7.3.160.0090.00916.57
7.3.120.0070.01114.74
7.3.110.0040.01114.95
7.3.100.0040.01114.84
7.3.90.0070.01014.51
7.3.80.0060.00814.78
7.3.70.0120.00314.68
7.3.60.0060.00914.50
7.3.50.0070.00714.84
7.3.40.0070.00314.92
7.3.30.0030.01414.85
7.3.20.0030.01316.41
7.3.10.0090.00616.54
7.3.00.0030.01016.55
7.2.330.0150.00616.35
7.2.320.0100.01116.63
7.2.310.0090.00916.27
7.2.300.0090.01216.61
7.2.290.0140.00916.59
7.2.240.0000.01614.59
7.2.230.0030.01415.14
7.2.220.0070.00714.71
7.2.210.0070.01115.01
7.2.200.0000.01314.91
7.2.190.0050.00514.77
7.2.180.0060.00614.61
7.2.170.0000.01114.94
7.2.160.0060.00614.71
7.2.150.0070.00716.88
7.2.140.0070.01016.50
7.2.130.0160.00016.81
7.2.120.0070.01016.79
7.2.110.0030.01016.42
7.2.100.0040.01216.82
7.2.90.0070.01016.75
7.2.80.0060.01016.61
7.2.70.0030.01316.87
7.2.60.0080.00616.61
7.2.50.0100.00716.57
7.2.40.0100.00716.54
7.2.30.0040.01116.91
7.2.20.0100.00316.81
7.2.10.0000.01316.56
7.2.00.0100.00618.14
7.1.330.0000.01515.84
7.1.320.0110.00615.56
7.1.310.0070.00715.90
7.1.300.0030.01315.57
7.1.290.0080.00815.53
7.1.280.0040.00815.54
7.1.270.0060.00615.75
7.1.260.0040.00715.93
7.1.250.0030.00915.81
7.1.200.0110.00415.71
7.1.100.0030.00718.30
7.1.70.0030.01017.18
7.1.60.0040.01219.18
7.1.50.0100.01016.50
7.1.00.0100.07022.42
7.0.200.0030.00616.78
7.0.60.0070.08019.93
7.0.50.0100.06718.02
7.0.40.0100.08320.09
7.0.30.0200.07720.15
7.0.20.0270.07020.30
7.0.10.0100.04020.21
7.0.00.0030.05320.14
5.6.280.0030.06020.91
5.6.210.0030.07320.65
5.6.200.0030.07318.20
5.6.190.0000.08720.50
5.6.180.3370.04720.66
5.6.170.0170.04320.60
5.6.160.0070.08320.52
5.6.150.0100.04318.18
5.6.140.0100.07018.21
5.6.130.0030.08018.20
5.6.120.0030.08021.11
5.6.110.0130.06321.09
5.6.100.0100.07021.05
5.6.90.0100.08320.99
5.6.80.0070.06320.45
5.6.70.0400.04020.44
5.5.350.0200.08020.34
5.5.340.0070.08017.98
5.5.330.0070.05020.30
5.5.320.0330.07020.33
5.5.310.0270.07320.35
5.5.300.0070.03718.05
5.5.290.0030.08318.05
5.5.280.0100.04320.95
5.5.270.0170.04320.96
5.5.260.0100.07320.94
5.5.250.0300.06020.88
5.5.240.0270.06720.42
5.4.450.0770.05719.76
5.4.440.0730.06319.63
5.4.430.0900.06019.47
5.4.420.0730.05019.38
5.4.410.0730.05019.07
5.4.400.0600.06019.18
5.4.390.0900.05719.23
5.4.380.0630.06018.90
5.4.370.0730.04719.05
5.4.360.0870.08319.29
5.4.350.0670.06018.90
5.4.340.0800.06019.43
5.4.320.0730.06019.17
5.4.310.0700.05319.34
5.4.300.0830.05719.30
5.4.290.1230.05319.05
5.4.280.0800.05318.91
5.4.270.0870.05019.16
5.4.260.0900.06718.87
5.4.250.0770.05019.04
5.4.240.0870.08019.28
5.4.230.0930.04719.14
5.4.220.0830.05719.17
5.4.210.0870.05719.22
5.4.200.0730.06016.75
5.4.190.0770.05319.39
5.4.180.0670.05719.08
5.4.170.0800.05719.06
5.4.160.0100.05719.32
5.4.150.0030.06319.29
5.4.140.0230.06016.58
5.4.130.0800.05716.57
5.4.120.0900.04316.82
5.4.110.0970.04716.66
5.4.100.0970.04716.61
5.4.90.0800.05316.46
5.4.80.0900.05716.40
5.4.70.0830.05316.64
5.4.60.0300.07016.58
5.4.50.0030.07016.37
5.4.40.0270.04016.52
5.4.30.0370.06316.46
5.4.20.0230.04016.35

preferences:
51.24 ms | 400 KiB | 5 Q