3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $original_cookie=" CBSESSID=qwertyuioasdfghjkl; path=/ "; $cookie = preg_replace( '/CBSESSID=/', '', $original_cookie ); $cookie = preg_replace( '/ path=\//', '', $cookie ); var_dump( $cookie ); $cookie = preg_replace( '/;/', '', trim($cookie) ); var_dump( $cookie ); var_dump(http_parse_cookie($original_cookie));
based on dgW7P
Output for 7.0.0 - 7.1.0
string(23) " qwertyuioasdfghjkl; " string(18) "qwertyuioasdfghjkl" Fatal error: Uncaught Error: Call to undefined function http_parse_cookie() in /in/5VhkD:14 Stack trace: #0 {main} thrown in /in/5VhkD on line 14
Process exited with code 255.
Output for 5.0.0 - 5.6.28
string(23) " qwertyuioasdfghjkl; " string(18) "qwertyuioasdfghjkl" Fatal error: Call to undefined function http_parse_cookie() in /in/5VhkD on line 14
Process exited with code 255.
Output for 4.4.5 - 4.4.9
string(23) " qwertyuioasdfghjkl; " string(18) "qwertyuioasdfghjkl" Fatal error: Call to undefined function: http_parse_cookie() in /in/5VhkD on line 14
Process exited with code 255.
Output for 4.3.2 - 4.4.4
string(23) " qwertyuioasdfghjkl; " string(18) "qwertyuioasdfghjkl" Fatal error: Call to undefined function: http_parse_cookie() in /in/5VhkD on line 14
Process exited with code 255.
Output for 4.3.0 - 4.3.1
string(23) " qwertyuioasdfghjkl; " string(18) "qwertyuioasdfghjkl" Fatal error: Call to undefined function: http_parse_cookie() in /in/5VhkD on line 14