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 = "tvVe4c3NsIorUOl3plEBBN4bcTm95a09FfZU1Mgw5mA="; 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.0090.00616.36
8.3.50.0090.01321.88
8.3.40.0090.00618.97
8.3.30.0140.00018.70
8.3.20.0040.00420.40
8.3.10.0080.00023.48
8.3.00.0040.00419.56
8.2.180.0120.00916.60
8.2.170.0070.00722.96
8.2.160.0000.01320.35
8.2.150.0030.00524.18
8.2.140.0000.01224.66
8.2.130.0070.00026.16
8.2.120.0060.00317.60
8.2.110.0030.00622.26
8.2.100.0120.00017.75
8.2.90.0000.00919.05
8.2.80.0080.00017.97
8.2.70.0000.00817.50
8.2.60.0040.00417.80
8.2.50.0060.00318.07
8.2.40.0070.00019.28
8.2.30.0080.00019.70
8.2.20.0030.00517.62
8.2.10.0050.00218.08
8.2.00.0050.00318.13
8.1.280.0110.00725.92
8.1.270.0090.00921.82
8.1.260.0040.00426.35
8.1.250.0060.00328.09
8.1.240.0060.00322.61
8.1.230.0110.00017.42
8.1.220.0030.00517.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0060.00317.35
8.1.180.0080.00018.10
8.1.170.0040.00418.41
8.1.160.0000.00723.84
8.1.150.0050.00318.88
8.1.140.0090.00017.31
8.1.130.0040.00417.52
8.1.120.0030.00317.46
8.1.110.0000.00817.40
8.1.100.0080.00017.30
8.1.90.0040.00417.46
8.1.80.0020.00517.36
8.1.70.0000.00717.27
8.1.60.0040.00417.61
8.1.50.0040.00417.51
8.1.40.0090.00017.47
8.1.30.0060.00317.57
8.1.20.0040.00417.64
8.1.10.0060.00317.47
8.1.00.0040.00417.48
8.0.300.0040.00418.77
8.0.290.0040.00416.75
8.0.280.0030.00318.39
8.0.270.0000.00717.12
8.0.260.0030.00317.21
8.0.250.0000.00817.00
8.0.240.0060.00316.96
8.0.230.0000.00717.05
8.0.220.0040.00416.90
8.0.210.0000.00716.77
8.0.200.0030.00516.95
8.0.190.0030.00516.87
8.0.180.0040.00416.94
8.0.170.0000.00716.96
8.0.160.0000.00816.82
8.0.150.0060.00316.82
8.0.140.0000.00716.68
8.0.130.0100.00013.35
8.0.120.0000.00816.88
8.0.110.0000.00716.79
8.0.100.0000.00716.78
8.0.90.0050.00316.80
8.0.80.0070.01416.92
8.0.70.0020.00516.79
8.0.60.0080.00016.89
8.0.50.0040.00416.94
8.0.30.0100.00817.04
8.0.20.0110.01117.40
8.0.10.0000.00716.93
8.0.00.0100.00816.65
7.4.330.0020.00215.08
7.4.320.0060.00016.46
7.4.300.0000.00716.59
7.4.290.0000.00716.48
7.4.280.0060.00316.42
7.4.270.0000.00716.63
7.4.260.0050.00316.45
7.4.250.0040.00416.56
7.4.240.0010.00616.54
7.4.230.0030.00516.61
7.4.220.0120.00616.55
7.4.210.0110.00716.63
7.4.200.0070.00016.68
7.4.160.0170.00616.51
7.4.150.0090.00917.40
7.4.140.0110.00717.86
7.4.130.0110.00616.39
7.4.120.0090.00816.60
7.4.110.0070.01016.36
7.4.100.0070.01116.36
7.4.90.0030.01316.53
7.4.80.0110.01119.39
7.4.70.0070.01516.59
7.4.60.0120.00316.44
7.4.50.0000.00816.35
7.4.40.0080.00816.27
7.4.30.0070.01016.43
7.4.00.0150.00014.66
7.3.330.0060.00013.23
7.3.320.0000.00613.32
7.3.310.0000.00716.34
7.3.300.0030.00616.11
7.3.290.0090.00916.29
7.3.280.0110.00716.33
7.3.270.0110.00817.40
7.3.260.0090.00816.61
7.3.250.0160.00216.43
7.3.240.0100.00716.61
7.3.230.0130.00616.39
7.3.210.0070.01016.30
7.3.200.0110.00616.56
7.3.190.0070.01316.34
7.3.180.0120.00416.42
7.3.170.0060.00916.46
7.3.160.0130.00616.34
7.3.10.0040.01116.66
7.3.00.0030.01016.74
7.2.330.0110.01416.57
7.2.320.0090.01216.27
7.2.310.0160.00816.34
7.2.300.0190.01316.30
7.2.290.0170.00616.51
7.2.130.0060.00616.84
7.2.120.0030.00616.76
7.2.110.0040.00716.66
7.2.100.0030.01016.44
7.2.90.0030.01216.55
7.2.80.0030.01016.68
7.2.70.0070.00316.81
7.2.60.0080.00616.35
7.2.50.0080.00316.62
7.2.40.0060.00616.79
7.2.30.0040.00716.75
7.2.20.0090.00316.70
7.2.10.0110.00016.92
7.2.00.0080.00917.89
7.1.250.0060.00615.48
7.1.200.0070.00215.75
7.1.100.0000.01117.98
7.1.70.0070.01116.84
7.1.60.0100.01319.13
7.1.50.0090.01616.95
7.1.00.0070.07022.28
7.0.200.0000.00716.84
7.0.60.0130.08320.01
7.0.50.0070.07717.99
7.0.40.0070.08320.19
7.0.30.0330.04720.25
7.0.20.0370.07720.30
7.0.10.0100.04020.25
7.0.00.0170.07720.14
5.6.280.0030.06321.02
5.6.210.0030.09020.55
5.6.200.0070.09018.31
5.6.190.0130.08020.66
5.6.180.4070.03720.65
5.6.170.0130.04720.53
5.6.160.0100.08020.56
5.6.150.0130.06318.30
5.6.140.0030.04318.23
5.6.130.0100.05718.18
5.6.120.0070.08321.18
5.6.110.0100.08021.16
5.6.100.0030.08721.07
5.6.90.0130.07721.14
5.6.80.0130.07020.45
5.6.70.4000.04020.37
5.5.350.0070.07020.45
5.5.340.0170.07018.16
5.5.330.0000.05720.46
5.5.320.3730.04320.25
5.5.310.0300.07320.39
5.5.300.0100.07018.09
5.5.290.0130.07317.99
5.5.280.0070.04020.84
5.5.270.0170.07020.86
5.5.260.0100.03720.94
5.5.250.0030.08720.57
5.5.240.0100.04020.33
5.4.450.0470.05719.44
5.4.440.0630.05319.18
5.4.430.0700.05719.42
5.4.420.0700.05319.41
5.4.410.0530.05319.49
5.4.400.0530.06019.27
5.4.390.0730.04719.11
5.4.380.0670.05019.09
5.4.370.0630.05718.86
5.4.360.0700.05019.09
5.4.350.0500.06018.86
5.4.340.0500.06719.18
5.4.320.0770.06019.05
5.4.310.0630.05318.86
5.4.300.0630.05019.01
5.4.290.0770.05019.27
5.4.280.0670.06319.28
5.4.270.0500.04719.12
5.4.260.0630.06018.86
5.4.250.0670.05719.03
5.4.240.0500.05719.27
5.4.230.0700.05319.17
5.4.220.0600.06019.09
5.4.210.0770.05018.85
5.4.200.0470.05019.08
5.4.190.0700.05319.25
5.4.180.0600.06019.03
5.4.170.0700.05019.16
5.4.160.0570.05318.84
5.4.150.0600.05019.29
5.4.140.0330.05716.37
5.4.130.0700.03716.49
5.4.120.0630.05016.50
5.4.110.0630.05016.53
5.4.100.0600.05016.37
5.4.90.0400.05316.69
5.4.80.0530.05316.71
5.4.70.0030.05316.35
5.4.60.0300.04016.52
5.4.50.0030.07016.62
5.4.40.0230.05716.36
5.4.30.0370.06016.54
5.4.20.0270.07316.51

preferences:
64.33 ms | 401 KiB | 5 Q