3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $auth = false; $s = serialize($auth); echo $s; echo "\n"; echo strrev($s); setcookie("auth", $s); echo $_COOKIE["auth"]; echo "\n"; echo $auth; ?>
Output for 5.3.0 - 7.1.0
b:0; ;0:b Warning: Cannot modify header information - headers already sent by (output started at /in/6ItmL:5) in /in/6ItmL on line 10 Notice: Undefined index: auth in /in/6ItmL on line 11
Output for 5.2.3 - 5.2.17
b:0; ;0:b Warning: Cannot modify header information - headers already sent by (output started at /in/6ItmL:5) in /in/6ItmL on line 10 Notice: Undefined index: auth in /in/6ItmL on line 11
Output for 4.3.0 - 5.2.2
b:0; ;0:b Notice: Undefined index: auth in /in/6ItmL on line 11