3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = ['serialize_handler'=>'php_binary', 'hi'=>'test']; session_start($arr); var_dump($_SESSION);
based on iQnPF
Output for 7.0.0 - 7.2.0
Warning: session_start(): Setting option 'hi' failed in /in/dWob9 on line 4 Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /in/dWob9:4) in /in/dWob9 on line 4 Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /in/dWob9:4) in /in/dWob9 on line 4 array(0) { }
Output for 5.4.2 - 5.6.28
array(0) { }
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/dWob9 on line 3
Process exited with code 255.