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-gcm', $key, OPENSSL_RAW_DATA, $iv ); $decrypted = openssl_decrypt( $ciphertext, 'aes-256-gcm', $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.4.10.0100.23415.04
7.4.00.0070.16414.89
7.3.130.0100.28315.02
7.3.120.0070.28714.99
7.3.110.0100.18314.73
7.3.100.0030.18414.88
7.3.90.0030.16214.82
7.3.80.0070.23314.66
7.3.70.0070.19014.53
7.3.60.0030.16614.85
7.3.50.0100.24914.81
7.3.40.0070.16714.57
7.3.30.0030.17914.64
7.3.20.0030.23516.64
7.3.10.0040.17816.50
7.3.00.0030.18216.57
7.2.260.0070.18015.10
7.2.250.0030.29315.10
7.2.240.0070.22114.80
7.2.230.0070.18814.73
7.2.220.0000.25014.91
7.2.210.0030.21715.26
7.2.200.0070.15815.07
7.2.190.0030.26314.84
7.2.180.0070.23815.02
7.2.170.0000.23815.14
7.2.160.0030.15615.07
7.2.150.0070.16816.92
7.2.140.0030.18016.86
7.2.130.0040.19316.77
7.2.120.0070.17216.81
7.2.110.0070.20516.83
7.2.100.0080.18816.84
7.2.90.0140.19616.84
7.2.80.0060.17016.92
7.2.70.0040.20616.76
7.2.60.0010.23016.84
7.2.50.0080.18716.94
7.2.40.0090.18116.90
7.2.30.0060.19516.83
7.2.20.0070.19216.84
7.2.10.0020.17916.75
7.2.00.0060.17317.43
7.1.330.0030.17215.64
7.1.320.0030.23815.49
7.1.310.0000.18315.53
7.1.300.0000.17215.85
7.1.290.0000.25015.72
7.1.280.0130.15115.47
7.1.270.0030.14915.68
7.1.260.0000.22515.50
7.1.250.0040.18415.67
7.1.240.0070.22615.86
7.1.230.0030.24215.78
7.1.220.0000.24815.73
7.1.210.0030.16215.82
7.1.200.0070.16715.59
7.1.190.0070.22415.55
7.1.180.0070.14715.81
7.1.170.0030.15215.41
7.1.160.0000.16815.77
7.1.150.0070.23615.59
7.1.140.0000.20415.59
7.1.130.0070.18415.73
7.1.120.0030.20415.45
7.1.110.0000.21615.69
7.1.100.0030.18816.88
7.1.90.0070.18315.79
7.1.80.0030.21715.59
7.1.70.0020.16216.43
7.1.60.0050.20017.57
7.1.50.0020.19816.41
7.1.40.0000.17015.52
7.1.30.0070.22315.79
7.1.20.0070.16615.59
7.1.10.0000.25115.70
7.1.00.0050.21819.12
7.0.330.0030.21815.16
7.0.320.0000.19915.38
7.0.310.0030.21915.17
7.0.300.0030.17115.00
7.0.290.0030.23515.36
7.0.280.0000.25315.34
7.0.270.0000.15415.32
7.0.260.0070.19015.46
7.0.250.0030.23315.50
7.0.240.0130.15615.37
7.0.230.0030.14815.50
7.0.220.0030.16215.46
7.0.210.0070.20915.14
7.0.200.0000.18915.86
7.0.190.0000.16815.23
7.0.180.0030.16615.32
7.0.170.0030.14615.43
7.0.160.0030.21715.23
7.0.150.0070.16015.39
7.0.140.0030.18715.15
7.0.130.0000.16715.25
7.0.120.0070.21715.26
7.0.110.0000.20215.39
7.0.100.0070.27015.30
7.0.90.0030.26215.08
7.0.80.0130.21917.68
7.0.70.0270.19217.84
7.0.60.0230.17717.72
7.0.50.0280.24117.80
7.0.40.0050.22916.75
7.0.30.0070.21816.86
7.0.20.0050.23216.63
7.0.10.0030.20416.71
7.0.00.0050.19816.69
5.6.400.0000.15314.09
5.6.390.0030.16814.18
5.6.380.0070.19014.32
5.6.370.0030.22113.86
5.6.360.0070.17514.04
5.6.350.0030.21514.32
5.6.340.0000.15414.28
5.6.330.0100.21214.14
5.6.320.0030.16214.02
5.6.310.0030.15014.29
5.6.300.0100.23013.98
5.6.290.0070.17713.98
5.6.280.0030.18517.44
5.6.270.0030.16914.19
5.6.260.0100.26414.25
5.6.250.0070.26614.47
5.6.240.0070.16814.07
5.6.230.0070.19517.45
5.6.220.0150.19117.30
5.6.210.0100.21817.42
5.6.200.0080.21717.56
5.6.190.0030.19717.45
5.6.180.0080.16317.73
5.6.170.0050.21217.52
5.6.160.0030.17917.69
5.6.150.0030.18917.66
5.6.140.0050.18817.64
5.6.130.0050.18917.64
5.6.120.0050.19417.70
5.6.110.0030.21117.52
5.6.100.0080.19617.63
5.6.90.0080.23217.56
5.6.80.0050.16717.30
5.6.70.0020.21117.24
5.6.60.0030.17317.17
5.6.50.0070.22417.20
5.6.40.0050.19217.34
5.6.30.0030.19117.34
5.6.20.0030.16217.25
5.6.10.0030.17817.25
5.6.00.0120.20617.19
5.5.380.0030.16814.42
5.5.370.0080.22317.25
5.5.360.0080.18317.27
5.5.350.0070.20817.24
5.5.340.0050.21017.53
5.5.330.0050.24217.46
5.5.320.0030.18617.46
5.5.310.0050.21617.57
5.5.300.0000.23917.42
5.5.290.0070.23617.52
5.5.280.0070.22017.51
5.5.270.0020.20717.29
5.5.260.0070.18317.33
5.5.250.0130.20217.42
5.5.240.0030.20317.07
5.5.230.0070.19417.10
5.5.220.0100.16217.00
5.5.210.0050.20417.04
5.5.200.0050.20416.98
5.5.190.0050.21117.03
5.5.180.0030.16917.16
5.5.170.0030.20814.13
5.5.160.0070.18017.15
5.5.150.0050.20317.07
5.5.140.0050.20016.79
5.5.130.0000.20317.21
5.5.120.0070.20517.08
5.5.110.0030.17817.23
5.5.100.0050.24217.10
5.5.90.0070.22017.12
5.5.80.0080.19017.15
5.5.70.0030.20117.08
5.5.60.0030.22716.99
5.5.50.0050.17017.06
5.5.40.0080.19016.92
5.5.30.0020.19017.00
5.5.20.0070.22217.01
5.5.10.0070.17616.98
5.5.00.0020.22616.97
5.4.450.0030.08019.31
5.4.440.0100.03319.55
5.4.430.0130.07019.55
5.4.420.0070.08319.44
5.4.410.0070.07719.36
5.4.400.0030.07719.15
5.4.390.0070.07318.79
5.4.380.0030.05718.96
5.4.370.0000.04319.12
5.4.360.0100.03019.09
5.4.350.0070.04719.02
5.4.340.0030.07719.09
5.4.320.0100.07719.12
5.4.310.0130.04019.09
5.4.300.0000.05319.07
5.4.290.0070.06719.22
5.4.280.0070.06319.11
5.4.270.0070.06719.14
5.4.260.0070.03318.89
5.4.250.0070.07319.09
5.4.240.0030.04319.05
5.4.230.0030.07319.11
5.4.220.0030.08019.05
5.4.210.0070.05018.97
5.4.200.0070.07319.02
5.4.190.0070.05019.11
5.4.180.0070.06319.13
5.4.170.0030.04018.93
5.4.160.0030.08019.00
5.4.150.0170.05319.12
5.4.140.0030.07716.28
5.4.130.0000.06716.36
5.4.120.0070.05316.32
5.4.110.0100.06716.22
5.4.100.0030.07316.40
5.4.90.0070.07016.45
5.4.80.0130.05716.28
5.4.70.0030.05316.29
5.4.60.0070.07316.32
5.4.50.0030.04716.35
5.4.40.0070.06016.36
5.4.30.0200.05016.23
5.4.20.0100.06716.29
5.4.10.0070.07016.23
5.4.00.0000.05015.71
5.3.290.0170.05314.61
5.3.280.0070.05714.55
5.3.270.0000.04014.61
5.3.260.0130.07014.58
5.3.250.0100.03314.55
5.3.240.0070.06314.43
5.3.230.0070.06714.43
5.3.220.0070.06314.54
5.3.210.0030.04014.56
5.3.200.0000.04314.51
5.3.190.0070.06014.43
5.3.180.0030.06714.41
5.3.170.0030.04314.42
5.3.160.0100.06314.55
5.3.150.0000.08014.54
5.3.140.0100.06714.53
5.3.130.0100.06014.51
5.3.120.0030.04014.41
5.3.110.0030.05014.52
5.3.100.0100.06313.99
5.3.90.0070.07313.96
5.3.80.0030.07013.88
5.3.70.0030.07714.00
5.3.60.0000.05013.85
5.3.50.0070.07013.93
5.3.40.0070.03313.85
5.3.30.0000.03713.89
5.3.20.0000.03713.46
5.3.10.0000.03713.64
5.3.00.0030.05013.49
5.2.170.0100.05711.69
5.2.160.0000.04011.69
5.2.150.0100.05311.69
5.2.140.0100.06011.69
5.2.130.0070.04011.69
5.2.120.0070.02311.69
5.2.110.0000.03011.69
5.2.100.0030.03011.69
5.2.90.0000.03011.69
5.2.80.0030.04011.69
5.2.70.0070.02711.69
5.2.60.0000.03011.69
5.2.50.0030.03711.69
5.2.40.0070.02311.69
5.2.30.0000.03011.69
5.2.20.0100.02711.69
5.2.10.0000.03011.69
5.2.00.0030.02311.69
5.1.60.0000.02711.69
5.1.50.0000.02711.69
5.1.40.0030.02311.69
5.1.30.0000.03011.69
5.1.20.0000.02711.69
5.1.10.0070.02311.69
5.1.00.0030.02311.69
5.0.50.0030.01711.69
5.0.40.0030.04011.69
5.0.30.0000.03311.69
5.0.20.0000.03311.69
5.0.10.0000.04311.69
5.0.00.0000.06011.69
4.4.90.0030.01311.69
4.4.80.0000.01711.69
4.4.70.0000.02011.69
4.4.60.0030.01311.69
4.4.50.0000.01311.69
4.4.40.0030.02011.69
4.4.30.0030.01311.69
4.4.20.0000.01311.69
4.4.10.0000.01311.69
4.4.00.0100.04311.69
4.3.110.0070.03311.69
4.3.100.0030.02311.69
4.3.90.0000.03311.69
4.3.80.0030.03311.69
4.3.70.0030.03011.69
4.3.60.0000.03711.69
4.3.50.0000.01311.69
4.3.40.0000.02011.69
4.3.30.0000.02711.69
4.3.20.0030.01311.69
4.3.10.0000.01311.69
4.3.00.0000.01311.69

preferences:
45.35 ms | 401 KiB | 5 Q