3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $c1="ClVLIh4ASCsCBE8lAxMacFMZV2hdVVotEhhUJQNVAmhSFl4sFxJeaAw="; function xor_encrypt($in) { $key = base64_decode($c1); $text = $in; $outText = ''; // Iterate through each character for($i=0;$i<strlen($text);$i++) { $outText .= $text[$i] ^ $key[$i % strlen($key)]; } return $outText; } $defdata = array( "showpassword"=>"no", "bgcolor"=>"#00000"); print xor_encrypt(json_encode($defdata)); #decode $tmp= json_decode(xor_encrypt($c2), true); if (is_array($tmp)) { print $tmp['showpassword']; print $tmp['bgcolor']; } else print "Error!"; print " <> "; #encode print xor_encrypt(json_encode($defdata));
based on HpfWa
Output for 7.0.0 - 7.2.0
Notice: Undefined variable: c1 in /in/pHfUq on line 6 Fatal error: Uncaught DivisionByZeroError: Modulo by zero in /in/pHfUq:12 Stack trace: #0 /in/pHfUq(20): xor_encrypt('{"showpassword"...') #1 {main} thrown in /in/pHfUq on line 12
Process exited with code 255.
Output for 5.5.0 - 5.6.28
Notice: Undefined variable: c1 in /in/pHfUq on line 6 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Notice: Undefined variable: c2 in /in/pHfUq on line 23 Notice: Undefined variable: c1 in /in/pHfUq on line 6 Error! <> Notice: Undefined variable: c1 in /in/pHfUq on line 6 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12 Warning: Division by zero in /in/pHfUq on line 12 Notice: String offset cast occurred in /in/pHfUq on line 12 Notice: Uninitialized string offset: 0 in /in/pHfUq on line 12