3v4l.org

run code in 300+ PHP versions simultaneously
<?php //echo openssl_cipher_iv_length('aes-256-gcm'); //echo $key = openssl_random_pseudo_bytes(16); die(); $secret="This is a secret message."; $key=pack("H*", "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.0140.00316.38
8.3.50.0100.00821.09
8.3.40.0120.00318.67
8.3.30.0070.00718.77
8.3.20.0000.00720.18
8.3.10.0040.00423.68
8.3.00.0080.00320.61
8.2.180.0090.00618.29
8.2.170.0070.01022.96
8.2.160.0100.00322.17
8.2.150.0040.00424.18
8.2.140.0000.00724.66
8.2.130.0000.00726.16
8.2.120.0080.00017.50
8.2.110.0030.00719.45
8.2.100.0080.00417.63
8.2.90.0030.00519.08
8.2.80.0080.00017.97
8.2.70.0080.00017.75
8.2.60.0000.00717.80
8.2.50.0000.00818.07
8.2.40.0040.00421.13
8.2.30.0000.00819.85
8.2.20.0080.00017.70
8.2.10.0000.00817.87
8.2.00.0050.00318.00
8.1.280.0090.00625.92
8.1.270.0080.00020.18
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00323.93
8.1.230.0040.00817.66
8.1.220.0050.00317.74
8.1.210.0050.00318.77
8.1.200.0030.00617.00
8.1.190.0000.00817.13
8.1.180.0050.00318.10
8.1.170.0000.00818.61
8.1.160.0020.00521.94
8.1.150.0060.00318.75
8.1.140.0000.00717.36
8.1.130.0000.00717.63
8.1.120.0080.00017.16
8.1.110.0070.00017.22
8.1.100.0030.00317.37
8.1.90.0070.00017.29
8.1.80.0000.01017.30
8.1.70.0040.00417.35
8.1.60.0000.00817.46
8.1.50.0130.00017.21
8.1.40.0080.00017.50
8.1.30.0080.00017.46
8.1.20.0040.00417.56
8.1.10.0080.00017.51
8.1.00.0060.00317.27
8.0.300.0000.00818.77
8.0.290.0000.00716.75
8.0.280.0000.00718.28
8.0.270.0000.00717.14
8.0.260.0030.00317.16
8.0.250.0000.00816.93
8.0.240.0070.00016.93
8.0.230.0040.00416.81
8.0.220.0030.00316.81
8.0.210.0030.00316.66
8.0.200.0060.00016.75
8.0.190.0060.00316.77
8.0.180.0000.00716.77
8.0.170.0040.00416.87
8.0.160.0000.00716.72
8.0.150.0000.00716.76
8.0.140.0040.00416.81
8.0.130.0050.00513.29
8.0.120.0000.00816.66
8.0.110.0080.00016.66
8.0.100.0040.00416.83
8.0.90.0040.00416.82
8.0.80.0120.00316.88
8.0.70.0020.00516.60
8.0.60.0000.00716.72
8.0.50.0000.00816.84
8.0.30.0110.00516.98
8.0.20.0100.00917.40
8.0.10.0050.00216.83
8.0.00.0110.00516.75
7.4.330.0000.00515.08
7.4.320.0000.00616.47
7.4.300.0000.00716.48
7.4.290.0030.00316.32
7.4.280.0000.00716.35
7.4.270.0060.00016.38
7.4.260.0030.00316.22
7.4.250.0050.00216.44
7.4.240.0040.00316.39
7.4.230.0030.00316.45
7.4.220.0060.01216.57
7.4.210.0030.01316.40
7.4.200.0040.00416.47
7.4.160.0060.01216.32
7.4.150.0030.01417.40
7.4.140.0110.00517.86
7.4.130.0090.00916.41
7.4.120.0090.00816.37
7.4.110.0100.01016.38
7.4.100.0090.01316.39
7.4.90.0060.01116.59
7.4.80.0030.01819.39
7.4.70.0060.01016.46
7.4.60.0190.00316.30
7.4.50.0040.00416.59
7.4.40.0120.00416.30
7.4.30.0060.01616.41
7.4.00.0070.00414.85
7.3.330.0040.00413.00
7.3.320.0000.00613.07
7.3.310.0000.00716.27
7.3.300.0030.00316.22
7.3.290.0060.00016.19
7.3.280.0150.00716.22
7.3.270.0110.01117.40
7.3.260.0050.01116.23
7.3.250.0110.00716.20
7.3.240.0130.01016.38
7.3.230.0140.00716.39
7.3.210.0100.00716.19
7.3.200.0120.00916.37
7.3.190.0110.00516.31
7.3.180.0060.01316.22
7.3.170.0000.01616.27
7.3.160.0090.00816.51
7.3.120.0070.00714.62
7.3.110.0100.00014.57
7.3.100.0040.00414.67
7.3.90.0030.00814.70
7.3.80.0000.01514.50
7.3.70.0150.00014.71
7.3.60.0070.00714.66
7.3.50.0060.00614.56
7.3.40.0000.01414.51
7.3.30.0070.00714.67
7.3.20.0070.00716.58
7.3.10.0070.00716.50
7.3.00.0060.00916.19
7.2.330.0080.00916.34
7.2.320.0140.00816.64
7.2.310.0030.01416.34
7.2.300.0000.01516.34
7.2.290.0170.00016.39
7.2.240.0040.01114.78
7.2.230.0000.01114.84
7.2.220.0070.00714.57
7.2.210.0120.00314.43
7.2.200.0090.00614.75
7.2.190.0040.01414.56
7.2.180.0040.00914.57
7.2.170.0060.00914.89
7.2.160.0070.00314.72
7.2.150.0000.01216.46
7.2.140.0080.00816.82
7.2.130.0030.01016.06
7.2.120.0000.01816.79
7.2.110.0030.01316.71
7.2.100.0000.01016.82
7.2.90.0070.00716.73
7.2.80.0110.00716.96
7.2.70.0160.00316.55
7.2.60.0030.00816.62
7.2.50.0070.01016.82
7.2.40.0030.01116.60
7.2.30.0040.01416.96
7.2.20.0090.00616.84
7.2.10.0130.00016.80
7.2.00.0160.00617.76
7.1.330.0070.00715.52
7.1.320.0040.00415.40
7.1.310.0030.01015.18
7.1.300.0030.00515.30
7.1.290.0060.00315.50
7.1.280.0070.00715.64
7.1.270.0030.01015.61
7.1.260.0080.00315.42
7.1.250.0060.00915.64
7.1.100.0000.01117.96
7.1.70.0040.00417.12
7.1.60.0110.01419.18
7.1.50.0100.01316.98
7.1.00.0030.07722.28
7.0.200.0100.00316.43
7.0.60.0070.07320.02
7.0.50.0000.04317.82
7.0.40.0000.05020.27
7.0.30.0330.07720.21
7.0.20.0330.07720.17
7.0.10.0130.07320.33
7.0.00.0100.08720.09
5.6.280.0030.03021.12
5.6.210.0070.08020.69
5.6.200.0070.07718.12
5.6.190.0030.04320.35
5.6.180.0570.07020.67
5.6.170.0270.03720.54
5.6.160.0070.05720.37
5.6.150.0070.07318.12
5.6.140.0030.06318.12
5.6.130.0070.05318.21
5.6.120.0030.06021.14
5.6.110.0200.05321.11
5.6.100.0130.08321.10
5.6.90.0070.04320.87
5.6.80.0030.07720.47
5.5.350.0200.03720.48
5.5.340.0030.06717.91
5.5.330.0130.04320.44
5.5.320.0270.04720.28
5.5.310.0170.04720.31
5.5.300.0130.07318.00
5.5.290.0100.07317.94
5.5.280.0070.08020.95
5.5.270.0130.05020.74
5.5.260.0070.07320.79
5.5.250.0100.07720.57
5.5.240.0030.03720.11
5.4.450.0170.05719.62
5.4.440.0770.06019.52
5.4.430.0730.06019.48
5.4.420.0870.04319.53
5.4.410.0800.05319.14
5.4.400.0730.06018.92
5.4.390.0730.06019.13
5.4.380.0730.05019.31
5.4.370.0970.05718.95
5.4.360.0700.06019.22
5.4.350.0670.06018.80
5.4.340.0730.05319.18
5.4.320.0630.05319.16
5.4.310.0600.05719.15
5.4.300.0730.04019.19
5.4.290.0830.04319.34
5.4.280.0700.06318.95
5.4.270.0600.06018.77
5.4.260.0630.05319.25
5.4.250.0670.04718.79
5.4.240.0700.05318.98
5.4.230.0570.06019.21
5.4.220.0600.06019.19
5.4.210.0630.05019.09
5.4.200.0830.06016.66
5.4.190.0700.04718.80
5.4.180.0670.05018.86
5.4.170.0570.06019.16
5.4.160.0730.04319.08
5.4.150.0630.05019.04
5.4.140.0730.05316.45
5.4.130.0600.05316.33
5.4.120.0430.06016.45
5.4.110.0070.05016.16
5.4.100.0200.05316.27
5.4.90.0100.06316.23
5.4.80.0600.05016.46
5.4.70.0670.06716.17
5.4.60.0770.05316.17
5.4.50.0630.05716.14
5.4.40.0770.05016.32
5.4.30.0770.05016.57
5.4.20.0830.05016.24
5.4.10.0730.05316.28
5.4.00.0730.04715.67

preferences:
56.03 ms | 401 KiB | 5 Q