3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { function __wakeup() { print "wakeup\n"; } } session_start(); session_decode('core|a:1:{s:23:"_session_validator_data";a:4:{s:11:"remote_addr";s:9:"127.0.0.1";s:8:"http_via";s:0:"";s:20:"http_x_forwarded_for";s:0:"";s:15:"http_user_agent";s:49:"}}}}}O:4:"Test":0:{}');' var_dump($_SESSION);
Output for 7.0.0 - 7.0.1
Parse error: syntax error, unexpected ''' (T_ENCAPSED_AND_WHITESPACE), expecting end of file in /in/TfRp8 on line 10
Process exited with code 255.
Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16
Parse error: syntax error, unexpected ''' (T_ENCAPSED_AND_WHITESPACE) in /in/TfRp8 on line 10
Process exited with code 255.

preferences:
167.77 ms | 1399 KiB | 25 Q