3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $cookie=" CBSESSID=j8898hekkp2kavopnctmbq8cfgk39jmd; path=/ "; $cookie = preg_replace( '/CBSESSID=/', '', $cookie ); $cookie = preg_replace( '/ path=\//', '', $cookie ); echo $cookie . PHP_EOL; $cookie = preg_replace( '/;/', '', trim($cookie) );
based on FIXk3
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
j8898hekkp2kavopnctmbq8cfgk39jmd;
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/u7RrD on line 9 j8898hekkp2kavopnctmbq8cfgk39jmd; PHP_EOL