3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function xor_encrypt($in) { $key = array( "showpassword"=>"no", "bgcolor"=>"#ffffff"); $text = $in; $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; }; echo xor_encrypt("ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSEV4sFxFeaAw"); ?>
Output for 7.0.0 - 7.1.0
Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Fatal error: Uncaught DivisionByZeroError: Modulo by zero in /in/UuoZc:9 Stack trace: #0 /in/UuoZc(15): xor_encrypt('ClVLIh4ASCsCBE8...') #1 {main} thrown in /in/UuoZc on line 9
Process exited with code 255.
Output for 5.3.0 - 5.6.28
Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Warning: strlen() expects parameter 1 to be string, array given in /in/UuoZc on line 9 Warning: Division by zero in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 0000004000000080000000000200000000000000000000400000000
Output for 4.3.0 - 5.2.17
Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 1 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 2 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 3 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 4 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 1 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 2 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 3 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 4 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 1 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 2 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 3 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 4 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 1 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 2 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 3 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 4 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 1 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 2 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 3 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 4 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 1 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 2 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 3 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 4 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 1 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 2 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 3 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 4 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 1 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 2 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 3 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 4 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 1 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 2 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 3 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 4 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 1 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 2 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 3 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 4 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 0 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 1 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 2 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 3 in /in/UuoZc on line 9 Notice: Array to string conversion in /in/UuoZc on line 9 Notice: Undefined offset: 4 in /in/UuoZc on line 9 0000004000000080000000000200000000000000000000400000000