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.0110.00716.75
8.3.50.0130.00821.09
8.3.40.0150.00018.76
8.3.30.0070.00718.55
8.3.20.0040.00420.35
8.3.10.0000.00923.46
8.3.00.0040.00422.45
8.2.180.0090.00916.88
8.2.170.0040.01122.96
8.2.160.0120.00821.98
8.2.150.0030.00624.18
8.2.140.0000.00824.66
8.2.130.0080.00026.16
8.2.120.0060.00617.63
8.2.110.0030.00719.18
8.2.100.0090.00317.74
8.2.90.0050.00319.09
8.2.80.0030.00617.97
8.2.70.0040.00417.50
8.2.60.0050.00317.66
8.2.50.0040.00418.07
8.2.40.0090.00021.11
8.2.30.0080.00019.79
8.2.20.0040.00417.61
8.2.10.0050.00318.07
8.2.00.0060.00318.06
8.1.280.0120.00625.92
8.1.270.0000.00920.30
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00024.03
8.1.230.0090.00320.79
8.1.220.0080.00017.79
8.1.210.0080.00018.77
8.1.200.0000.00817.35
8.1.190.0050.00317.23
8.1.180.0050.00218.10
8.1.170.0030.00518.46
8.1.160.0020.00523.73
8.1.150.0040.00418.84
8.1.140.0000.00717.36
8.1.130.0030.00317.65
8.1.120.0030.00517.38
8.1.110.0060.00317.37
8.1.100.0000.00817.31
8.1.90.0140.00017.33
8.1.80.0080.00017.37
8.1.70.0000.00717.44
8.1.60.0070.00017.57
8.1.50.0050.00317.52
8.1.40.0040.00417.59
8.1.30.0000.00917.64
8.1.20.0000.00717.70
8.1.10.0030.00617.58
8.1.00.0040.00417.51
8.0.300.0030.00718.77
8.0.290.0000.00716.58
8.0.280.0000.00718.30
8.0.270.0000.00717.11
8.0.260.0060.00017.10
8.0.250.0070.00016.97
8.0.240.0030.00616.97
8.0.230.0040.00416.96
8.0.220.0070.00016.81
8.0.210.0000.00716.94
8.0.200.0060.00016.95
8.0.190.0000.00816.93
8.0.180.0080.00016.83
8.0.170.0040.00416.81
8.0.160.0000.00916.90
8.0.150.0000.00716.86
8.0.140.0050.00516.75
8.0.130.0050.00313.29
8.0.120.0060.00316.86
8.0.110.0030.00416.81
8.0.100.0000.00816.96
8.0.90.0030.00516.96
8.0.80.0070.00716.96
8.0.70.0050.00216.70
8.0.60.0040.00416.83
8.0.50.0020.00516.95
8.0.30.0120.00517.02
8.0.20.0060.01417.40
8.0.10.0030.00516.94
8.0.00.0090.00916.72
7.4.330.0050.00015.08
7.4.320.0080.00016.38
7.4.300.0030.00316.46
7.4.290.0070.00016.49
7.4.280.0000.00816.61
7.4.270.0070.00016.58
7.4.260.0000.00716.50
7.4.250.0000.00716.48
7.4.240.0020.00516.49
7.4.230.0040.00416.49
7.4.220.0060.01816.51
7.4.210.0120.00316.64
7.4.200.0000.00716.50
7.4.160.0120.00316.54
7.4.150.0120.00917.40
7.4.140.0090.01017.86
7.4.130.0080.00916.57
7.4.120.0100.00716.47
7.4.110.0130.00316.53
7.4.100.0100.01316.36
7.4.90.0060.01616.49
7.4.80.0120.00619.39
7.4.70.0110.01216.45
7.4.60.0130.00316.68
7.4.50.0000.00516.49
7.4.40.0070.01116.39
7.4.30.0060.01416.63
7.4.00.0080.00614.92
7.3.330.0030.00313.27
7.3.320.0000.00513.17
7.3.310.0000.00716.16
7.3.300.0000.00716.30
7.3.290.0070.01216.23
7.3.280.0060.01116.33
7.3.270.0100.00717.40
7.3.260.0110.00816.23
7.3.250.0110.00616.45
7.3.240.0140.00316.51
7.3.230.0110.00616.39
7.3.210.0090.00916.52
7.3.200.0070.01016.34
7.3.190.0000.01716.43
7.3.180.0130.00416.42
7.3.170.0140.00316.61
7.3.160.0060.01016.33
7.3.120.0060.01314.77
7.3.110.0130.00614.71
7.3.100.0000.01515.01
7.3.90.0080.00614.77
7.3.80.0040.00814.84
7.3.70.0030.01214.60
7.3.60.0080.00814.58
7.3.50.0120.00314.84
7.3.40.0000.01714.29
7.3.30.0110.00414.85
7.3.20.0060.01016.70
7.3.10.0070.01016.47
7.3.00.0030.00816.61
7.2.330.0080.01216.59
7.2.320.0120.00616.59
7.2.310.0100.01616.59
7.2.300.0060.01216.54
7.2.290.0130.01016.35
7.2.250.0070.01415.07
7.2.240.0040.01115.08
7.2.230.0090.00914.49
7.2.220.0060.01014.89
7.2.210.0100.00715.04
7.2.200.0150.00014.83
7.2.190.0030.01315.05
7.2.180.0100.00714.86
7.2.170.0040.01215.06
7.2.60.0040.01216.43
7.2.00.0130.00919.27
7.1.330.0030.01215.92
7.1.320.0060.00615.82
7.1.310.0090.00315.82
7.1.300.0100.00715.61
7.1.290.0070.00315.69
7.1.280.0030.01315.88
7.1.270.0040.01515.80
7.1.260.0070.01115.73
7.1.200.0070.00715.88
7.1.100.0080.00818.24
7.1.70.0070.00417.16
7.1.60.0130.01019.18
7.1.50.0090.01216.83
7.1.00.0070.07322.42
7.0.200.0080.00416.63
7.0.60.0030.09020.02
7.0.50.0030.04317.96
7.0.40.0100.08320.12
7.0.30.0230.08720.14
7.0.20.0200.04320.15
7.0.10.0000.05020.24
7.0.00.0000.04720.14
5.6.280.0070.03021.00
5.6.210.0030.04020.76
5.6.200.0100.08318.22
5.6.190.0130.07320.51
5.6.180.0470.06320.41
5.6.170.0130.04320.72
5.6.160.0070.05320.59
5.6.150.0130.07318.31
5.6.140.0030.08718.19
5.6.130.0130.07718.20
5.6.120.0100.08021.17
5.6.110.0070.05721.11
5.6.100.0030.04321.04
5.6.90.0100.06721.05
5.6.80.0100.07720.47
5.5.350.0030.08720.44
5.5.340.0070.07718.00
5.5.330.0070.04320.43
5.5.320.0030.04320.27
5.5.310.0100.05320.32
5.5.300.0000.04318.03
5.5.290.0030.04017.97
5.5.280.0030.05020.95
5.5.270.0130.08020.86
5.5.260.0100.07721.06
5.5.250.0070.06320.58
5.5.240.0000.08020.27
5.4.450.0770.05019.52
5.4.440.0630.06719.67
5.4.430.0600.08319.37
5.4.420.0900.06719.50
5.4.410.0730.06319.25
5.4.400.0870.05719.44
5.4.390.0670.05019.05
5.4.380.0730.06719.11
5.4.370.0900.06319.05
5.4.360.0700.06019.20
5.4.350.0800.06319.15
5.4.340.1030.04019.43
5.4.320.0800.05719.32
5.4.310.0900.04719.27
5.4.300.0670.05719.26
5.4.290.1000.05019.04
5.4.280.0870.05319.05
5.4.270.0700.05319.34
5.4.260.0730.05319.33
5.4.250.0670.06019.04
5.4.240.0630.05719.29
5.4.230.0870.05019.06
5.4.220.0870.06019.33
5.4.210.0830.05719.34
5.4.200.0770.05716.77
5.4.190.0830.05019.20
5.4.180.0900.05019.15
5.4.170.0930.06318.91
5.4.160.0900.04719.18
5.4.150.0870.05319.21
5.4.140.0900.05316.51
5.4.130.1070.06016.53
5.4.120.0700.05316.67
5.4.110.0100.06716.51
5.4.100.0130.05716.54
5.4.90.0130.05316.61
5.4.80.0430.06316.61
5.4.70.0930.05016.80
5.4.60.0330.04716.57
5.4.50.0000.06716.56
5.4.40.0230.07016.59
5.4.30.0200.06716.52
5.4.20.0230.04316.46
5.4.10.0300.04716.43

preferences:
58.38 ms | 401 KiB | 5 Q