3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('display_startup_errors',1); ini_set('display_errors',1); error_reporting(-1); echo "wer"; $stralice = 'PAADREshCgcRDgZPBAoPSxgGBBEOAR0ABksVEUUeDw4YCksoBlQWAg5PBgoRGBUNAxkEGBUGSx8KGkUfDgQHEUVLIgEWAgoDVAoFSw0NBksFBhEGBEsLGBARGBUNSUsKDQ1FBgQVGAwcDk8WHAcETwQXEQ4fBgocCgsOAAUCClQADQ4EABwcBQoTCksKGxUOHkVPOQoRDk8eABgRDA4ASx8dGwYDDk8EBA8PBhoCHksVEQcSSwEdAEsJFhgKSxEOVBEZHgsaCkVLIB9JSw0DFQIKSxsbRTkkNSMkJzQUNQkCCAo9FiIGHwYAGBgKEBg='; $strbob = 'GCg7Ozs7Oy01e3oNMz4gP3ogP3ovPjs2NXoZM3opMz96KDUgKSAjPCg1LTs5ei4/MSkueiA7KSAjPCg1LTs0I3oqNTA/PiM0OSAjN3o4OzAuPzd0ehQ1ej41OCg7dno8Njs9O3ouNWB6CBUADRsWBSEJMzQ9Nj8CNSgYIy4/GTMqMj8oJw=='; $str=$stralice; $str = base64_decode($str); printf($str); $xors=array('ROZWAL_{'); foreach ($xors as $tabi) { printf(xor_this($str,$tabi)); echo "\n\n\n---------------------------------------\n\n\n"; } printf(xor_this($str,"kotek")); function xor_this($string,$key) { $text =$string; $outText = ""; //echo $string; //echo $key; for($i=0;$i<strlen($text);) { for($j=0;($j<strlen($key) && $i<strlen($text));$j++,$i++) { $outText .= $text{$i} ^ $key{$j}; // echo 'i='.$i.', '.'j='.$j.', '.$outText{$i}.'<br />'; //for debugging } } return $outText." "; } ?>
Output for 8.4.1 - 8.4.2
Parse error: syntax error, unexpected token "{" in /in/hn6md on line 27
Process exited with code 255.
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.31, 8.2.0 - 8.2.27, 8.3.0 - 8.3.15
Fatal error: Array and string offset access syntax with curly braces is no longer supported in /in/hn6md on line 27
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Deprecated: Array and string offset access syntax with curly braces is deprecated in /in/hn6md on line 27 Deprecated: Array and string offset access syntax with curly braces is deprecated in /in/hn6md on line 27 wer<DK! O KKE K(TO  K EEK" T K KK  IK E OO   T   K EO9 O KOKKK  KT  EK IK  KE9$5#$'45  =" nOY mU|CA\EFP0JI^FOMB{TOFRPuJEGIy\\]PTJvQV^OTJdXUHOHXjxVWNUxE_LAY0WIKQETcB^BBLq_BQEYGwNAA]K[4VXKY^JUgXDTWDNU/RBTSAPC~X\PKWJuL nK]Q4LOBFMB_0MRAQBBV@UQ[NA0G^]E MB{FLOKNu^CIJVU>oE A\nPELZ f_gl~puXjrPGPjWnYdTOBOK\G --------------------------------------- Wow! Jestem pod wrazeniem ze udalo Ci sie rozszyfrowac ten tekst. Musial on byc nieco dluzszy, aby mozliwe bylo przeprowadzenie efektywnego ataku. Moze jeszcze troche paddingu zeby nie bylo za trudno. Ok, flaga to ROZWAL_{AliceIsImpressed}
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.7 - 5.6.21, 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.6 - 7.2.33, 7.3.0 - 7.3.33
wer<DK! O KKE K(TO  K EEK" T K KK  IK E OO   T   K EO9 O KOKKK  KT  EK IK  KE9$5#$'45  =" nOY mU|CA\EFP0JI^FOMB{TOFRPuJEGIy\\]PTJvQV^OTJdXUHOHXjxVWNUxE_LAY0WIKQETcB^BBLq_BQEYGwNAA]K[4VXKY^JUgXDTWDNU/RBTSAPC~X\PKWJuL nK]Q4LOBFMB_0MRAQBBV@UQ[NA0G^]E MB{FLOKNu^CIJVU>oE A\nPELZ f_gl~puXjrPGPjWnYdTOBOK\G --------------------------------------- Wow! Jestem pod wrazeniem ze udalo Ci sie rozszyfrowac ten tekst. Musial on byc nieco dluzszy, aby mozliwe bylo przeprowadzenie efektywnego ataku. Moze jeszcze troche paddingu zeby nie bylo za trudno. Ok, flaga to ROZWAL_{AliceIsImpressed}

preferences:
62.91 ms | 416 KiB | 5 Q