3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string_to_encrypt = <<<END This is a test There a new lines and "quotes" in here. I don't know whether this'll work! END; $password = '12345'; $iv = '1234512345'; $enc = openssl_encrypt($string_to_encrypt, 'AES-256-CBC', $password, 0, $iv); echo openssl_decrypt($enc, 'AES-256-CBC', 'AES-256-CBC', $password, 0, $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.0110.00416.34
8.3.50.0030.01416.14
8.3.40.0140.00018.83
8.3.30.0150.00018.91
8.3.20.0040.00420.34
8.3.10.0000.00723.61
8.3.00.0040.00419.68
8.2.180.0120.00618.54
8.2.170.0120.00322.96
8.2.160.0100.00320.11
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0060.00317.63
8.2.110.0060.00620.98
8.2.100.0090.00317.63
8.2.90.0000.00718.98
8.2.80.0000.00817.97
8.2.70.0030.00517.75
8.2.60.0000.00717.80
8.2.50.0030.00618.07
8.2.40.0080.00519.08
8.2.30.0040.00419.84
8.2.20.0040.00417.67
8.2.10.0050.00217.95
8.2.00.0070.00017.97
8.1.280.0120.00625.92
8.1.270.0040.00420.38
8.1.260.0000.00826.35
8.1.250.0070.00028.09
8.1.240.0060.00322.47
8.1.230.0060.00617.42
8.1.220.0040.00417.74
8.1.210.0000.00818.77
8.1.200.0030.00717.23
8.1.190.0060.00317.23
8.1.180.0000.00818.10
8.1.170.0030.00618.50
8.1.160.0040.00421.96
8.1.150.0040.00418.84
8.1.140.0060.00317.48
8.1.130.0070.00017.54
8.1.120.0020.00517.43
8.1.110.0030.00617.32
8.1.100.0030.00617.26
8.1.90.0040.00417.41
8.1.80.0080.00017.39
8.1.70.0030.00317.37
8.1.60.0030.00617.55
8.1.50.0000.00717.46
8.1.40.0030.00517.49
8.1.30.0040.00417.54
8.1.20.0000.00717.66
8.1.10.0060.00517.45
8.1.00.0000.00817.46
8.0.300.0060.00318.77
8.0.290.0040.00416.63
8.0.280.0040.00418.30
8.0.270.0000.00717.12
8.0.260.0000.00717.14
8.0.250.0040.00416.93
8.0.240.0070.00016.97
8.0.230.0030.00316.97
8.0.220.0030.00316.84
8.0.210.0030.00316.94
8.0.200.0030.00317.00
8.0.190.0000.00716.84
8.0.180.0040.00416.88
8.0.170.0000.00816.83
8.0.160.0030.00517.03
8.0.150.0080.00016.86
8.0.140.0070.00016.79
8.0.130.0070.00013.41
8.0.120.0050.00316.85
8.0.110.0000.00816.93
8.0.100.0000.00717.01
8.0.90.0040.00416.84
8.0.80.0070.01016.88
8.0.70.0040.00416.79
8.0.60.0040.00416.80
8.0.50.0000.00816.79
8.0.30.0090.01017.11
8.0.20.0090.01017.40
8.0.10.0020.00516.92
8.0.00.0130.00816.77
7.4.330.0050.00015.08
7.4.320.0030.00316.59
7.4.300.0000.00716.52
7.4.290.0030.00316.65
7.4.280.0080.00016.45
7.4.270.0070.00016.53
7.4.260.0070.00316.59
7.4.250.0000.00716.47
7.4.240.0040.00316.65
7.4.230.0070.00016.51
7.4.220.0130.00616.61
7.4.210.0060.00916.69
7.4.200.0030.00516.61
7.4.160.0100.00616.40
7.4.150.0050.01417.40
7.4.140.0130.01017.86
7.4.130.0110.01116.66
7.4.120.0090.01116.60
7.4.110.0120.01216.58
7.4.100.0070.01316.74
7.4.90.0100.00716.68
7.4.80.0120.00619.39
7.4.70.0090.00616.66
7.4.60.0060.01016.50
7.4.50.0030.00516.54
7.4.40.0120.00616.61
7.4.30.0100.01316.48
7.4.00.0030.00915.07
7.3.330.0060.00013.15
7.3.320.0030.00313.02
7.3.310.0030.00316.20
7.3.300.0040.00416.33
7.3.290.0070.00916.26
7.3.280.0100.00816.28
7.3.270.0180.01317.40
7.3.260.0180.00416.31
7.3.250.0090.00816.44
7.3.240.0080.00816.59
7.3.230.0090.00916.39
7.3.210.0060.01016.38
7.3.200.0060.00916.61
7.3.190.0100.01416.30
7.3.180.0070.01016.38
7.3.170.0070.00816.34
7.3.160.0060.01116.43
7.2.330.0080.01116.32
7.2.320.0110.01116.54
7.2.310.0080.01116.53
7.2.300.0120.00616.52
7.2.290.0090.00916.46
7.2.60.0040.01116.81
7.2.00.0070.00319.56
7.1.200.0120.00315.58
7.1.100.0040.01218.00
7.1.70.0050.00217.16
7.1.60.0110.01520.03
7.1.50.0110.01416.80
7.1.00.0070.07322.29
7.0.200.0050.00216.79
7.0.60.0000.04319.95
7.0.50.0100.03317.79
7.0.40.0200.07319.90
7.0.30.0100.05020.13
7.0.20.0300.08020.01
7.0.10.0130.08320.17
7.0.00.0100.08320.32
5.6.280.0070.06721.02
5.6.210.0130.07320.69
5.6.200.0070.04718.18
5.6.190.0030.06020.67
5.6.180.0270.06720.32
5.6.170.0430.07320.45
5.6.160.0100.03720.51
5.6.150.0070.08318.10
5.6.140.0070.07318.17
5.6.130.0070.08718.11
5.6.120.0100.08021.03
5.6.110.0030.04320.88
5.6.100.0100.08021.03
5.6.90.0030.08720.96
5.6.80.0030.05320.41
5.5.350.4230.04020.39
5.5.340.0100.07717.96
5.5.330.0000.05320.38
5.5.320.0270.06020.24
5.5.310.0430.06720.29
5.5.300.0070.07317.97
5.5.290.0100.04017.91
5.5.280.0030.08320.87
5.5.270.0130.05020.86
5.5.260.0170.08720.87
5.5.250.0100.06720.75
5.5.240.0000.08020.39
5.4.450.0200.06319.06
5.4.440.0430.05719.51
5.4.430.0270.06319.08
5.4.420.0230.04319.16
5.4.410.0500.05719.14
5.4.400.0100.06019.02
5.4.390.0200.04718.78
5.4.380.0470.05019.14
5.4.370.0270.05319.16
5.4.360.0200.07018.76
5.4.350.0270.05719.11
5.4.340.0130.06018.99
5.4.320.0170.05718.73
5.4.310.0230.04718.74
5.4.300.0130.05719.12
5.4.290.0070.06719.01
5.4.280.0230.04319.29
5.4.270.0230.05019.11
5.4.260.0130.05018.73
5.4.250.0200.04719.10
5.4.240.0300.05719.23
5.4.230.0500.06019.13
5.4.220.0330.06018.99
5.4.210.0270.04319.11
5.4.200.0100.06019.25
5.4.190.0200.04319.00
5.4.180.0170.05719.21
5.4.170.0270.04319.24
5.4.160.0100.05718.97
5.4.150.0200.07018.92
5.4.140.0130.05016.22
5.4.130.0270.04016.38
5.4.120.0170.05716.40
5.4.110.0200.05316.44
5.4.100.0300.05716.06
5.4.90.0700.04316.45
5.4.80.0700.05016.43
5.4.70.0200.07016.21
5.4.60.0200.07716.36
5.4.50.0330.05716.42
5.4.40.0170.07016.36
5.4.30.0000.05016.47
5.4.20.0300.04716.45
5.4.10.0170.03716.18

preferences:
45.34 ms | 400 KiB | 5 Q