3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = "This is a readable string"; $password = "<a href='mailto:p@ssword'>p@ssword</a>"; $method = "aes-256-cbc"; $encrypted = openssl_encrypt($string, $method, $password); echo "$string => $encrypted"; // Outputs: This is a readable string. => OeOiTWcgIPC1xIZaDJ3XTEaY/D4m1sQmxgPbzjxxlRA= $decrypted = openssl_decrypt($encrypted, $method, $password); echo "$encrypted => $decrypted"; // Outputs: OeOiTWcgIPC1xIZaDJ3XTEaY/D4m1sQmxgPbzjxxlRA= => This is a readable string. ?>

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.0160.00316.75
8.3.50.0120.00721.92
8.3.40.0070.01018.98
8.3.30.0090.00618.84
8.3.20.0050.00220.31
8.3.10.0080.00318.73
8.3.00.0050.00221.91
8.2.180.0100.00316.75
8.2.170.0070.00722.96
8.2.160.0100.00319.29
8.2.150.0050.00324.18
8.2.140.0000.00824.66
8.2.130.0080.00021.98
8.2.120.0050.00326.35
8.2.110.0100.00019.32
8.2.100.0080.00317.84
8.2.90.0040.00419.08
8.2.80.0000.00917.97
8.2.70.0040.00417.50
8.2.60.0030.00617.80
8.2.50.0090.00018.10
8.2.40.0040.00420.46
8.2.30.0040.00419.21
8.2.20.0030.00617.86
8.2.10.0040.00418.11
8.2.00.0040.00417.65
8.1.280.0160.00325.92
8.1.270.0090.00023.82
8.1.260.0060.00328.09
8.1.250.0040.00428.09
8.1.240.0090.00019.05
8.1.230.0040.00717.70
8.1.220.0000.00817.74
8.1.210.0000.00918.77
8.1.200.0030.00617.38
8.1.190.0000.00817.10
8.1.180.0040.00418.10
8.1.170.0040.00418.41
8.1.160.0040.00422.14
8.1.150.0040.00418.74
8.1.140.0070.00019.59
8.1.130.0000.00717.68
8.1.120.0080.00017.34
8.1.110.0040.00417.29
8.1.100.0000.00717.44
8.1.90.0070.00017.30
8.1.80.0080.00017.25
8.1.70.0080.00017.45
8.1.60.0050.00317.56
8.1.50.0040.00417.51
8.1.40.0040.00717.51
8.1.30.0050.00517.64
8.1.20.0000.00817.66
8.1.10.0040.00417.47
8.1.00.0040.00417.47
8.0.300.0000.00718.77
8.0.290.0070.00016.63
8.0.280.0050.00218.41
8.0.270.0050.00217.18
8.0.260.0000.00617.32
8.0.250.0030.00316.97
8.0.240.0030.00316.97
8.0.230.0080.00316.91
8.0.220.0000.00716.78
8.0.210.0000.00716.93
8.0.200.0000.00716.83
8.0.190.0080.00016.89
8.0.180.0000.00716.95
8.0.170.0040.00416.90
8.0.160.0040.00416.93
8.0.150.0000.00816.86
8.0.140.0040.00416.80
8.0.130.0000.00513.36
8.0.120.0080.00016.86
8.0.110.0080.00016.91
8.0.100.0070.00016.91
8.0.90.0000.00716.74
8.0.80.0000.01616.88
8.0.70.0000.00916.88
8.0.60.0000.00716.85
8.0.50.0020.00516.74
8.0.30.0160.00417.10
8.0.20.0110.00717.40
8.0.10.0030.00616.91
8.0.00.0060.00916.57
7.4.330.0020.00215.08
7.4.320.0000.00716.50
7.4.300.0000.00716.49
7.4.290.0030.00316.52
7.4.280.0000.00916.51
7.4.270.0000.00816.59
7.4.260.0050.00216.40
7.4.250.0000.00716.57
7.4.240.0030.00316.64
7.4.230.0040.00416.35
7.4.220.0100.01016.70
7.4.210.0150.00016.43
7.4.200.0040.00416.57
7.4.160.0070.00916.44
7.4.150.0120.00617.40
7.4.140.0100.00717.86
7.4.130.0090.00916.48
7.4.120.0060.01116.51
7.4.110.0070.01116.50
7.4.100.0140.00316.45
7.4.90.0090.00916.56
7.4.80.0150.00019.39
7.4.70.0030.02016.52
7.4.60.0090.01216.54
7.4.50.0040.01116.39
7.4.40.0090.00616.36
7.4.30.0040.01516.57
7.4.00.0030.01214.86
7.3.330.0000.00513.02
7.3.320.0020.00213.00
7.3.310.0000.00716.16
7.3.300.0040.00416.17
7.3.290.0060.00916.25
7.3.280.0060.01016.30
7.3.270.0090.01517.40
7.3.260.0050.01216.41
7.3.250.0100.00716.25
7.3.240.0080.01116.38
7.3.230.0100.00616.39
7.3.210.0070.01116.43
7.3.200.0120.00916.38
7.3.190.0090.00616.46
7.3.180.0060.00916.42
7.3.170.0150.00616.25
7.3.160.0090.00616.56
7.3.10.0110.00016.70
7.3.00.0030.00616.37
7.2.330.0130.00916.25
7.2.320.0090.00916.51
7.2.310.0080.00816.26
7.2.300.0110.00516.50
7.2.290.0140.00316.54
7.2.130.0040.00816.80
7.2.120.0070.00716.69
7.2.110.0090.00516.67
7.2.100.0030.01016.49
7.2.90.0080.00416.57
7.2.80.0120.00316.53
7.2.70.0090.00616.44
7.2.60.0060.00916.69
7.2.50.0070.00716.63
7.2.40.0040.01416.51
7.2.30.0060.00916.62
7.2.20.0000.01316.88
7.2.10.0030.01216.54
7.2.00.0100.00316.83
7.1.250.0090.00015.55
7.1.200.0040.00415.58
7.1.70.0000.00717.20
7.1.60.0140.00317.43
7.1.00.0000.08022.60
7.0.200.0290.00714.55
7.0.110.0270.06020.30
7.0.100.0400.05320.20
7.0.90.0330.05320.25
7.0.80.0330.05720.27
7.0.70.0400.05320.39
7.0.60.0330.05020.14
7.0.50.0230.06020.38
7.0.40.0330.05720.33
7.0.30.0300.06020.31
7.0.20.0430.05020.17
7.0.10.0200.06020.30
7.0.00.0400.05320.25
5.6.260.0200.05320.87
5.6.250.0070.05720.77
5.6.240.0130.05720.71
5.6.230.0130.05720.99
5.6.220.0170.05020.82
5.6.210.0070.05720.96
5.6.200.0070.06320.97
5.6.190.0230.04720.92
5.6.180.0130.05720.80
5.6.170.0170.05020.79
5.6.160.0100.05721.00
5.6.150.0170.05321.06
5.6.140.0170.06320.84
5.6.130.0170.05020.79
5.6.120.0200.05020.79
5.6.110.0100.06021.04
5.6.100.0100.06020.83
5.6.90.0100.06320.99
5.6.80.0130.05320.26
5.6.70.0170.05020.23
5.6.60.0100.05720.29
5.6.50.0230.04320.44
5.6.40.0030.06020.28
5.6.30.0170.05020.28
5.6.20.0030.06320.40
5.6.10.0070.05720.35
5.6.00.0100.05720.38

preferences:
34.89 ms | 401 KiB | 5 Q