3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = '057e6752d585a7a94894dff65ab2537e'; $key = hash('sha256', $key, true); function encrypt($value) { $encryption_key = base64_decode($key); $iv = openssl_random_pseudo_bytes(openssl_cipher_iv_length('aes-256-cbc')); $encrypted = openssl_encrypt($value, 'aes-256-cbc', $encryption_key, 0, $iv); return base64_encode($encrypted . '::' . $iv); } function decrypt($value) { $encryption_key = base64_decode($key); list($encrypted_data, $iv) = explode('::', base64_decode($value), 2); return openssl_decrypt($encrypted_data, 'aes-256-cbc', $encryption_key, 0, $iv); } $criptando = encrypt('1038'); echo 'criptando : ' . $criptando . '<br>'; echo 'decriptando: ' . decrypt($criptando);

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.0110.00416.88
8.3.50.0040.01118.21
8.3.40.0000.01518.93
8.3.30.0110.00418.84
8.3.20.0080.00020.21
8.3.10.0040.00423.39
8.3.00.0040.00423.71
8.2.180.0200.00025.92
8.2.170.0100.00619.09
8.2.160.0100.00322.96
8.2.150.0070.00025.66
8.2.140.0040.00424.66
8.2.130.0060.00320.38
8.2.120.0040.00426.35
8.2.110.0030.00620.53
8.2.100.0080.00417.72
8.2.90.0030.00517.91
8.2.80.0070.00717.97
8.2.70.0070.00317.63
8.2.60.0000.00817.79
8.2.50.0060.00318.07
8.2.40.0040.00418.04
8.2.30.0000.00917.93
8.2.20.0040.00417.93
8.2.10.0060.00318.05
8.2.00.0040.00418.13
8.1.280.0180.00025.92
8.1.270.0060.00624.66
8.1.260.0000.00826.35
8.1.250.0040.00428.09
8.1.240.0030.00619.12
8.1.230.0100.00022.81
8.1.220.0050.00317.74
8.1.210.0050.00318.94
8.1.200.0030.00617.22
8.1.190.0050.00317.36
8.1.180.0030.00518.10
8.1.170.0040.00418.55
8.1.160.0050.00318.79
8.1.150.0030.00620.52
8.1.140.0050.00217.64
8.1.130.0050.00217.46
8.1.120.0040.00417.32
8.1.110.0030.00317.29
8.1.100.0080.00017.28
8.1.90.0000.00817.46
8.1.80.0030.00717.41
8.1.70.0040.00417.35
8.1.60.0040.00417.59
8.1.50.0040.00417.49
8.1.40.0040.00417.58
8.1.30.0030.00517.67
8.1.20.0040.00417.66
8.1.10.0040.00417.52
8.1.00.0090.00317.53
8.0.300.0040.00419.86
8.0.290.0040.00416.75
8.0.280.0000.00718.27
8.0.270.0070.00017.21
8.0.260.0040.00416.81
8.0.250.0070.00017.00
8.0.240.0000.00616.85
8.0.230.0000.00816.93
8.0.220.0000.00716.79
8.0.210.0000.00716.91
8.0.200.0040.00416.84
8.0.190.0000.00716.89
8.0.180.0040.00416.89
8.0.170.0050.00216.89
8.0.160.0050.00216.79
8.0.150.0080.00016.83
8.0.140.0030.00616.88
8.0.130.0030.00313.34
8.0.120.0000.00816.83
8.0.110.0040.00416.88
8.0.100.0030.00416.89
8.0.90.0000.00716.75
8.0.80.0030.01316.81
8.0.70.0050.00316.77
8.0.60.0020.00516.97
8.0.50.0030.00517.01
8.0.30.0080.01217.01
8.0.20.0130.00817.41
8.0.10.0020.00516.94
8.0.00.0100.00717.04
7.4.330.0030.00316.85
7.4.320.0000.00716.44
7.4.300.0000.00716.56
7.4.290.0040.00416.61
7.4.280.0000.00816.61
7.4.270.0040.00416.50
7.4.260.0030.00316.54
7.4.250.0040.00416.52
7.4.240.0030.00416.51
7.4.230.0000.00716.26
7.4.220.0150.01216.57
7.4.210.0110.00516.46
7.4.200.0030.00616.59
7.4.160.0090.00716.54
7.4.150.0130.01017.40
7.4.140.0100.01017.86
7.4.130.0100.00716.55
7.4.120.0120.00716.59
7.4.110.0100.00716.65
7.4.100.0150.00316.72
7.4.90.0070.01016.45
7.4.80.0110.00619.39
7.4.70.0060.01216.42
7.4.60.0030.01216.65
7.4.50.0000.01616.43
7.4.40.0100.00916.53
7.4.30.0090.01016.67
7.4.00.0070.00714.98
7.3.330.0030.00313.13
7.3.320.0050.00013.08
7.3.310.0070.00016.31
7.3.300.0000.00716.32
7.3.290.0100.00516.26
7.3.280.0090.00916.31
7.3.270.0070.01017.40
7.3.260.0130.00416.32
7.3.250.0120.00716.36
7.3.240.0090.01016.22
7.3.230.0080.01216.25
7.3.210.0030.01316.23
7.3.200.0090.00616.27
7.3.190.0100.00616.30
7.3.180.0060.00916.26
7.3.170.0130.00716.30
7.3.160.0070.01316.23
7.3.10.0080.00616.57
7.3.00.0060.00716.58
7.2.330.0110.00716.33
7.2.320.0110.00616.67
7.2.310.0140.00416.63
7.2.300.0120.00616.43
7.2.290.0060.00916.46
7.2.130.0110.00516.64
7.2.120.0030.01316.76
7.2.110.0090.00816.73
7.2.100.0090.00516.75
7.2.90.0060.00716.49
7.2.80.0050.01016.70
7.2.70.0080.00616.78
7.2.60.0040.01016.68
7.2.50.0050.01016.72
7.2.40.0080.00816.58
7.2.30.0060.00716.52
7.2.20.0040.01116.78
7.2.10.0090.00616.66
7.2.00.0040.01016.77
7.1.250.0080.00715.61
7.1.240.0100.00715.66
7.1.230.0060.00315.70
7.1.220.0070.00715.59
7.1.210.0070.00715.75
7.1.200.0070.01015.57
7.1.190.0000.01515.79
7.1.180.0070.01015.68
7.1.170.0080.00615.65
7.1.160.0070.00715.72
7.1.150.0090.00315.49
7.1.140.0080.00015.34
7.1.130.0030.00615.67
7.1.120.0070.00415.73
7.1.110.0040.00716.88
7.1.100.0060.00916.82
7.1.90.0050.00816.96
7.1.80.0050.01016.93
7.1.70.0100.00316.42
7.1.60.0130.01125.20
7.1.50.0170.01225.37
7.1.40.0130.00525.20
7.1.30.0140.01125.08
7.1.20.0140.00525.03
7.1.10.0080.00716.09
7.1.00.0060.00816.13
7.0.330.0070.00715.51
7.0.320.0080.00515.32
7.0.310.0100.00715.10
7.0.300.0040.00815.26
7.0.290.0000.01315.43
7.0.280.0060.00615.27
7.0.270.0060.00315.28
7.0.260.0100.00615.13
7.0.250.0050.00716.33
7.0.240.0040.00816.52
7.0.230.0080.00616.57
7.0.220.0070.00516.39
7.0.210.0100.00516.02
7.0.200.0060.00616.17
7.0.190.0070.00915.97
7.0.180.0070.00615.61
7.0.170.0030.01315.77
7.0.160.0080.00815.79
7.0.150.0050.00715.75
7.0.140.0070.00915.87
7.0.130.0050.01116.01
7.0.120.0070.00816.01
7.0.110.0070.00515.82
7.0.100.0080.00915.78
7.0.90.0050.00815.82
7.0.80.0050.01015.73
7.0.70.0050.00815.80
7.0.60.0060.00915.78
7.0.50.0120.00715.81
7.0.40.0100.00514.98
7.0.30.0110.00414.89
7.0.20.0070.00614.87
7.0.10.0060.00714.96
7.0.00.0100.00514.85
5.6.380.0080.00814.21

preferences:
45.74 ms | 401 KiB | 5 Q