3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo openssl_cipher_iv_length('aes-256-gcm'); $secret="This is a secret message."; $key="d8b163deda806acaede2f807"; //echo $iv=openssl_random_pseudo_bytes(12); $iv = "0e42519c0eda67c22c52b605ff41fde395880ebf6ed40a560b5f5ecc8183d26a"; $method="aes-256-gcm"; $encrypted = "95b52983e7dfb2bac4cc11ed84644656dc6266674d58edb1750dfb8e2adf13c7"; //$encrypted=openssl_encrypt($secret,$method,$key,false,$iv); $decrypted=openssl_decrypt($encrypted,$method,$key,false,$iv); echo $encrypted; echo "<br>"; echo $decrypted;

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.0100.01016.62
8.3.50.0090.00921.20
8.3.40.0170.00318.75
8.3.30.0040.01218.79
8.3.20.0040.00420.25
8.3.10.0040.00423.65
8.3.00.0090.00023.61
8.2.180.0090.00616.75
8.2.170.0040.01122.96
8.2.160.0140.00022.30
8.2.150.0080.00024.18
8.2.140.0050.00224.66
8.2.130.0000.00726.16
8.2.120.0040.00417.63
8.2.110.0060.00319.30
8.2.100.0080.00417.63
8.2.90.0080.00019.28
8.2.80.0090.00017.97
8.2.70.0030.00517.50
8.2.60.0000.00817.80
8.2.50.0080.00018.07
8.2.40.0080.00021.13
8.2.30.0000.00819.77
8.2.20.0040.00417.58
8.2.10.0070.00017.87
8.2.00.0050.00318.05
8.1.280.0060.00925.92
8.1.270.0080.00020.24
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0030.00622.11
8.1.230.0080.00317.42
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0030.00617.23
8.1.190.0000.00917.10
8.1.180.0040.00418.10
8.1.170.0080.00318.59
8.1.160.0040.00422.02
8.1.150.0070.00018.67
8.1.140.0030.00517.39
8.1.130.0030.00317.45
8.1.120.0000.00717.37
8.1.110.0040.00417.32
8.1.100.0050.00317.32
8.1.90.0030.00317.34
8.1.80.0040.00417.21
8.1.70.0030.00317.29
8.1.60.0040.00417.34
8.1.50.0000.01017.32
8.1.40.0040.00417.34
8.1.30.0040.00417.53
8.1.20.0050.00217.58
8.1.10.0000.00817.51
8.1.00.0000.00817.44
8.0.300.0040.00418.77
8.0.290.0040.00416.63
8.0.280.0030.00318.43
8.0.270.0000.00717.11
8.0.260.0030.00317.23
8.0.250.0070.00016.95
8.0.240.0030.00316.90
8.0.230.0040.00416.96
8.0.220.0050.00216.77
8.0.210.0000.00716.84
8.0.200.0000.00716.85
8.0.190.0050.00316.85
8.0.180.0040.00416.87
8.0.170.0070.00016.97
8.0.160.0000.00716.79
8.0.150.0000.00716.74
8.0.140.0030.00316.90
8.0.130.0000.01013.32
8.0.120.0000.00816.79
8.0.110.0000.00816.80
8.0.100.0050.00216.73
8.0.90.0040.00416.78
8.0.80.0130.00316.92
8.0.70.0050.00216.73
8.0.60.0000.00916.69
8.0.50.0080.00016.92
8.0.30.0050.01017.10
8.0.20.0110.01217.40
8.0.10.0000.00716.81
8.0.00.0080.01016.77
7.4.330.0000.00615.14
7.4.320.0000.00716.39
7.4.300.0030.00316.36
7.4.290.0040.00416.55
7.4.280.0050.00216.43
7.4.270.0030.00316.58
7.4.260.0000.00716.42
7.4.250.0070.00016.41
7.4.240.0030.00316.39
7.4.230.0040.00316.56
7.4.220.0130.01016.58
7.4.210.0070.00916.54
7.4.200.0000.00716.51
7.4.160.0120.00416.48
7.4.150.0080.01617.40
7.4.140.0080.00917.86
7.4.130.0090.00816.44
7.4.120.0090.00816.46
7.4.110.0070.01116.54
7.4.100.0170.00316.23
7.4.90.0060.01016.45
7.4.80.0150.01119.39
7.4.70.0080.00816.25
7.4.60.0070.01116.41
7.4.50.0030.00616.36
7.4.40.0110.00516.28
7.4.30.0090.00916.22
7.4.00.0070.00914.88
7.3.330.0000.00712.99
7.3.320.0040.00413.06
7.3.310.0030.00316.13
7.3.300.0030.00316.26
7.3.290.0070.00016.28
7.3.280.0110.00716.30
7.3.270.0070.01717.40
7.3.260.0070.01116.44
7.3.250.0130.00516.30
7.3.240.0090.00916.36
7.3.230.0070.01016.51
7.3.210.0140.00616.47
7.3.200.0080.00816.22
7.3.190.0000.01516.32
7.3.180.0100.00616.11
7.3.170.0140.00316.39
7.3.160.0130.00716.43
7.3.120.0060.01214.82
7.3.110.0090.00914.75
7.3.100.0070.01315.00
7.3.90.0030.01014.91
7.3.80.0000.01614.49
7.3.70.0080.00414.85
7.3.60.0030.00914.58
7.3.50.0070.00714.73
7.3.40.0150.00014.71
7.3.30.0030.00814.63
7.3.20.0050.00516.64
7.3.10.0050.01016.46
7.3.00.0050.00816.27
7.2.330.0180.00616.26
7.2.320.0100.01016.59
7.2.310.0110.00916.52
7.2.300.0100.00716.65
7.2.290.0040.01816.25
7.2.250.0060.01214.89
7.2.240.0060.00614.78
7.2.230.0030.01014.90
7.2.220.0040.01114.82
7.2.210.0030.01414.71
7.2.200.0000.01315.05
7.2.190.0070.00714.84
7.2.180.0040.01114.61
7.2.170.0090.00614.74
7.2.160.0040.01215.06
7.2.150.0070.00716.85
7.2.140.0100.00316.59
7.2.130.0100.00516.59
7.2.120.0070.00716.62
7.2.110.0020.01116.58
7.2.100.0050.00716.62
7.2.90.0070.00816.65
7.2.80.0070.00716.81
7.2.70.0050.00816.66
7.2.60.0050.00816.71
7.2.50.0110.00516.85
7.2.40.0100.00416.66
7.2.30.0070.00716.75
7.2.20.0080.00516.72
7.2.10.0090.00516.62
7.2.00.0070.00917.43
7.1.330.0120.00615.42
7.1.320.0030.01015.66
7.1.310.0040.00815.90
7.1.300.0120.00315.41
7.1.290.0030.00615.61
7.1.280.0060.00315.55
7.1.270.0070.00715.48
7.1.260.0000.01215.54
7.1.250.0050.00815.46
7.1.240.0060.01215.64
7.1.230.0000.01415.61
7.1.220.0060.00615.71
7.1.210.0040.01115.50
7.1.200.0050.00415.71
7.1.190.0000.01615.74
7.1.180.0030.00915.33
7.1.170.0030.01015.47
7.1.160.0060.00615.48
7.1.150.0030.00615.67
7.1.140.0050.00515.63
7.1.130.0030.00615.77
7.1.120.0040.00415.76
7.1.110.0030.00915.31
7.1.100.0090.00316.86
7.1.90.0110.00415.53
7.1.80.0030.00715.72
7.1.70.0020.00916.49
7.1.60.0060.01017.41
7.1.50.0110.00716.40
7.1.40.0090.00015.36
7.1.30.0000.01415.70
7.1.20.0110.00415.67
7.1.10.0130.00315.68
7.1.00.0020.04618.82
7.0.330.0030.01015.35
7.0.320.0030.00515.17
7.0.310.0030.00914.94
7.0.300.0060.00315.09
7.0.290.0110.00415.23
7.0.280.0040.01115.41
7.0.270.0030.00615.13
7.0.260.0030.00615.42
7.0.250.0040.00715.36
7.0.240.0040.01115.07
7.0.230.0000.00815.32
7.0.220.0000.01515.41
7.0.210.0110.00415.35
7.0.200.0060.00615.99
7.0.190.0070.00315.46
7.0.180.0070.00715.46
7.0.170.0120.00015.28
7.0.160.0060.00615.29
7.0.150.0140.00015.07
7.0.140.0040.00415.16
7.0.130.0030.01015.16
7.0.120.0000.01215.25
7.0.110.0060.00315.26
7.0.100.0090.00615.29
7.0.90.0060.00615.19
7.0.80.0140.00015.27
7.0.70.0000.01315.35
7.0.60.0120.03717.73
7.0.50.0120.03816.78
7.0.40.0100.03216.85
7.0.30.0180.03716.75
7.0.20.0130.02716.80
7.0.10.0170.02316.70
7.0.00.0050.04616.81
5.6.400.0060.00614.13
5.6.390.0060.00914.23
5.6.380.0030.01014.38
5.6.370.0000.00914.09
5.6.360.0000.01214.28
5.6.350.0000.01313.82
5.6.340.0090.00614.11
5.6.330.0130.00014.09
5.6.320.0090.00614.08
5.6.310.0090.00314.36
5.6.300.0060.00614.29
5.6.290.0040.01114.05
5.6.280.0090.03517.33
5.6.270.0000.01314.10
5.6.260.0080.00814.23
5.6.250.0030.01213.91
5.6.240.0060.00314.13
5.6.230.0040.00813.93
5.6.220.0070.01014.06
5.6.210.0050.04717.31
5.6.200.0060.03116.07
5.6.190.0080.02217.22
5.6.180.0050.05017.41
5.6.170.0180.03417.47
5.6.160.0040.03317.38
5.6.150.0080.03616.20
5.6.140.0060.02516.16
5.6.130.0040.02416.25
5.6.120.0100.04217.55
5.6.110.0050.02817.62
5.6.100.0000.05017.56
5.6.90.0020.02717.56
5.6.80.0030.04717.28
5.6.70.0070.00413.75
5.6.60.0090.00613.88
5.6.50.0100.00313.89
5.6.40.0030.00613.79
5.6.30.0100.00313.81
5.6.20.0070.00713.97
5.6.10.0060.01014.07
5.6.00.0000.01413.89
5.5.380.0110.00414.22
5.5.370.0040.01113.76
5.5.360.0140.00013.93
5.5.350.0100.04317.01
5.5.340.0060.04615.91
5.5.330.0060.04617.15
5.5.320.0080.02317.29
5.5.310.0170.04317.16
5.5.300.0060.03316.02
5.5.290.0070.02716.01
5.5.280.0080.04617.41
5.5.270.0060.03317.37
5.5.260.0070.02617.48
5.5.250.0060.04817.39
5.5.240.0040.04517.08
5.5.230.0060.00613.68
5.5.220.0070.00713.80
5.5.210.0080.00014.01
5.5.200.0030.00914.07
5.5.190.0100.00313.72
5.5.180.0070.01014.00
5.5.170.0030.01013.77
5.5.160.0040.01113.84
5.5.150.0070.01013.84
5.5.140.0060.00913.78
5.5.130.0000.01414.12
5.5.120.0060.00613.95
5.5.110.0070.00314.02
5.5.100.0070.00713.91
5.5.90.0030.01213.86
5.5.80.0030.01013.68
5.5.70.0030.01314.00
5.5.60.0030.01314.00
5.5.50.0060.00313.93
5.5.40.0100.00713.79
5.5.30.0000.01114.14
5.5.20.0120.00013.73
5.5.10.0070.00713.77
5.5.00.0070.01013.76
5.4.450.0440.02815.52
5.4.440.0400.03115.79
5.4.430.0330.02815.77
5.4.420.0340.02915.77
5.4.410.0440.02915.46
5.4.400.0570.03215.56
5.4.390.0330.03515.55
5.4.380.0350.03015.61
5.4.370.0350.03115.56
5.4.360.0380.03115.56
5.4.350.0350.03115.62
5.4.340.0400.03215.61
5.4.330.0000.00911.85
5.4.320.0450.04015.48
5.4.310.0270.03315.34
5.4.300.0360.03015.42
5.4.290.0540.03315.43
5.4.280.0400.03815.54
5.4.270.0520.03015.63
5.4.260.0450.02415.43
5.4.250.0400.03215.57
5.4.240.0400.02715.36
5.4.230.0480.03915.43
5.4.220.0370.02515.36
5.4.210.0410.03415.62
5.4.200.0340.03014.33
5.4.190.0250.03415.43
5.4.180.0140.02715.54
5.4.170.0100.03215.57
5.4.160.0320.02415.56
5.4.150.0400.03415.40
5.4.140.0270.03414.08
5.4.130.0290.03414.07
5.4.120.0100.02514.01
5.4.110.0070.02914.08
5.4.100.0180.03614.09
5.4.90.0330.03214.05
5.4.80.0450.03514.13
5.4.70.0360.03014.12
5.4.60.0200.02714.05
5.4.50.0100.02514.13
5.4.40.0060.03114.08
5.4.30.0310.03114.01
5.4.20.0410.02814.12
5.4.10.0380.02814.12
5.4.00.0400.02513.89
5.3.290.0700.05714.55
5.3.280.0700.07014.54
5.3.270.0770.05714.45
5.3.260.0700.05714.48
5.3.250.0600.05314.48
5.3.240.0800.05014.43
5.3.230.0700.05314.68
5.3.220.0700.05014.42
5.3.210.0730.05714.44
5.3.200.0730.05014.44
5.3.190.0730.05014.40
5.3.180.0770.04314.43
5.3.170.0870.05314.44
5.3.160.0600.05014.66
5.3.150.0600.05014.35
5.3.140.0570.05314.59
5.3.130.0700.04714.42
5.3.120.0830.06314.52
5.3.110.0670.04714.49
5.3.100.0570.05713.89
5.3.90.0700.06713.83
5.3.80.0770.07013.95
5.3.70.0530.05313.96
5.3.60.0700.06313.80
5.3.50.0830.06013.83
5.3.40.0670.06013.87
5.3.30.0670.05713.89
5.3.20.0630.06313.53
5.3.10.0530.06713.64
5.3.00.0130.05313.41
5.2.170.0100.05311.10
5.2.160.0030.04711.03
5.2.150.0570.03710.99
5.2.140.0530.05011.30
5.2.130.0700.04011.12
5.2.120.0500.04311.18
5.2.110.0400.03311.13
5.2.100.0100.03710.94
5.2.90.0130.03310.99
5.2.80.0130.04311.11
5.2.70.0530.04311.11
5.2.60.0600.04010.89
5.2.50.0470.05010.88
5.2.40.0400.04710.84
5.2.30.0270.05310.91
5.2.20.0100.03710.89
5.2.10.0030.04310.88
5.2.00.0030.04310.72
5.1.60.0070.0309.96
5.1.50.0500.0409.88
5.1.40.0370.04010.02
5.1.30.0370.03710.24
5.1.20.0430.04010.36
5.1.10.0500.03010.07
5.1.00.0470.0409.94
5.0.50.0270.0278.41
5.0.40.0230.0278.46
5.0.30.0370.0438.23
5.0.20.0270.0308.09
5.0.10.0270.0278.14
5.0.00.0300.0478.22
4.4.90.0270.0277.44
4.4.80.0230.0207.44
4.4.70.0200.0277.44
4.4.60.0200.0277.44
4.4.50.0270.0207.44
4.4.40.0230.0377.44
4.4.30.0230.0237.44
4.4.20.0230.0237.44
4.4.10.0230.0237.44
4.4.00.0300.0337.44
4.3.110.0200.0237.44
4.3.100.0200.0237.44
4.3.90.0300.0237.44
4.3.80.0230.0407.44
4.3.70.0200.0237.44
4.3.60.0200.0237.44
4.3.50.0200.0277.44
4.3.40.0200.0337.44
4.3.30.0030.0207.44
4.3.20.0100.0237.44
4.3.10.0130.0207.44
4.3.00.0400.0207.35

preferences:
56.94 ms | 401 KiB | 5 Q