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: ' . pkcs5_unpad($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.0080.00816.86
8.3.50.0110.00716.36
8.3.40.0090.00618.93
8.3.30.0070.00718.67
8.3.20.0090.00020.04
8.3.10.0040.00421.94
8.3.00.0080.00017.93
8.2.180.0100.00725.92
8.2.170.0130.00618.96
8.2.160.0140.00019.37
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0000.00822.21
8.2.120.0000.00826.35
8.2.110.0030.00620.88
8.2.100.0060.00618.09
8.2.90.0030.00619.04
8.2.80.0040.00418.04
8.2.70.0050.00317.75
8.2.60.0070.00018.09
8.2.50.0000.00818.10
8.2.40.0040.00422.19
8.2.30.0000.00819.24
8.2.20.0000.00717.93
8.2.10.0000.00718.30
8.2.00.0000.00718.36
8.1.280.0120.00325.92
8.1.270.0070.00023.99
8.1.260.0070.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00323.83
8.1.230.0110.00019.16
8.1.220.0040.00717.74
8.1.210.0000.00818.77
8.1.200.0050.00517.23
8.1.190.0030.00517.13
8.1.180.0070.00018.10
8.1.170.0000.00918.66
8.1.160.0040.00418.79
8.1.150.0030.00519.95
8.1.140.0000.00719.52
8.1.130.0050.00518.91
8.1.120.0060.00317.41
8.1.110.0080.00017.42
8.1.100.0070.00017.43
8.1.90.0040.00417.39
8.1.80.0040.00317.39
8.1.70.0000.00817.40
8.1.60.0080.00017.49
8.1.50.0040.00717.58
8.1.40.0000.00817.50
8.1.30.0070.00017.55
8.1.20.0040.00417.63
8.1.10.0000.00817.45
8.1.00.0060.00317.53
8.0.300.0040.00418.77
8.0.290.0000.00716.61
8.0.280.0000.00818.39
8.0.270.0000.00717.14
8.0.260.0000.00819.01
8.0.250.0070.00017.00
8.0.240.0000.00816.90
8.0.230.0000.00716.95
8.0.220.0040.00416.91
8.0.210.0070.00016.86
8.0.200.0000.00616.99
8.0.190.0000.00916.96
8.0.180.0070.00016.80
8.0.170.0070.00016.95
8.0.160.0030.00616.86
8.0.150.0070.00016.96
8.0.140.0070.00016.75
8.0.130.0040.00413.24
8.0.120.0040.00416.80
8.0.110.0000.00716.93
8.0.100.0080.00016.72
8.0.90.0000.00816.96
8.0.80.0060.01216.95
8.0.70.0000.00716.88
8.0.60.0000.00716.92
8.0.50.0030.00316.76
8.0.30.0070.01217.12
8.0.20.0100.01017.40
8.0.10.0070.00016.99
8.0.00.0100.01016.50
7.4.330.0020.00215.55
7.4.320.0030.00616.45
7.4.300.0030.00316.61
7.4.290.0070.00016.40
7.4.280.0040.00416.59
7.4.270.0000.00716.57
7.4.260.0050.00316.48
7.4.250.0030.00316.51
7.4.240.0030.00316.36
7.4.230.0000.00716.54
7.4.220.0120.00616.42
7.4.210.0050.01016.51
7.4.200.0030.00316.35
7.4.160.0060.01116.51
7.4.150.0110.00717.40
7.4.140.0120.01017.86
7.4.130.0090.00916.54
7.4.120.0130.00916.55
7.4.110.0070.01016.62
7.4.100.0120.00816.60
7.4.90.0130.00316.47
7.4.80.0040.01919.39
7.4.70.0210.01316.63
7.4.60.0070.01016.48
7.4.50.0040.01416.39
7.4.40.0060.00916.52
7.4.30.0100.01316.41
7.4.00.0060.00914.81
7.3.330.0000.00513.26
7.3.320.0030.00313.08
7.3.310.0040.00416.26
7.3.300.0020.00516.29
7.3.290.0020.00516.16
7.3.280.0090.01116.30
7.3.270.0060.01217.40
7.3.260.0120.01016.40
7.3.250.0050.01116.40
7.3.240.0050.01416.34
7.3.230.0150.00916.28
7.3.210.0080.01216.43
7.3.200.0110.00516.39
7.3.190.0130.01016.56
7.3.180.0180.00316.54
7.3.170.0060.01016.57
7.3.160.0150.00016.42
7.3.120.0060.01314.79
7.3.110.0110.00714.64
7.3.100.0060.00614.71
7.3.90.0110.00414.94
7.3.80.0060.00914.64
7.3.70.0040.01514.73
7.3.60.0070.00714.63
7.3.50.0030.01314.87
7.3.40.0120.00314.80
7.3.30.0090.00314.81
7.3.20.0040.01116.77
7.3.10.0070.00816.60
7.3.00.0090.00916.47
7.2.330.0030.01316.55
7.2.320.0070.01516.52
7.2.310.0100.00616.50
7.2.300.0100.01016.66
7.2.290.0130.01016.65
7.2.250.0090.00915.05
7.2.240.0170.00014.85
7.2.230.0070.00714.88
7.2.220.0120.00615.09
7.2.210.0030.01014.81
7.2.200.0030.01314.93
7.2.190.0070.00314.68
7.2.180.0130.00614.58
7.2.170.0110.00714.70
7.2.130.0080.00816.18
7.2.120.0160.00616.16
7.2.110.0040.01716.45
7.2.100.0150.00416.62
7.2.90.0060.00916.37
7.2.80.0120.00516.27
7.2.70.0130.00715.98
7.2.60.0160.00416.51
7.2.50.0240.00316.87
7.2.40.0220.00616.14
7.2.30.0240.00016.42
7.2.20.0070.01016.46
7.2.10.0160.00316.38
7.2.00.0120.00618.07
7.1.330.0000.01515.31
7.1.320.0060.00915.91
7.1.310.0070.00715.74
7.1.300.0080.00315.54
7.1.290.0100.00315.71
7.1.280.0060.00615.57
7.1.270.0060.00915.67
7.1.260.0030.01215.42
7.1.250.0130.00715.50
7.1.200.0080.00315.78
7.1.70.0040.00417.18
7.1.60.0070.00417.18
7.1.50.0090.00916.66
7.1.40.0430.01032.52
7.1.30.0500.01032.61
7.1.20.0400.01732.65
7.1.10.0470.00714.60
7.1.00.0500.00715.00
7.0.200.0100.01016.71
7.0.180.0730.01314.30
7.0.170.0330.01014.30
7.0.160.0330.01014.32
7.0.150.0600.01314.27
7.0.140.0400.01014.40
7.0.130.0400.00714.78
7.0.120.0430.01014.67
7.0.110.0330.01014.32
7.0.100.0400.00714.67
7.0.90.0470.00014.39
7.0.80.0370.01314.48
7.0.70.0400.00714.47
7.0.60.0430.01014.23
7.0.50.0470.00714.49
7.0.40.0470.00714.80
7.0.30.0400.01314.58
7.0.20.0500.00314.61
7.0.10.0470.00314.66
7.0.00.0570.00714.71

preferences:
29.93 ms | 401 KiB | 5 Q