3v4l.org

run code in 300+ PHP versions simultaneously
<?php $key = hash_pbkdf2( 'sha256', 'foot assay palsy levin sn tenney slap rap sepoy sturm fine hue knox han pawn erro', "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\0e\x0f\x10\x11\x12\x13\x14\x15\x16\x17\x18\x19\x1a\x1b\x1c\x1d\1e\x1f", 86000, 32, true ); $iv = random_bytes(openssl_cipher_iv_length('aes-256-gcm')); $data = 'Obscene artwork possibly from furaffinity.jpg'; $ciphertext = openssl_encrypt( $data, 'aes-256-ctr', $key, OPENSSL_RAW_DATA, $iv ); $decrypted = openssl_decrypt( $ciphertext, 'aes-256-ctr', $key, OPENSSL_RAW_DATA, $iv ); var_dump(bin2hex($ciphertext)); var_dump($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)
7.2.00.0030.16119.50
7.1.100.0000.17218.12
7.1.70.0000.17217.19
7.1.60.0070.17619.44
7.1.50.0070.22517.02
7.1.00.0030.29322.48
7.0.200.0000.18116.64
7.0.60.0270.20021.87
7.0.50.0030.22317.95
7.0.40.0130.23720.30
7.0.30.0430.21720.23
7.0.20.0300.17020.13
7.0.10.0000.18020.16
7.0.00.0000.18720.24
5.6.280.0000.18020.99
5.6.210.0070.17720.66
5.6.200.0030.23318.21
5.6.190.0130.24020.41
5.6.180.0130.20320.45
5.6.170.0330.22720.32
5.6.160.0100.21320.59
5.6.150.0130.23318.12
5.6.140.0070.21718.16
5.6.130.0100.23718.25
5.6.120.0000.25320.89
5.6.110.0070.22320.98
5.6.100.0000.19020.88
5.6.90.0130.25020.96
5.6.80.0030.19020.43
5.5.350.4200.18320.32
5.5.340.0170.21717.89
5.5.330.0100.23020.20
5.5.320.0670.21020.29
5.5.310.0270.20720.18
5.5.300.0030.18017.88
5.5.290.0070.23017.98
5.5.280.0030.19720.87
5.5.270.0100.24720.72
5.5.260.0100.23020.86
5.5.250.0130.21320.68
5.5.240.0330.20720.25

preferences:
33.58 ms | 400 KiB | 5 Q