3v4l.org

run code in 300+ PHP versions simultaneously
<?php define('SALT', '+bgn91Bn1tfUZpeLAPHRhy2oCMWhlUc6kiVZUrg1ao+gvfUx5gwY0f1hfcjBG3JJo+Yx63bhreBPee7If8rTVw=='); 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.60.0140.00316.63
8.3.50.0060.00921.91
8.3.40.0070.01118.79
8.3.30.0110.00418.79
8.3.20.0080.00020.34
8.3.10.0040.00423.57
8.3.00.0040.00419.25
8.2.180.0090.00618.54
8.2.170.0090.01222.96
8.2.160.0130.00320.35
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0100.00020.35
8.2.120.0000.00826.35
8.2.110.0060.00320.45
8.2.100.0110.00017.80
8.2.90.0030.00519.28
8.2.80.0030.00617.97
8.2.70.0000.01017.63
8.2.60.0000.00917.93
8.2.50.0000.00818.07
8.2.40.0030.00621.20
8.2.30.0040.00420.52
8.2.20.0090.00017.76
8.2.10.0070.00017.89
8.2.00.0000.00818.02
8.1.280.0120.00425.92
8.1.270.0030.00524.04
8.1.260.0070.00028.09
8.1.250.0040.00428.09
8.1.240.0050.00522.23
8.1.230.0080.00319.16
8.1.220.0050.00317.74
8.1.210.0000.00818.77
8.1.200.0000.00917.13
8.1.190.0040.00417.64
8.1.180.0000.00818.10
8.1.170.0060.00318.48
8.1.160.0000.00722.06
8.1.150.0030.00518.65
8.1.140.0030.00619.52
8.1.130.0050.00317.59
8.1.120.0050.00317.25
8.1.110.0000.00817.31
8.1.100.0050.00217.36
8.1.90.0060.00317.32
8.1.80.0070.00017.36
8.1.70.0070.00017.31
8.1.60.0000.00717.42
8.1.50.0000.00817.48
8.1.40.0040.00417.46
8.1.30.0000.00817.55
8.1.20.0060.00317.45
8.1.10.0040.00417.53
8.1.00.0030.00617.32
8.0.300.0000.00718.77
8.0.290.0000.00716.75
8.0.280.0000.00818.32
8.0.270.0040.00417.21
8.0.260.0030.00317.21
8.0.250.0070.00016.96
8.0.240.0000.00616.86
8.0.230.0000.00717.02
8.0.220.0030.00316.80
8.0.210.0030.00316.90
8.0.200.0040.00416.98
8.0.190.0040.00416.97
8.0.180.0040.00416.82
8.0.170.0030.00516.94
8.0.160.0000.00716.78
8.0.150.0040.00416.91
8.0.140.0070.00016.74
8.0.130.0030.00313.26
8.0.120.0070.00016.93
8.0.110.0040.00416.95
8.0.100.0000.00816.80
8.0.90.0070.00016.86
8.0.80.0070.01416.84
8.0.70.0000.00816.89
8.0.60.0000.00816.71
8.0.50.0050.00216.91
8.0.30.0060.01216.91
8.0.20.0070.01017.40
8.0.10.0000.00816.91
8.0.00.0090.00916.86
7.4.330.0050.00016.71
7.4.320.0000.00616.39
7.4.300.0040.00416.46
7.4.290.0040.00416.44
7.4.280.0080.00016.44
7.4.270.0070.00016.55
7.4.260.0030.00316.49
7.4.250.0070.00016.41
7.4.240.0050.00316.52
7.4.230.0000.00716.67
7.4.220.0100.01416.59
7.4.210.0120.00616.63
7.4.200.0030.00316.29
7.4.160.0000.01616.31
7.4.150.0120.00617.40
7.4.140.0160.01117.86
7.4.130.0100.00816.58
7.4.120.0110.00516.41
7.4.110.0190.00616.50
7.4.100.0120.00616.52
7.4.90.0040.01216.37
7.4.80.0130.00319.39
7.4.70.0090.01316.54
7.4.60.0100.00716.40
7.4.50.0040.01116.15
7.4.40.0070.01016.52
7.4.30.0080.00816.39
7.4.00.0030.01014.95
7.3.330.0030.00313.24
7.3.320.0000.00513.27
7.3.310.0050.00316.20
7.3.300.0040.00416.32
7.3.290.0080.00716.27
7.3.280.0090.00916.25
7.3.270.0130.00317.40
7.3.260.0070.01116.45
7.3.250.0090.01416.33
7.3.240.0110.00616.48
7.3.230.0130.00316.39
7.3.210.0110.00616.36
7.3.200.0130.00716.27
7.3.190.0050.01116.47
7.3.180.0100.01116.43
7.3.170.0100.01316.36
7.3.160.0100.01316.47
7.2.330.0060.01216.54
7.2.320.0100.00716.25
7.2.310.0130.00716.61
7.2.300.0070.01016.38
7.2.290.0110.00616.52
7.2.110.0150.00316.61
7.2.60.0300.00516.66
7.2.00.0060.00619.17
7.1.200.0060.00615.74
7.1.100.0030.01018.27
7.1.70.0040.01117.05
7.1.60.0130.01019.36
7.1.50.0130.00616.91
7.1.00.0130.06322.36
7.0.200.0000.00816.66
7.0.60.0070.04719.98
7.0.50.0130.07317.98
7.0.40.0030.08319.99
7.0.30.0270.05020.20
7.0.20.0330.07020.15
7.0.10.0070.08320.12
7.0.00.0100.05320.11
5.6.280.0170.05020.89
5.6.210.0130.08020.61
5.6.200.0030.05018.21
5.6.190.0070.08320.45
5.6.180.0300.08020.48
5.6.170.0300.07320.55
5.6.160.0100.08020.54
5.6.150.0130.07718.22
5.6.140.0130.08018.28
5.6.130.0070.05318.30
5.6.120.0100.08021.06
5.6.110.0170.08021.05
5.6.100.0070.04021.16
5.6.90.0200.02721.04
5.6.80.0100.07720.57
5.5.350.0330.07020.34
5.5.340.0070.04018.09
5.5.330.0130.07720.43
5.5.320.0070.04720.28
5.5.310.0200.07020.52
5.5.300.0130.07718.09
5.5.290.0100.07718.02
5.5.280.0130.07720.93
5.5.270.0100.05020.96
5.5.260.0000.04321.04
5.5.250.0070.07720.69
5.5.240.0270.03720.31

preferences:
49.7 ms | 401 KiB | 5 Q