3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('SALT', strpad('$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 = encrypt("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.0100.01016.50
8.3.50.0110.00716.23
8.3.40.0120.00318.89
8.3.30.0080.00618.83
8.3.20.0030.00520.38
8.3.10.0040.00423.71
8.3.00.0050.00322.47
8.2.180.0040.01418.29
8.2.170.0080.00822.96
8.2.160.0070.00722.17
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0070.00417.63
8.2.110.0030.00719.27
8.2.100.0090.00317.91
8.2.90.0050.00319.22
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0050.00317.80
8.2.50.0000.01018.07
8.2.40.0040.00421.09
8.2.30.0030.00519.75
8.2.20.0050.00317.58
8.2.10.0040.00418.07
8.2.00.0070.00017.90
8.1.280.0060.01125.92
8.1.270.0050.00320.22
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00721.99
8.1.230.0080.00320.88
8.1.220.0030.00517.74
8.1.210.0000.00818.77
8.1.200.0060.00317.23
8.1.190.0060.00317.22
8.1.180.0080.00018.10
8.1.170.0040.00418.56
8.1.160.0070.00022.01
8.1.150.0030.00618.65
8.1.140.0000.00717.34
8.1.130.0000.00717.53
8.1.120.0030.00517.25
8.1.110.0040.00417.30
8.1.100.0000.00717.36
8.1.90.0050.00317.33
8.1.80.0050.00517.33
8.1.70.0030.00317.34
8.1.60.0060.00317.46
8.1.50.0000.00817.50
8.1.40.0050.00217.45
8.1.30.0030.00617.53
8.1.20.0050.00217.50
8.1.10.0030.00617.54
8.1.00.0060.00317.49
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0040.00418.30
8.0.270.0000.00717.09
8.0.260.0060.00017.20
8.0.250.0000.00817.02
8.0.240.0030.00517.02
8.0.230.0060.00316.95
8.0.220.0000.00716.78
8.0.210.0000.00716.97
8.0.200.0060.00016.99
8.0.190.0040.00716.91
8.0.180.0000.00916.93
8.0.170.0030.00616.98
8.0.160.0000.00716.91
8.0.150.0050.00216.87
8.0.140.0000.00716.75
8.0.130.0050.00313.37
8.0.120.0040.00416.77
8.0.110.0030.00516.86
8.0.100.0070.00016.75
8.0.90.0050.00316.77
8.0.80.0100.01016.87
8.0.70.0070.00016.79
8.0.60.0030.00516.86
8.0.50.0040.00416.72
8.0.30.0100.00817.01
8.0.20.0060.01317.40
8.0.10.0040.00416.81
8.0.00.0100.00716.81
7.4.330.0050.00015.21
7.4.320.0030.00316.29
7.4.300.0060.00016.36
7.4.290.0030.00316.54
7.4.280.0000.00716.38
7.4.270.0050.00216.60
7.4.260.0030.00316.52
7.4.250.0000.00716.45
7.4.240.0040.00316.50
7.4.230.0070.00016.20
7.4.220.0090.01016.49
7.4.210.0120.00816.38
7.4.200.0000.00716.34
7.4.160.0110.00416.62
7.4.150.0040.01517.40
7.4.140.0080.01217.86
7.4.130.0110.00916.48
7.4.120.0140.00316.48
7.4.110.0130.00316.27
7.4.100.0130.00716.64
7.4.90.0070.01116.46
7.4.80.0060.01519.39
7.4.70.0060.01116.50
7.4.60.0000.01616.52
7.4.50.0090.00016.68
7.4.40.0030.01316.44
7.4.30.0000.02016.74
7.4.00.0000.01714.83
7.3.330.0030.00513.15
7.3.320.0030.00313.11
7.3.310.0000.00716.30
7.3.300.0030.00316.36
7.3.290.0060.01016.30
7.3.280.0060.01016.33
7.3.270.0070.01117.40
7.3.260.0100.01416.45
7.3.250.0130.00616.38
7.3.240.0100.00616.27
7.3.230.0130.00316.39
7.3.210.0060.00916.47
7.3.200.0100.00719.39
7.3.190.0060.00916.30
7.3.180.0130.00316.32
7.3.170.0070.01416.33
7.3.160.0150.00916.47
7.2.330.0060.01516.30
7.2.320.0080.01616.68
7.2.310.0070.01016.48
7.2.300.0160.00016.63
7.2.290.0090.00916.57
7.2.60.0090.00316.29
7.2.00.0060.00919.52
7.1.200.0030.01015.73
7.1.100.0040.00418.18
7.1.70.0070.00017.17
7.1.60.0030.02019.18
7.1.50.0140.00416.98
7.1.00.0000.07722.31
7.0.200.0000.00716.85
7.0.60.0070.08019.88
7.0.50.0100.07317.87
7.0.40.0030.06020.09
7.0.30.0270.03320.25
7.0.20.0230.08720.16
7.0.10.0230.06720.23
7.0.00.0170.05320.11
5.6.280.0000.07321.16
5.6.210.0170.07020.71
5.6.200.0070.03718.19
5.6.190.0130.07020.50
5.6.180.0070.06720.64
5.6.170.0230.05320.51
5.6.160.0030.07020.61
5.6.150.0070.05718.25
5.6.140.0070.08318.17
5.6.130.0130.04018.14
5.6.120.0270.06721.00
5.6.110.0070.04021.14
5.6.100.0000.05021.10
5.6.90.0100.08321.11
5.6.80.0100.05720.41
5.6.70.0270.07020.38
5.5.350.0000.04720.44
5.5.340.0070.07017.93
5.5.330.0130.07720.40
5.5.320.0270.05320.32
5.5.310.0230.05320.28
5.5.300.0070.06717.94
5.5.290.0030.08317.97
5.5.280.0130.08320.84
5.5.270.0100.08320.79
5.5.260.0200.03020.80
5.5.250.0130.07320.70
5.5.240.0070.08020.16
5.4.450.0170.07719.63
5.4.440.0130.06019.44
5.4.430.0100.06019.34
5.4.420.0230.04719.19
5.4.410.0270.04319.43
5.4.400.0200.05018.87
5.4.390.0130.05719.23
5.4.380.0530.07019.07
5.4.370.0670.05019.02
5.4.360.0670.05719.26
5.4.350.0770.06319.36
5.4.340.0830.05319.36
5.4.320.0700.06019.06
5.4.310.0670.05319.14
5.4.300.0700.04719.35
5.4.290.0700.05319.23
5.4.280.0770.06018.87
5.4.270.0770.04319.24
5.4.260.0700.05719.26
5.4.250.0770.05019.23
5.4.240.0770.06719.27
5.4.230.0730.07719.23
5.4.220.0400.05319.29
5.4.210.0230.04019.27
5.4.200.0200.04316.83
5.4.190.0330.06319.02
5.4.180.0900.04319.18
5.4.170.0630.05719.31
5.4.160.0800.06319.01
5.4.150.0770.05319.12
5.4.140.0630.05716.39
5.4.130.0500.06316.48
5.4.120.0730.05716.36
5.4.110.0670.04716.77
5.4.100.0600.06016.48
5.4.90.0730.06016.38
5.4.80.0670.05016.47
5.4.70.0770.04316.38
5.4.60.0030.07016.43
5.4.50.0030.07316.51
5.4.40.0100.06716.51
5.4.30.0300.03016.53
5.4.20.0200.03316.34
5.4.10.0030.03316.34

preferences:
54.11 ms | 400 KiB | 5 Q