3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = 'It works ? Or not it works ?'; $pass = '1234'; $method = 'aes128'; $iv = "1234567812345678"; echo strtohex(openssl_encrypt ($string, $method, $pass,true, $iv)); ?>

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.0150.00318.68
8.3.50.0100.00622.05
8.3.40.0110.00718.82
8.3.30.0070.00718.68
8.3.20.0070.00020.34
8.3.10.0050.00320.48
8.3.00.0070.00021.60
8.2.180.0070.00716.75
8.2.170.0130.01022.96
8.2.160.0100.00722.22
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0040.00420.94
8.2.120.0060.00326.35
8.2.110.0030.00622.20
8.2.100.0060.00617.93
8.2.90.0060.00319.14
8.2.80.0000.00817.97
8.2.70.0000.00817.50
8.2.60.0050.00217.80
8.2.50.0000.00818.09
8.2.40.0060.00320.42
8.2.30.0000.00719.38
8.2.20.0040.00417.68
8.2.10.0040.00418.03
8.2.00.0060.00318.04
8.1.280.0080.00625.92
8.1.270.0110.00422.20
8.1.260.0080.00028.09
8.1.250.0080.00028.09
8.1.240.0040.00420.76
8.1.230.0090.00317.77
8.1.220.0050.00317.76
8.1.210.0050.00318.77
8.1.200.0030.00617.35
8.1.190.0040.00417.13
8.1.180.0000.00818.10
8.1.170.0030.00718.34
8.1.160.0020.00520.66
8.1.150.0040.00418.86
8.1.140.0080.00019.57
8.1.130.0030.00317.59
8.1.120.0030.00317.36
8.1.110.0000.00717.26
8.1.100.0000.00817.38
8.1.90.0080.00017.36
8.1.80.0080.00317.42
8.1.70.0040.00417.29
8.1.60.0080.00017.41
8.1.50.0040.00417.49
8.1.40.0070.00017.50
8.1.30.0000.00917.57
8.1.20.0000.00717.48
8.1.10.0040.00417.63
8.1.00.0040.00417.39
8.0.300.0040.00418.77
8.0.290.0050.00216.75
8.0.280.0000.00718.38
8.0.270.0040.00417.07
8.0.260.0030.00317.10
8.0.250.0030.00316.93
8.0.240.0000.00716.94
8.0.230.0030.00316.95
8.0.220.0030.00316.93
8.0.210.0040.00416.86
8.0.200.0030.00316.98
8.0.190.0050.00216.94
8.0.180.0000.00716.95
8.0.170.0000.00816.89
8.0.160.0000.00716.92
8.0.150.0040.00416.91
8.0.140.0000.00816.80
8.0.130.0060.00013.36
8.0.120.0000.00816.91
8.0.110.0000.00916.93
8.0.100.0040.00416.78
8.0.90.0000.00717.01
8.0.80.0090.00916.89
8.0.70.0040.00416.66
8.0.60.0030.00516.89
8.0.50.0040.00416.92
8.0.30.0070.01217.07
8.0.20.0120.00717.40
8.0.10.0000.00717.04
8.0.00.0040.01316.71
7.4.330.0020.00216.67
7.4.320.0000.00616.34
7.4.300.0030.00316.59
7.4.290.0000.01216.36
7.4.280.0000.00816.49
7.4.270.0000.00916.61
7.4.260.0000.00816.57
7.4.250.0000.00816.61
7.4.240.0000.00916.60
7.4.230.0000.00816.48
7.4.220.0150.00416.60
7.4.210.0070.00816.58
7.4.200.0030.00316.63
7.4.160.0000.01516.51
7.4.150.0090.00917.40
7.4.140.0190.00217.86
7.4.130.0050.01216.70
7.4.120.0090.00716.60
7.4.110.0150.00316.50
7.4.100.0120.00616.67
7.4.90.0040.01416.66
7.4.80.0040.01219.39
7.4.70.0060.01016.69
7.4.60.0060.01016.42
7.4.50.0120.00316.72
7.4.40.0080.00916.63
7.4.30.0070.01016.35
7.4.00.0080.00814.89
7.3.330.0030.00313.17
7.3.320.0020.00213.18
7.3.310.0000.00716.39
7.3.300.0000.00716.24
7.3.290.0030.00316.28
7.3.280.0060.01316.32
7.3.270.0000.01917.40
7.3.260.0140.00716.14
7.3.250.0080.01216.38
7.3.240.0080.01016.38
7.3.230.0170.00716.39
7.3.210.0070.01016.39
7.3.200.0120.00616.44
7.3.190.0130.00316.23
7.3.180.0060.01216.64
7.3.170.0030.01416.28
7.3.160.0120.00416.21
7.2.330.0060.01216.15
7.2.320.0060.01116.52
7.2.310.0060.01016.59
7.2.300.0110.01116.28
7.2.290.0030.01316.38
7.2.60.0030.01116.66
7.2.00.0030.01218.88
7.1.200.0030.00615.71
7.1.100.0070.00717.94
7.1.70.0030.00917.16
7.1.60.0070.01719.24
7.1.50.0150.00616.66
7.1.00.0130.06722.35
7.0.200.0310.00014.24
7.0.60.0400.02720.00
7.0.50.0070.08317.80
7.0.40.0070.05019.98
7.0.30.0370.05720.34
7.0.20.0230.07720.19
7.0.10.0070.04320.11
7.0.00.0070.04020.16
5.6.280.0000.06020.98
5.6.210.0070.08720.52
5.6.200.0070.08318.09
5.6.190.0030.04320.67
5.6.180.0270.05020.63
5.6.170.0270.06020.37
5.6.160.0070.09020.37
5.6.150.0030.05018.11
5.6.140.0070.08318.20
5.6.130.0030.07718.10
5.6.120.0030.04320.96
5.6.110.0070.08021.13
5.6.100.0100.08320.96
5.6.90.0170.07021.12
5.6.80.0100.07720.40
5.5.350.0270.06020.31
5.5.340.0070.08318.01
5.5.330.0030.05320.21
5.5.320.0600.04320.32
5.5.310.0270.06020.17
5.5.300.0130.04018.03
5.5.290.0000.08318.03
5.5.280.0100.08020.88
5.5.270.0070.04320.64
5.5.260.0030.04320.66
5.5.250.0070.08320.65
5.5.240.0000.05020.23

preferences:
59.7 ms | 401 KiB | 5 Q