3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('SALT', 'whateveryouwant'); 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("your message"); 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.40.0030.01318.54
8.3.30.0120.00318.55
8.3.20.0040.00420.21
8.3.10.0040.00423.48
8.3.00.0080.00019.27
8.2.170.0150.00622.96
8.2.160.0040.01420.32
8.2.150.0050.00324.18
8.2.140.0050.00324.66
8.2.130.0000.00820.47
8.2.120.0050.00326.35
8.2.110.0040.00420.34
8.2.100.0040.00817.80
8.2.90.0000.00819.03
8.2.80.0040.00417.97
8.2.70.0050.00317.50
8.2.60.0040.00417.92
8.2.50.0000.00818.07
8.2.40.0060.00321.07
8.2.30.0000.00720.55
8.2.20.0110.00017.75
8.2.10.0050.00218.11
8.2.00.0040.00417.80
8.1.270.0040.00423.83
8.1.260.0040.00428.09
8.1.250.0040.00428.09
8.1.240.0060.00322.14
8.1.230.0110.00019.24
8.1.220.0080.00017.74
8.1.210.0040.00418.77
8.1.200.0030.00617.35
8.1.190.0000.00717.55
8.1.180.0030.00518.10
8.1.170.0040.00418.31
8.1.160.0040.00421.97
8.1.150.0050.00318.76
8.1.140.0000.00819.38
8.1.130.0030.00517.64
8.1.120.0040.00417.39
8.1.110.0100.00017.32
8.1.100.0000.00717.35
8.1.90.0040.00717.18
8.1.80.0030.00617.18
8.1.70.0030.00317.29
8.1.60.0040.00417.54
8.1.50.0040.00417.37
8.1.40.0090.00017.47
8.1.30.0000.00817.49
8.1.20.0080.00017.53
8.1.10.0020.00517.56
8.1.00.0050.00217.46
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0070.00018.42
8.0.270.0030.00317.06
8.0.260.0030.00317.20
8.0.250.0030.00316.94
8.0.240.0000.00716.95
8.0.230.0050.00316.94
8.0.220.0000.00716.83
8.0.210.0030.00316.80
8.0.200.0040.00416.80
8.0.190.0040.00416.94
8.0.180.0040.00416.93
8.0.170.0000.00816.93
8.0.160.0030.00316.77
8.0.150.0000.00816.87
8.0.140.0040.00416.92
8.0.130.0000.00613.33
8.0.120.0040.00416.90
8.0.110.0050.00216.90
8.0.100.0000.00816.96
8.0.90.0040.00416.86
8.0.80.0070.01116.87
8.0.70.0000.00816.66
8.0.60.0080.00016.70
8.0.50.0000.00716.77
8.0.30.0110.00916.90
8.0.20.0100.00917.40
8.0.10.0000.00816.92
8.0.00.0080.00916.74
7.4.330.0000.00516.76
7.4.320.0000.00716.49
7.4.300.0000.00716.50
7.4.290.0070.00016.43
7.4.280.0050.00316.45
7.4.270.0070.00016.44
7.4.260.0070.00016.42
7.4.250.0080.00016.46
7.4.240.0020.00616.47
7.4.230.0000.00716.52
7.4.220.0140.00716.48
7.4.210.0100.00316.54
7.4.200.0000.00716.64
7.4.160.0040.01216.37
7.4.150.0090.00917.40
7.4.140.0140.01717.86
7.4.130.0110.00816.36
7.4.120.0100.00716.50
7.4.110.0120.00916.61
7.4.100.0170.00016.56
7.4.90.0120.00816.61
7.4.80.0160.00619.39
7.4.70.0110.00516.58
7.4.60.0080.00816.50
7.4.50.0100.00616.41
7.4.40.0040.01216.38
7.4.30.0000.01716.66
7.4.00.0070.01014.78
7.3.330.0000.00613.27
7.3.320.0050.00013.31
7.3.310.0000.00716.12
7.3.300.0030.00316.31
7.3.290.0080.00716.28
7.3.280.0090.00816.27
7.3.270.0140.00317.40
7.3.260.0090.00916.32
7.3.250.0100.00916.44
7.3.240.0080.00916.45
7.3.230.0030.01316.39
7.3.210.0130.00316.44
7.3.200.0110.00616.23
7.3.190.0070.01216.32
7.3.180.0090.00916.50
7.3.170.0120.00916.40
7.3.160.0030.00116.52
7.2.330.0110.00716.51
7.2.320.0070.01116.30
7.2.310.0170.00716.64
7.2.300.0100.00716.68
7.2.290.0030.01316.58
7.2.110.0070.01416.49
7.2.60.0000.01516.85
7.2.00.0040.01118.54
7.1.200.0110.00515.82
7.1.100.0090.00317.88
7.1.70.0060.00316.91
7.1.60.0160.00919.36
7.1.50.0070.00716.53
7.1.00.0070.07322.54
7.0.200.0030.00716.66
7.0.60.0030.04019.94
7.0.50.0130.07318.07
7.0.40.0000.08320.22
7.0.30.0300.03720.23
7.0.20.0270.05320.20
7.0.10.0100.08020.24
7.0.00.0130.04320.15
5.6.210.0100.08020.45
5.6.200.0070.04318.16
5.6.190.0030.06020.48
5.6.180.0300.04320.64
5.6.170.0300.07320.61
5.6.160.0130.07720.54
5.6.150.0070.03718.22
5.6.140.0130.06018.21
5.6.130.0100.08718.24
5.6.120.0030.05721.11
5.6.110.0100.04021.04
5.6.100.0100.08021.07
5.6.90.0070.04021.11
5.6.80.0130.07320.50
5.5.350.0230.07020.34
5.5.340.0070.08318.01
5.5.330.0000.09020.45
5.5.320.0100.07720.36
5.5.310.0170.04320.36
5.5.300.0100.04717.98
5.5.290.0030.09018.09
5.5.280.0100.08020.96
5.5.270.0070.08720.76
5.5.260.0070.03720.89
5.5.250.0070.08020.76
5.5.240.0200.03720.19

preferences:
43.91 ms | 400 KiB | 5 Q