3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $time = microtime(true); $data = md5(substr(str_shuffle('0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'), 0, rand(1,10))); $keyhash = md5('secret key'); $ivsize = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_CBC); $iv = mcrypt_create_iv($ivsize, MCRYPT_DEV_URANDOM); $cipherdata = ''; for ($i = 0; $i < 2500; $i += 1) { // XOR $cipherdata ^= mcrypt_encrypt(MCRYPT_RIJNDAEL_256, $keyhash, $data, MCRYPT_MODE_CBC, $iv); } $time = microtime(true) - $time; echo 'array_diff() took ' . number_format($time, 3) . ' seconds'.PHP_EOL;
Output for 7.0.6 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function mcrypt_get_iv_size() in /in/58hZB:6 Stack trace: #0 {main} thrown in /in/58hZB on line 6
Process exited with code 255.
Output for 5.5.25, 5.6.20, 7.0.5
array_diff() took 0.151 seconds
Output for 5.5.34, 5.6.17, 7.0.4
array_diff() took 0.129 seconds
Output for 7.0.3
array_diff() took 0.145 seconds
Output for 5.6.13, 7.0.2
array_diff() took 0.141 seconds
Output for 7.0.1
array_diff() took 0.132 seconds
Output for 7.0.0
array_diff() took 0.152 seconds
Output for hhvm-3.12.0
array_diff() took 0.267 seconds
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.0.0 - 5.4.32, 5.5.35, 5.6.21 - 5.6.28
Fatal error: Call to undefined function mcrypt_get_iv_size() in /in/58hZB on line 6
Process exited with code 255.
Output for 5.6.14, 5.6.19
array_diff() took 0.149 seconds
Output for 5.6.18
array_diff() took 0.167 seconds
Output for 5.6.16
array_diff() took 0.172 seconds
Output for 5.6.15
array_diff() took 0.134 seconds
Output for 5.6.12
array_diff() took 0.130 seconds
Output for 5.6.11
array_diff() took 0.126 seconds
Output for 5.6.10
array_diff() took 0.148 seconds
Output for 5.6.9
array_diff() took 0.135 seconds
Output for 5.6.8
array_diff() took 0.142 seconds
Output for 5.5.30, 5.5.33
array_diff() took 0.125 seconds
Output for 5.5.29, 5.5.32
array_diff() took 0.136 seconds
Output for 5.5.31
array_diff() took 0.143 seconds
Output for 5.5.28
array_diff() took 0.140 seconds
Output for 5.5.27
array_diff() took 0.150 seconds
Output for 5.5.26
array_diff() took 0.144 seconds
Output for 5.5.24
array_diff() took 0.124 seconds
Output for 5.4.45
array_diff() took 0.413 seconds
Output for 5.4.44
array_diff() took 0.146 seconds
Output for 5.4.43
array_diff() took 0.163 seconds
Output for 5.4.42
array_diff() took 0.222 seconds
Output for 5.4.41
array_diff() took 0.173 seconds
Output for 5.4.40
array_diff() took 0.335 seconds
Output for 5.4.39
array_diff() took 0.261 seconds
Output for 5.4.38
array_diff() took 0.578 seconds
Output for 5.4.37
array_diff() took 1.203 seconds
Output for 5.4.36
array_diff() took 1.361 seconds
Output for 5.4.35
array_diff() took 0.783 seconds
Output for 5.4.34
array_diff() took 0.928 seconds
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: mcrypt_get_iv_size() in /in/58hZB on line 6
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: mcrypt_get_iv_size() in /in/58hZB on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: mcrypt_get_iv_size() in /in/58hZB on line 6