3v4l.org

run code in 300+ PHP versions simultaneously
<?php //Encryption: $textToEncrypt = "My Text to Encrypt"; $encryptionMethod = "AES-256-CBC"; $secretHash = "encryptionhash"; $iv = mcrypt_create_iv(16, MCRYPT_RAND); $encryptedText = openssl_encrypt($textToEncrypt,$encryptionMethod,$secretHash, 0, $iv); //Decryption: $decryptedText = openssl_decrypt($encryptedText, $encryptionMethod, $secretHash, 0, $iv); print "My Decrypted Text: ". $decryptedText;

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.00618.56
8.3.50.0070.01516.60
8.3.40.0100.01018.75
8.3.30.0150.00618.72
8.3.20.0070.01021.83
8.3.10.0070.00723.68
8.3.00.0040.00420.77
8.2.180.0100.01017.00
8.2.170.0060.01622.96
8.2.160.0100.00320.12
8.2.150.0100.01024.18
8.2.140.0070.00724.66
8.2.130.0090.00919.77
8.2.120.0070.01126.35
8.2.110.0060.00321.10
8.2.100.0040.00817.91
8.2.90.0040.00418.03
8.2.80.0000.00717.97
8.2.70.0060.00317.80
8.2.60.0060.00318.22
8.2.50.0080.00018.10
8.2.40.0000.00819.36
8.2.30.0060.00319.21
8.2.20.0040.00417.80
8.2.10.0000.00719.15
8.2.00.0080.00019.34
8.1.270.0170.00318.83
8.1.260.0140.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00420.68
8.1.230.0070.00420.88
8.1.220.0080.00017.74
8.1.210.0040.00418.90
8.1.200.0080.00017.35
8.1.190.0030.01017.25
8.1.180.0030.00518.10
8.1.170.0000.00818.28
8.1.160.0070.00018.66
8.1.150.0000.00718.78
8.1.140.0050.00320.69
8.1.130.0070.00020.20
8.1.120.0080.00017.28
8.1.110.0040.00417.31
8.1.100.0020.00517.28
8.1.90.0030.00617.26
8.1.80.0030.00617.42
8.1.70.0070.00017.39
8.1.60.0080.00017.55
8.1.50.0040.00417.41
8.1.40.0000.00817.59
8.1.30.0040.00417.65
8.1.20.0030.00517.56
8.1.10.0030.00517.48
8.1.00.0050.00317.43
8.0.300.0000.00719.98
8.0.290.0000.00716.63
8.0.280.0070.00018.38
8.0.270.0050.00217.09
8.0.260.0060.00018.29
8.0.250.0000.00716.94
8.0.240.0050.00316.86
8.0.230.0030.00316.81
8.0.220.0000.00716.79
8.0.210.0070.00016.92
8.0.200.0040.00416.99
8.0.190.0040.00416.82
8.0.180.0040.00416.92
8.0.170.0040.00416.92
8.0.160.0050.00316.96
8.0.150.0070.00016.87
8.0.140.0040.00416.87
8.0.130.0000.00513.27
8.0.120.0040.00416.75
8.0.110.0040.00416.88
8.0.100.0000.00716.73
8.0.90.0020.00516.84
8.0.80.0150.00716.91
8.0.70.0040.00416.75
8.0.60.0000.00716.73
8.0.50.0050.00216.75
8.0.30.0030.01317.20
8.0.20.0030.01617.40
8.0.10.0070.00016.82
8.0.00.0090.01116.84
7.4.330.0000.00715.55
7.4.320.0030.00316.36
7.4.300.0030.00316.48
7.4.290.0030.00316.64
7.4.280.0000.00816.50
7.4.270.0030.00316.57
7.4.260.0030.00616.50
7.4.250.0060.00316.55
7.4.240.0030.00316.44
7.4.230.0000.00716.70
7.4.220.0040.00416.62
7.4.210.0080.00816.54
7.4.200.0030.00416.50
7.4.160.0060.01116.46
7.4.140.0100.00917.86
7.4.130.0160.00316.69
7.4.120.0090.00916.39
7.4.110.0110.00716.57
7.4.100.0130.00516.69
7.4.90.0150.00316.56
7.4.80.0090.00919.39
7.4.70.0110.00616.49
7.4.60.0130.00316.57
7.4.50.0030.01516.57
7.4.40.0210.00716.47
7.4.00.0060.01015.19
7.3.330.0000.00513.17
7.3.320.0030.00313.08
7.3.310.0030.00316.12
7.3.300.0000.00716.14
7.3.290.0040.00416.29
7.3.280.0130.00516.19
7.3.260.0130.00516.36
7.3.240.0090.00916.46
7.3.230.0000.01716.51
7.3.210.0060.01216.27
7.3.200.0100.00716.58
7.3.190.0060.01616.34
7.3.180.0030.01416.52
7.3.170.0030.01716.26
7.3.160.0070.00716.25
7.3.10.0380.01314.36
7.3.00.0570.00914.58
7.2.330.0140.00316.30
7.2.320.0110.01116.58
7.2.310.0100.00716.39
7.2.300.0080.00816.44
7.2.290.0150.00616.30
7.2.130.0500.01115.02
7.2.120.0380.01614.90
7.2.110.0520.01015.05
7.2.100.0620.00714.76
7.2.90.0560.00314.96
7.2.80.0610.01014.97
7.2.70.0520.00614.75
7.2.60.0340.00914.50
7.2.50.0550.01514.47
7.2.40.0470.01114.53
7.2.30.0530.00614.79
7.2.20.0490.00614.65
7.2.10.0510.00414.51
7.2.00.0480.00614.74
7.1.250.0430.01113.56

preferences:
70.26 ms | 400 KiB | 5 Q