3v4l.org

run code in 300+ PHP versions simultaneously
<?php $data = 'This text will encrypt using openssl!'; $secretKey = 'mykey'; function encrypt($data, $secretKey) { return trim(strtr(base64_encode(openssl_encrypt($data, 'AES-256-CBC', $secretKey, 0)),'+/=', '-_,')); } $encrypted = encrypt($data, $secretKey); function decrypt($encrypted, $secretKey) { return trim(openssl_decrypt(base64_decode(strtr($encrypted,'-_,', '+/=')),'AES-256-CBC', $secretKey, 0)); } $decrypted = decrypt($encrypted, $secretKey); var_dump('Encrypted: ' . $encrypted); var_dump('Decrypted: ' . $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.50
8.3.50.0100.01021.21
8.3.40.0150.00418.63
8.3.30.0070.00718.83
8.3.20.0040.00420.16
8.3.10.0040.00421.86
8.3.00.0080.00017.93
8.2.180.0150.00316.50
8.2.170.0140.00318.95
8.2.160.0090.00622.96
8.2.150.0030.00625.66
8.2.140.0030.01024.66
8.2.130.0040.00426.16
8.2.120.0040.00419.76
8.2.110.0000.00921.00
8.2.100.0080.00418.09
8.2.90.0000.00819.08
8.2.80.0000.00717.97
8.2.70.0080.00017.50
8.2.60.0030.00618.03
8.2.50.0080.00018.10
8.2.40.0060.00322.36
8.2.30.0050.00219.21
8.2.20.0000.00717.85
8.2.10.0030.00318.29
8.2.00.0030.00318.10
8.1.280.0070.01425.92
8.1.270.0000.00824.66
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0040.00423.92
8.1.230.0040.00719.05
8.1.220.0060.00317.74
8.1.210.0040.00418.77
8.1.200.0060.00317.23
8.1.190.0050.00517.10
8.1.180.0070.00018.10
8.1.170.0080.00018.51
8.1.160.0040.00418.90
8.1.150.0050.00320.03
8.1.140.0040.00419.45
8.1.130.0100.00018.93
8.1.120.0000.00717.39
8.1.110.0050.00317.40
8.1.100.0000.00717.29
8.1.90.0000.00717.42
8.1.80.0070.00017.33
8.1.70.0040.00417.32
8.1.60.0040.00417.63
8.1.50.0040.00817.55
8.1.40.0070.00017.42
8.1.30.0000.00817.66
8.1.20.0050.00317.68
8.1.10.0040.00417.54
8.1.00.0040.00417.48
8.0.300.0070.00018.77
8.0.290.0000.00716.63
8.0.280.0040.00418.38
8.0.270.0040.00417.10
8.0.260.0050.00518.88
8.0.250.0070.00016.95
8.0.240.0030.00316.93
8.0.230.0070.00016.85
8.0.220.0000.00716.85
8.0.210.0030.00316.90
8.0.200.0030.00316.93
8.0.190.0040.00716.88
8.0.180.0000.00816.83
8.0.170.0030.00516.90
8.0.160.0000.01016.96
8.0.150.0000.00716.89
8.0.140.0030.00316.86
8.0.130.0000.00713.32
8.0.120.0040.00416.82
8.0.110.0000.00816.78
8.0.100.0000.00716.78
8.0.90.0000.00716.88
8.0.80.0130.00616.83
8.0.70.0000.00816.83
8.0.60.0000.00816.85
8.0.50.0040.00416.95
8.0.30.0120.00617.06
8.0.20.0110.00917.40
8.0.10.0040.00416.84
8.0.00.0060.01216.90
7.4.330.0030.00315.55
7.4.320.0090.00016.45
7.4.300.0070.00016.61
7.4.290.0050.00216.50
7.4.280.0030.00516.64
7.4.270.0030.00316.64
7.4.260.0000.01116.48
7.4.250.0030.00316.61
7.4.240.0000.00716.51
7.4.230.0070.00016.34
7.4.220.0030.01316.52
7.4.210.0080.00916.59
7.4.200.0050.00216.68
7.4.160.0080.00816.36
7.4.150.0130.00417.40
7.4.140.0090.01217.86
7.4.130.0080.01016.57
7.4.120.0100.00916.57
7.4.110.0120.00616.39
7.4.100.0120.00916.55
7.4.90.0060.00916.33
7.4.80.0070.01519.39
7.4.70.0090.00916.51
7.4.60.0030.01216.68
7.4.50.0100.00316.49
7.4.40.0060.00916.34
7.4.30.0120.01216.68
7.4.00.0090.00715.07
7.3.330.0000.00513.08
7.3.320.0000.00513.07
7.3.310.0000.00716.16
7.3.300.0050.00316.15
7.3.290.0000.00616.21
7.3.280.0130.00716.31
7.3.270.0060.01217.40
7.3.260.0100.00916.47
7.3.250.0120.00516.47
7.3.240.0090.00916.34
7.3.230.0100.00716.57
7.3.210.0070.01216.22
7.3.200.0030.01616.31
7.3.190.0040.01416.41
7.3.180.0070.01916.50
7.3.170.0090.01516.44
7.3.160.0060.00916.20
7.3.120.0060.01014.80
7.3.110.0040.01114.66
7.3.100.0060.01114.73
7.3.90.0040.00714.78
7.3.80.0060.00714.82
7.3.70.0100.00514.80
7.3.60.0050.01014.62
7.3.50.0070.00414.68
7.3.40.0070.00914.71
7.3.30.0010.01214.65
7.3.20.0100.00516.48
7.3.10.0070.00616.67
7.3.00.0060.00616.54
7.2.330.0070.01116.64
7.2.320.0130.01016.58
7.2.310.0030.01316.68
7.2.300.0160.00616.52
7.2.290.0110.01116.57
7.2.250.0060.01515.00
7.2.240.0060.01114.69
7.2.230.0030.01215.00
7.2.220.0020.01014.84
7.2.210.0080.00714.88
7.2.200.0020.01114.77
7.2.190.0050.00714.87
7.2.180.0040.00714.93
7.2.170.0080.00914.81
7.2.160.0140.00014.73
7.2.150.0000.01116.54
7.2.140.0030.01216.73
7.2.130.0040.01116.52
7.2.120.0140.00316.62
7.2.110.0070.01016.72
7.2.100.0090.00316.54
7.2.90.0100.00716.78
7.2.80.0090.00916.60
7.2.70.0060.00916.46
7.2.60.0050.01116.67
7.2.50.0030.00916.71
7.2.40.0060.00916.76
7.2.30.0110.00416.50
7.2.20.0000.01216.89
7.2.10.0070.01016.64
7.2.00.0020.01417.96
7.1.330.0080.00615.67
7.1.320.0070.00915.40
7.1.310.0070.00915.65
7.1.300.0050.00815.39
7.1.290.0080.00515.44
7.1.280.0100.00515.64
7.1.270.0060.00915.51
7.1.260.0070.00515.55
7.1.250.0060.00615.30
7.1.200.0060.00315.62
7.1.70.0040.00417.17
7.1.60.0040.00716.96
7.1.50.0100.01317.00
7.1.40.0570.01732.64
7.1.30.0800.00732.72
7.1.20.0830.01332.75
7.1.10.0670.01014.66
7.1.00.0530.00314.53
7.0.200.0070.01016.75
7.0.180.0600.00714.49
7.0.170.1030.00714.29
7.0.160.0600.00714.39
7.0.150.0370.01314.35
7.0.140.0470.01014.36
7.0.130.0470.00714.85
7.0.120.0400.01314.52
7.0.110.0370.01014.34
7.0.100.0400.01014.33
7.0.90.0400.00714.41
7.0.80.0470.00314.50
7.0.70.0370.01014.45
7.0.60.0400.01014.43
7.0.50.0370.01014.39
7.0.40.0400.01014.71
7.0.30.0430.00714.66
7.0.20.0400.00714.51
7.0.10.0370.01014.58
7.0.00.0430.01014.73

preferences:
60.11 ms | 401 KiB | 5 Q