run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(array_slice(shuffle(range(1,1337*420)),0,1));
based on AFj70
Output for 7.0.0 - 7.1.0RC4
Notice: Only variables should be passed by reference in /in/9IhFO on line 2 Warning: array_slice() expects parameter 1 to be array, boolean given in /in/9IhFO on line 2 NULL
Output for hhvm-3.10.0 - 3.12.0
Warning: Invalid operand type was used: array_slice expects an array or collection as argument 1 in /in/9IhFO on line 2 NULL
Output for 5.4.0 - 5.6.23
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 32 bytes) in /in/9IhFO on line 2
Process exited with code 255.