3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $cookie = preg_replace( '/CBSESSID=/', '', $cookie ); $cookie = preg_replace( '/ path=\//', '', $cookie ); echo $cookie . PHP_EOL; $cookie = preg_replace( '/;/', '', trim($cookie) );
Output for 5.0.4 - 7.1.0
Notice: Undefined variable: cookie in /in/FIXk3 on line 3
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.0.3
Notice: Undefined variable: cookie in /in/FIXk3 on line 3
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Undefined variable: cookie in /in/FIXk3 on line 3 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/FIXk3 on line 5 PHP_EOL